mirror of
https://github.com/Significant-Gravitas/AutoGPT.git
synced 2026-04-08 03:00:28 -04:00
refactor(backend/copilot): deduplicate tool-results guidance to system prompt only
Remove redundant tool-results mentions from Read and bash_exec tool descriptions — the system prompt storage supplement already covers this clearly. Avoids wasting tokens on triple-repeated instructions.
This commit is contained in:
@@ -609,9 +609,7 @@ async def _read_file_handler(args: dict[str, Any]) -> dict[str, Any]:
|
||||
_READ_TOOL_NAME = "Read"
|
||||
_READ_TOOL_DESCRIPTION = (
|
||||
"Read a file from the local filesystem. "
|
||||
"Use offset and limit to read specific line ranges for large files. "
|
||||
"Use this tool (NOT bash_exec) to read SDK tool-result files under "
|
||||
"~/.claude/projects/.../tool-results/."
|
||||
"Use offset and limit to read specific line ranges for large files."
|
||||
)
|
||||
_READ_TOOL_SCHEMA = {
|
||||
"type": "object",
|
||||
|
||||
@@ -44,8 +44,7 @@ class BashExecTool(BaseTool):
|
||||
return (
|
||||
"Execute a Bash command or script. Shares filesystem with SDK file tools. "
|
||||
"Useful for scripts, data processing, and package installation. "
|
||||
"Killed after timeout (default 30s, max 120s). "
|
||||
"CANNOT read SDK tool-result files (~/.claude/projects/...); use Read instead."
|
||||
"Killed after timeout (default 30s, max 120s)."
|
||||
)
|
||||
|
||||
@property
|
||||
|
||||
Reference in New Issue
Block a user