Skip to content

armgit / letta

Public Imported from GitHub
0

Platform for stateful agents: AI with advanced memory that can learn and self-improve over time.

fix agent exists

Sarah Woodersebd7d012b86a
diff --git a/memgpt/client/client.py b/memgpt/client/client.py
index 48696224e..e02b7c821 100644
--- a/memgpt/client/client.py
+++ b/memgpt/client/client.py
@@ -715,7 +715,7 @@ class LocalClient(AbstractClient):
raise ValueError(f"Only one of agent_id or agent_name can be provided")
existing = self.list_agents()
if agent_id:
- return agent_id in [str(agent.id) for agent in existing]
+ return str(agent_id) in [str(agent.id) for agent in existing]
else:
return agent_name in [str(agent.name) for agent in existing]