mirror of
https://github.com/aljazceru/Auto-GPT.git
synced 2025-12-18 22:44:21 +01:00
Removes "check_news" command.
This command is made redundant by the browse_website command.
This commit is contained in:
@@ -32,8 +32,6 @@ def execute_command(command_name, arguments):
|
|||||||
try:
|
try:
|
||||||
if command_name == "google":
|
if command_name == "google":
|
||||||
return google_search(arguments["input"])
|
return google_search(arguments["input"])
|
||||||
elif command_name == "check_news":
|
|
||||||
return check_news(arguments["source"])
|
|
||||||
elif command_name == "check_notifications":
|
elif command_name == "check_notifications":
|
||||||
return check_notifications(arguments["website"])
|
return check_notifications(arguments["website"])
|
||||||
elif command_name == "memory_add":
|
elif command_name == "memory_add":
|
||||||
@@ -115,11 +113,6 @@ def get_hyperlinks(url):
|
|||||||
link_list = browse.scrape_links(url)
|
link_list = browse.scrape_links(url)
|
||||||
return link_list
|
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):
|
def commit_memory(string):
|
||||||
_text = f"""Committing memory with string "{string}" """
|
_text = f"""Committing memory with string "{string}" """
|
||||||
mem.permanent_memory.append(string)
|
mem.permanent_memory.append(string)
|
||||||
|
|||||||
@@ -6,24 +6,23 @@ CONSTRAINTS:
|
|||||||
COMMANDS:
|
COMMANDS:
|
||||||
|
|
||||||
1. Google Search: "google", args: "input": "<search>"
|
1. Google Search: "google", args: "input": "<search>"
|
||||||
2. Check news: "check_news", args: "source": "<news source>"
|
2. Memory Add: "memory_add", args: "string": "<string>"
|
||||||
3. Memory Add: "memory_add", args: "string": "<string>"
|
3. Memory Delete: "memory_del", args: "key": "<key>"
|
||||||
4. Memory Delete: "memory_del", args: "key": "<key>"
|
4. Memory Overwrite: "memory_ovr", args: "key": "<key>", "string": "<string>"
|
||||||
5. Memory Overwrite: "memory_ovr", args: "key": "<key>", "string": "<string>"
|
5. Browse Website: "browse_website", args: "url": "<url>"
|
||||||
6. Browse Website: "browse_website", args: "url": "<url>"
|
6. Start GPT Agent: "start_agent", args: "name": <name>, "task": "<short_task_desc>", "prompt": "<prompt>"
|
||||||
7. Start GPT Agent: "start_agent", args: "name": <name>, "task": "<short_task_desc>", "prompt": "<prompt>"
|
7. Message GPT Agent: "message_agent", args: "key": "<key>", "message": "<message>"
|
||||||
8. Message GPT Agent: "message_agent", args: "key": "<key>", "message": "<message>"
|
8. List GPT Agents: "list_agents", args: ""
|
||||||
9. List GPT Agents: "list_agents", args: ""
|
9. Delete GPT Agent: "delete_agent", args: "key": "<key>"
|
||||||
10. Delete GPT Agent: "delete_agent", args: "key": "<key>"
|
10. Write to file: "write_to_file", args: "file": "<file>", "text": "<text>"
|
||||||
11. Write to file: "write_to_file", args: "file": "<file>", "text": "<text>"
|
11. Read file: "read_file", args: "file": "<file>"
|
||||||
12. Read file: "read_file", args: "file": "<file>"
|
12. Append to file: "append_to_file", args: "file": "<file>", "text": "<text>"
|
||||||
13. Append to file: "append_to_file", args: "file": "<file>", "text": "<text>"
|
13. Delete file: "delete_file", args: "file": "<file>"
|
||||||
14. Delete file: "delete_file", args: "file": "<file>"
|
14. Evaluate Code: "evaluate_code", args: "code": "<code>"
|
||||||
15. Evaluate Code: "evaluate_code", args: "code": "<code>"
|
15. Get Improved Code: "improve_code", args: "suggestions": "<list_of_suggestions>", "code": "<string>"
|
||||||
16. Get Improved Code: "improve_code", args: "suggestions": "<list_of_suggestions>", "code": "<string>"
|
16. Write Tests: "write_tests", args: "code": "<string>", "focus": "<list_of_focus_areas>"
|
||||||
17. Write Tests: "write_tests", args: "code": "<string>", "focus": "<list_of_focus_areas>"
|
17. Execute Python File: "execute_python_file", args: "file": "<file>"
|
||||||
18. Execute Python File: "execute_python_file", args: "file": "<file>"
|
18. Task Complete (Shutdown): "task_complete", args: "reason": "<reason>"
|
||||||
19. Task Complete (Shutdown): "task_complete", args: "reason": "<reason>"
|
|
||||||
|
|
||||||
RESOURCES:
|
RESOURCES:
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user