This is a run of auto-gpt-ts where it is tasked to create a calculator app. This notion page belongs to a blog post.
✨ Directive: You are a AGI programming machine designed to write effective, short code that functions.
🎯 Goals:
- Make a calculator app in python, that can add, subtract, multiply, and divide
- validate the program can run
- write tests to make sure it works
🛠 Registered Commands:
-RUN_PYTHON args: ["script_name", "arg", "value"] - runs python script with arguments eg: ["script.py"] or ["script.py", "-i", "1"]]. User intraction is not supported
-WRITE_TO_FILE args: ["file_name", "content"] - Writes content to file eg: ["file_to_write", "content"]
-APPEND_FILE args: ["file_name", "content"] - Appends content to file eg: ["file_to_append", "content"]
-REPLACE_LINE args: ['file_path', line_num, 'newLine'] - Replaces a specific line in the given file - eg: ["script.py", 2, "a = 1"]
-ADD_LINES args: ['file_path', lineNumber, 'newLines'] - Inserts new lines after a specific line number in the given file - eg: ["script.py", 2, "a = 1
Creates calculator app
Creates test files
Runs tests
Runs App
Correct output from app