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.

updated client code to match refactored server code

cpackera150db65f0ec
diff --git a/memgpt/client/client.py b/memgpt/client/client.py
index 58d4f23f8..3c2217ad9 100644
--- a/memgpt/client/client.py
+++ b/memgpt/client/client.py
@@ -67,7 +67,7 @@ class Client(object):
def agent_exists(self, agent_id: str) -> bool:
existing = self.list_agents()
- return agent_id in existing["agent_names"]
+ return agent_id in [agent["name"] for agent in existing["agents"]]
def create_agent(
self,