mirror of
https://github.com/OpenHands/OpenHands.git
synced 2026-03-22 13:47:19 +08:00
Feat: Add current working directory to LLM instructions (#9718)
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{% if repository_info %}
|
||||
<REPOSITORY_INFO>
|
||||
At the user's request, repository {{ repository_info.repo_name }} has been cloned to the current working directory {{ repository_info.repo_directory }}.
|
||||
At the user's request, repository {{ repository_info.repo_name }} has been cloned to {{ repository_info.repo_directory }} in the current working directory.
|
||||
</REPOSITORY_INFO>
|
||||
{% endif %}
|
||||
{% if repository_instructions -%}
|
||||
@@ -10,6 +10,9 @@ At the user's request, repository {{ repository_info.repo_name }} has been clone
|
||||
{% endif %}
|
||||
{% if runtime_info -%}
|
||||
<RUNTIME_INFORMATION>
|
||||
{% if runtime_info.working_dir %}
|
||||
The current working directory is {{ runtime_info.working_dir }}
|
||||
{% endif %}
|
||||
{% if runtime_info.available_hosts %}
|
||||
The user has access to the following hosts for accessing a web application,
|
||||
each of which has a corresponding port:
|
||||
|
||||
@@ -10,6 +10,9 @@ At the user's request, repository {{ repository_info.repo_name }} has been clone
|
||||
{% endif %}
|
||||
{% if runtime_info and (runtime_info.additional_agent_instructions or runtime_info.date) -%}
|
||||
<RUNTIME_INFORMATION>
|
||||
{% if runtime_info.working_dir %}
|
||||
The current working directory is {{ runtime_info.working_dir }}
|
||||
{% endif %}
|
||||
{% if runtime_info.additional_agent_instructions %}
|
||||
{{ runtime_info.additional_agent_instructions }}
|
||||
{% endif %}
|
||||
|
||||
Reference in New Issue
Block a user