Skip to content

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.

Fixes bug: Agent 0 does not exist

Torantulinoacaa6e394a54
diff --git a/scripts/agent_manager.py b/scripts/agent_manager.py
index 2389e7bd71..285b9f1d7b 100644
--- a/scripts/agent_manager.py
+++ b/scripts/agent_manager.py
@@ -60,7 +60,7 @@ def delete_agent(key):
global agents
try:
- del agents[key]
+ del agents[int(key)]
return True
except KeyError:
return False