diff --git a/scripts/commands.py b/scripts/commands.py index b8bcefe8..4316fd67 100644 --- a/scripts/commands.py +++ b/scripts/commands.py @@ -32,8 +32,6 @@ def execute_command(command_name, arguments): try: if command_name == "google": return google_search(arguments["input"]) - elif command_name == "check_news": - return check_news(arguments["source"]) elif command_name == "check_notifications": return check_notifications(arguments["website"]) elif command_name == "memory_add": @@ -115,11 +113,6 @@ def get_hyperlinks(url): link_list = browse.scrape_links(url) return link_list -def check_news(source): - print("Checking news from BBC world instead of " + source) - _text = get_text_summary("https://www.bbc.com/news/world") - return _text - def commit_memory(string): _text = f"""Committing memory with string "{string}" """ mem.permanent_memory.append(string) diff --git a/scripts/data/prompt.txt b/scripts/data/prompt.txt index 4ce5424f..3cdc0300 100644 --- a/scripts/data/prompt.txt +++ b/scripts/data/prompt.txt @@ -6,24 +6,23 @@ CONSTRAINTS: COMMANDS: 1. Google Search: "google", args: "input": "" -2. Check news: "check_news", args: "source": "" -3. Memory Add: "memory_add", args: "string": "" -4. Memory Delete: "memory_del", args: "key": "" -5. Memory Overwrite: "memory_ovr", args: "key": "", "string": "" -6. Browse Website: "browse_website", args: "url": "" -7. Start GPT Agent: "start_agent", args: "name": , "task": "", "prompt": "" -8. Message GPT Agent: "message_agent", args: "key": "", "message": "" -9. List GPT Agents: "list_agents", args: "" -10. Delete GPT Agent: "delete_agent", args: "key": "" -11. Write to file: "write_to_file", args: "file": "", "text": "" -12. Read file: "read_file", args: "file": "" -13. Append to file: "append_to_file", args: "file": "", "text": "" -14. Delete file: "delete_file", args: "file": "" -15. Evaluate Code: "evaluate_code", args: "code": "" -16. Get Improved Code: "improve_code", args: "suggestions": "", "code": "" -17. Write Tests: "write_tests", args: "code": "", "focus": "" -18. Execute Python File: "execute_python_file", args: "file": "" -19. Task Complete (Shutdown): "task_complete", args: "reason": "" +2. Memory Add: "memory_add", args: "string": "" +3. Memory Delete: "memory_del", args: "key": "" +4. Memory Overwrite: "memory_ovr", args: "key": "", "string": "" +5. Browse Website: "browse_website", args: "url": "" +6. Start GPT Agent: "start_agent", args: "name": , "task": "", "prompt": "" +7. Message GPT Agent: "message_agent", args: "key": "", "message": "" +8. List GPT Agents: "list_agents", args: "" +9. Delete GPT Agent: "delete_agent", args: "key": "" +10. Write to file: "write_to_file", args: "file": "", "text": "" +11. Read file: "read_file", args: "file": "" +12. Append to file: "append_to_file", args: "file": "", "text": "" +13. Delete file: "delete_file", args: "file": "" +14. Evaluate Code: "evaluate_code", args: "code": "" +15. Get Improved Code: "improve_code", args: "suggestions": "", "code": "" +16. Write Tests: "write_tests", args: "code": "", "focus": "" +17. Execute Python File: "execute_python_file", args: "file": "" +18. Task Complete (Shutdown): "task_complete", args: "reason": "" RESOURCES: