Shorten programmer tool docstring for better compatibility.

This commit is contained in:
AI Christianson 2024-12-19 16:25:04 -05:00
parent 1a0c72075d
commit 5ad8aeb013
1 changed files with 12 additions and 19 deletions

View File

@ -19,30 +19,23 @@ class RunProgrammingTaskInput(BaseModel):
@tool @tool
def run_programming_task(input: RunProgrammingTaskInput) -> Dict[str, Union[str, int, bool]]: def run_programming_task(input: RunProgrammingTaskInput) -> Dict[str, Union[str, int, bool]]:
"""Assigns a programming task to a human programmer. """Assign a programming task to a human programmer.
Before invoking this tool, make sure all existing related files have been emitted using the emit_related_files tool.
The programmer cannot see files you have seen and only can see what you explicitly give it. Before using this tool, ensure all related files have been emitted with emit_related_files.
Be very detailed in your instructions, but do not write the full code for the programmer, as that's the job of the programmer. The programmer sees only what you provide, no conversation history.
The programmer can edit multiple files at once and is intelligent. Give detailed instructions but do not write their code.
If any new files are created, remember to emit them using the emit_related_files tool once this tool completes. They are intelligent and can edit multiple files.
The programmer can add or modify files, but cannot remove them. Use the run_shell_command tool to remove files. If new files are created, emit them after finishing.
If you need the programmer to reference files you intend to delete, delete them after the programmer finises their work.
They can add/modify files, but not remove. Use run_shell_command to remove files. If referencing files youll delete, remove them after they finish.
Args:
instructions: Instructions for the programming task Args: instructions: Programming task instructions files: Optional; if not provided, uses related_files
files: Optional list of files for Aider to examine. If not provided, uses related_files.
Returns: { "output": stdout+stderr, "return_code": 0 if success, "success": True/False }
Returns:
A dictionary containing:
- output: The command output (stdout + stderr combined)
- return_code: The process return code (0 typically means success)
- success: Boolean indicating if the command succeeded
""" """
# Build command # Build command
command = [ command = [