From 5ad8aeb013726988f4c09cad2a4cb02e7da611e1 Mon Sep 17 00:00:00 2001 From: AI Christianson Date: Thu, 19 Dec 2024 16:25:04 -0500 Subject: [PATCH] Shorten programmer tool docstring for better compatibility. --- ra_aid/tools/programmer.py | 31 ++++++++++++------------------- 1 file changed, 12 insertions(+), 19 deletions(-) diff --git a/ra_aid/tools/programmer.py b/ra_aid/tools/programmer.py index bc7f641..f29c8b8 100644 --- a/ra_aid/tools/programmer.py +++ b/ra_aid/tools/programmer.py @@ -19,30 +19,23 @@ class RunProgrammingTaskInput(BaseModel): @tool def run_programming_task(input: RunProgrammingTaskInput) -> Dict[str, Union[str, int, bool]]: - """Assigns 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. + """Assign a programming task to a human programmer. - 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 you need the programmer to reference files you intend to delete, delete them after the programmer finises their work. - - Args: - instructions: Instructions for the programming task - files: Optional list of files for Aider to examine. If not provided, uses related_files. - - 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 +If new files are created, emit them after finishing. + +They can add/modify files, but not remove. Use run_shell_command to remove files. If referencing files you’ll delete, remove them after they finish. + +Args: instructions: Programming task instructions files: Optional; if not provided, uses related_files + +Returns: { "output": stdout+stderr, "return_code": 0 if success, "success": True/False } """ # Build command command = [