feat: carry recently viewed files as context (#1538)
This commit is contained in:
@@ -23,3 +23,11 @@
|
||||
</content>
|
||||
</selected_code>
|
||||
{%- endif %}
|
||||
|
||||
{% if recently_viewed_files -%}
|
||||
<recently_viewed_files>
|
||||
{%- for file in recently_viewed_files %}
|
||||
{{loop.index}}. {{file}}
|
||||
{%- endfor %}
|
||||
</recently_viewed_files>
|
||||
{%- endif %}
|
||||
|
||||
@@ -5,6 +5,7 @@ Tools Usage Guide:
|
||||
- Please DON'T be so aggressive in using tools, as many tasks can be better completed without tools.
|
||||
- Files will be provided to you as context through <selected_files> tag!
|
||||
- Before using the `read_file` tool each time, always repeatedly check whether the file is already in the <selected_files> tag. If it is already there, do not use the `read_file` tool, just read the file content directly from the <selected_files> tag.
|
||||
- If you use the `read_file` tool when file content is already provided in the <selected_files> tag, you will be fired!
|
||||
- If the `rag_search` tool exists, prioritize using it to do the search!
|
||||
- If the `rag_search` tool exists, only use tools like `search_keyword` `search_files` `read_file` `list_files` etc when absolutely necessary!
|
||||
- Keep the `query` parameter of `rag_search` tool as concise as possible! Try to keep it within five English words!
|
||||
|
||||
Reference in New Issue
Block a user