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.
Casts agent key to int in message_agent
Torantulino4bd311c5278d
diff --git a/AutonomousAI/agent_manager.py b/AutonomousAI/agent_manager.pyindex 25b5b82336..2389e7bd71 100644--- a/AutonomousAI/agent_manager.py+++ b/AutonomousAI/agent_manager.py@@ -31,7 +31,7 @@ def create_agent(task, prompt, model):def message_agent(key, message):global agents- task, messages, model = agents[key]+ task, messages, model = agents[int(key)]# Add user message to message history before sending to agentmessages.append({"role": "user", "content": message})