Skip to content

Commit

Permalink
Removes "check_news" command.
Browse files Browse the repository at this point in the history
This command is made redundant by the browse_website command.
  • Loading branch information
Torantulino committed Apr 2, 2023
1 parent 9b37531 commit a2e5de7
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 25 deletions.
7 changes: 0 additions & 7 deletions scripts/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -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":
Expand Down Expand Up @@ -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)
Expand Down
35 changes: 17 additions & 18 deletions scripts/data/prompt.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,24 +6,23 @@ CONSTRAINTS:
COMMANDS:

1. Google Search: "google", args: "input": "<search>"
2. Check news: "check_news", args: "source": "<news source>"
3. Memory Add: "memory_add", args: "string": "<string>"
4. Memory Delete: "memory_del", args: "key": "<key>"
5. Memory Overwrite: "memory_ovr", args: "key": "<key>", "string": "<string>"
6. Browse Website: "browse_website", args: "url": "<url>"
7. Start GPT Agent: "start_agent", args: "name": <name>, "task": "<short_task_desc>", "prompt": "<prompt>"
8. Message GPT Agent: "message_agent", args: "key": "<key>", "message": "<message>"
9. List GPT Agents: "list_agents", args: ""
10. Delete GPT Agent: "delete_agent", args: "key": "<key>"
11. Write to file: "write_to_file", args: "file": "<file>", "text": "<text>"
12. Read file: "read_file", args: "file": "<file>"
13. Append to file: "append_to_file", args: "file": "<file>", "text": "<text>"
14. Delete file: "delete_file", args: "file": "<file>"
15. Evaluate Code: "evaluate_code", args: "code": "<code>"
16. Get Improved Code: "improve_code", args: "suggestions": "<list_of_suggestions>", "code": "<string>"
17. Write Tests: "write_tests", args: "code": "<string>", "focus": "<list_of_focus_areas>"
18. Execute Python File: "execute_python_file", args: "file": "<file>"
19. Task Complete (Shutdown): "task_complete", args: "reason": "<reason>"
2. Memory Add: "memory_add", args: "string": "<string>"
3. Memory Delete: "memory_del", args: "key": "<key>"
4. Memory Overwrite: "memory_ovr", args: "key": "<key>", "string": "<string>"
5. Browse Website: "browse_website", args: "url": "<url>"
6. 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. List GPT Agents: "list_agents", args: ""
9. Delete GPT Agent: "delete_agent", args: "key": "<key>"
10. Write to file: "write_to_file", args: "file": "<file>", "text": "<text>"
11. Read file: "read_file", args: "file": "<file>"
12. Append to file: "append_to_file", args: "file": "<file>", "text": "<text>"
13. Delete file: "delete_file", args: "file": "<file>"
14. Evaluate Code: "evaluate_code", args: "code": "<code>"
15. 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. Execute Python File: "execute_python_file", args: "file": "<file>"
18. Task Complete (Shutdown): "task_complete", args: "reason": "<reason>"

RESOURCES:

Expand Down

0 comments on commit a2e5de7

Please sign in to comment.