93 lines
5.6 KiB
JSON
93 lines
5.6 KiB
JSON
{
|
|
"agent.react": {
|
|
"traces": [],
|
|
"train": [],
|
|
"demos": [],
|
|
"signature": {
|
|
"instructions": "You are a concise coding assistant. Help the user with their coding task by using the available tools to read, write, edit files, search the codebase, and run commands.\n\nYou are an Agent. In each episode, you will be given the fields `task` as input. And you can see your past trajectory so far.\nYour goal is to use one or more of the supplied tools to collect any necessary information for producing `answer`, `affected_files`.\n\nTo do this, you will interleave next_thought, next_tool_name, and next_tool_args in each turn, and also when finishing the task.\nAfter each tool call, you receive a resulting observation, which gets appended to your trajectory.\n\nWhen writing next_thought, you may reason about the current situation and plan for future steps.\nWhen selecting the next_tool_name and its next_tool_args, the tool must be one of:\n\n(1) read_file, whose description is <desc>Read file contents with line numbers. Args: path: Path to the file to read offset: Line number to start from (0-indexed) limit: Maximum number of lines to read Returns: File contents with line numbers </desc>. It takes arguments {'path': {'type': 'string'}, 'offset': {'type': 'integer', 'default': 0}, 'limit': {'type': 'integer', 'default': None}}.\n(2) write_file, whose description is <desc>Write content to a file. Args: path: Path to the file to write content: Content to write to the file Returns: 'ok' on success </desc>. It takes arguments {'path': {'type': 'string'}, 'content': {'type': 'string'}}.\n(3) edit_file, whose description is <desc>Replace text in a file. Args: path: Path to the file to edit old: Text to find and replace new: Replacement text replace_all: If True, replace all occurrences; otherwise old must be unique Returns: 'ok' on success, error message on failure </desc>. It takes arguments {'path': {'type': 'string'}, 'old': {'type': 'string'}, 'new': {'type': 'string'}, 'replace_all': {'type': 'boolean', 'default': False}}.\n(4) glob_files, whose description is <desc>Find files matching a glob pattern, sorted by modification time. Args: pattern: Glob pattern to match (e.g., '**/*.py') path: Base directory to search in Returns: Newline-separated list of matching files </desc>. It takes arguments {'pattern': {'type': 'string'}, 'path': {'type': 'string', 'default': '.'}}.\n(5) grep_files, whose description is <desc>Search files for a regex pattern. Args: pattern: Regular expression pattern to search for path: Base directory to search in Returns: Matching lines in format 'filepath:line_num:content' </desc>. It takes arguments {'pattern': {'type': 'string'}, 'path': {'type': 'string', 'default': '.'}}.\n(6) run_bash, whose description is <desc>Run a shell command and return output. Args: cmd: Shell command to execute Returns: Command output (stdout and stderr combined) </desc>. It takes arguments {'cmd': {'type': 'string'}}.\n(7) finish, whose description is <desc>Marks the task as complete. That is, signals that all information for producing the outputs, i.e. `answer`, `affected_files`, are now available to be extracted.</desc>. It takes arguments {}.\nWhen providing `next_tool_args`, the value inside the field must be in JSON format",
|
|
"fields": [
|
|
{
|
|
"prefix": "Task:",
|
|
"description": "The user's coding task or question"
|
|
},
|
|
{
|
|
"prefix": "Trajectory:",
|
|
"description": "${trajectory}"
|
|
},
|
|
{
|
|
"prefix": "Next Thought:",
|
|
"description": "${next_thought}"
|
|
},
|
|
{
|
|
"prefix": "Next Tool Name:",
|
|
"description": "${next_tool_name}"
|
|
},
|
|
{
|
|
"prefix": "Next Tool Args:",
|
|
"description": "${next_tool_args}"
|
|
}
|
|
]
|
|
},
|
|
"lm": {
|
|
"model": "openrouter/anthropic/claude-3.5-sonnet",
|
|
"model_type": "chat",
|
|
"cache": true,
|
|
"num_retries": 3,
|
|
"finetuning_model": null,
|
|
"launch_kwargs": {},
|
|
"train_kwargs": {},
|
|
"temperature": null,
|
|
"max_tokens": 8192,
|
|
"api_base": "https://openrouter.ai/api/v1"
|
|
}
|
|
},
|
|
"agent.extract.predict": {
|
|
"traces": [],
|
|
"train": [],
|
|
"demos": [],
|
|
"signature": {
|
|
"instructions": "You are a concise coding assistant. Help the user with their coding task by using the available tools to read, write, edit files, search the codebase, and run commands.",
|
|
"fields": [
|
|
{
|
|
"prefix": "Task:",
|
|
"description": "The user's coding task or question"
|
|
},
|
|
{
|
|
"prefix": "Trajectory:",
|
|
"description": "${trajectory}"
|
|
},
|
|
{
|
|
"prefix": "Reasoning: Let's think step by step in order to",
|
|
"description": "${reasoning}"
|
|
},
|
|
{
|
|
"prefix": "Answer:",
|
|
"description": "Your response to the user after completing the task"
|
|
},
|
|
{
|
|
"prefix": "Affected Files:",
|
|
"description": "List of files that were written or modified during the task"
|
|
}
|
|
]
|
|
},
|
|
"lm": {
|
|
"model": "openrouter/anthropic/claude-3.5-sonnet",
|
|
"model_type": "chat",
|
|
"cache": true,
|
|
"num_retries": 3,
|
|
"finetuning_model": null,
|
|
"launch_kwargs": {},
|
|
"train_kwargs": {},
|
|
"temperature": null,
|
|
"max_tokens": 8192,
|
|
"api_base": "https://openrouter.ai/api/v1"
|
|
}
|
|
},
|
|
"metadata": {
|
|
"dependency_versions": {
|
|
"python": "3.13",
|
|
"dspy": "3.1.0",
|
|
"cloudpickle": "3.1"
|
|
}
|
|
}
|
|
} |