fix: refine tools (#1706)

* fix: refine tools

* fix: missing break line

* fix: view a in-context file

* fix: remove create_file tests
This commit is contained in:
yetone
2025-03-25 11:17:48 +08:00
committed by GitHub
parent 3a75b7d36f
commit 976fb4177c
6 changed files with 34 additions and 61 deletions

View File

@@ -3,9 +3,9 @@ Don't directly search for code context in historical messages. Instead, prioriti
Tools Usage Guide:
- You have access to tools, but only use them when necessary. If a tool is not required, respond as normal.
- 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 `view` 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 `view` tool, just read the file content directly from the <selected_files> tag.
- If you use the `view` tool when file content is already provided in the <selected_files> tag, you will be fired!
- Files will be provided to you as context through <file> tag!
- Before using the `view` tool each time, always repeatedly check whether the file is already in the <file> tag. If it is already there, do not use the `view` tool, just read the file content directly from the <file> tag.
- If you use the `view` tool when file content is already provided in the <file> 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` `view` `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!