AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.
Rename `evaluate_code` to `analyze_code` (#1371)
Will Callender8532307b2f73
diff --git a/autogpt/app.py b/autogpt/app.pyindex 381f5a2aa0..246213a5f1 100644--- a/autogpt/app.py+++ b/autogpt/app.py@@ -3,8 +3,8 @@ import jsonfrom typing import Dict, List, NoReturn, Unionfrom autogpt.agent.agent_manager import AgentManager+from autogpt.commands.analyze_code import analyze_codefrom autogpt.commands.audio_text import read_audio_from_file-from autogpt.commands.evaluate_code import evaluate_codefrom autogpt.commands.execute_code import (execute_python_file,execute_shell,@@ -181,8 +181,8 @@ def execute_command(command_name: str, arguments):# TODO: Change these to take in a file rather than pasted code, if# non-file is given, return instructions "Input should be a python# filepath, write your code to file and try again"- elif command_name == "evaluate_code":- return evaluate_code(arguments["code"])+ elif command_name == "analyze_code":+ return analyze_code(arguments["code"])elif command_name == "improve_code":return improve_code(arguments["suggestions"], arguments["code"])elif command_name == "write_tests":diff --git a/autogpt/commands/evaluate_code.py b/autogpt/commands/analyze_code.pysimilarity index 94%rename from autogpt/commands/evaluate_code.pyrename to autogpt/commands/analyze_code.pyindex 8f7cbca9c1..e02ea4c5b4 100644--- a/autogpt/commands/evaluate_code.py+++ b/autogpt/commands/analyze_code.py@@ -4,7 +4,7 @@ from __future__ import annotationsfrom autogpt.llm_utils import call_ai_function-def evaluate_code(code: str) -> list[str]:+def analyze_code(code: str) -> list[str]:"""A function that takes in a string and returns a response from create chatcompletion api call.diff --git a/autogpt/prompt.py b/autogpt/prompt.pyindex a0456305a5..03c132acdf 100644--- a/autogpt/prompt.py+++ b/autogpt/prompt.py@@ -73,7 +73,7 @@ def get_prompt() -> str:("Append to file", "append_to_file", {"file": "<file>", "text": "<text>"}),("Delete file", "delete_file", {"file": "<file>"}),("Search Files", "search_files", {"directory": "<directory>"}),- ("Evaluate Code", "evaluate_code", {"code": "<full_code_string>"}),+ ("Analyze Code", "analyze_code", {"code": "<full_code_string>"}),("Get Improved Code","improve_code",