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.
Merge branch 'master' into fix_agent_key_error
Jacob Hahn26b3126c34b2
diff --cc autogpt/app.pyindex 8f873606c1,8d9cc9eeab..29a356f641--- a/autogpt/app.py+++ b/autogpt/app.py@@@ -250,12 -243,15 +243,12 @@@ def message_agent(key: str, message: st"""Message an agent with a given key and message"""# Check if the key is a valid integerif is_valid_int(key):- agent_response = agents.message_agent(int(key), message)+ agent_response = AGENT_MANAGER.message_agent(int(key), message)- # Check if the key is a valid string- elif isinstance(key, str):- agent_response = AGENT_MANAGER.message_agent(key, message)else:- return "Invalid key, must be an integer or a string."+ return "Invalid key, must be an integer."# Speak response- if cfg.speak_mode:+ if CFG.speak_mode:say_text(agent_response, 1)return agent_response