Platform for stateful agents: AI with advanced memory that can learn and self-improve over time.
fix: return agents instead of agent_names from server's list_agents function
robingotz619921d97ca5
diff --git a/memgpt/server/server.py b/memgpt/server/server.pyindex 733e6725e..36c390b11 100644--- a/memgpt/server/server.py+++ b/memgpt/server/server.py@@ -513,7 +513,7 @@ class SyncServer(LockingServer):# TODO actually use the user_id that was passed into the serverUSER_ID = self.config.anon_clientidagents_list = self.ms.list_agents(user_id=USER_ID)- return {"num_agents": len(agents_list), "agent_names": [state.name for state in agents_list]}+ return {"num_agents": len(agents_list), "agents": [state.name for state in agents_list]}def get_agent_memory(self, user_id: str, agent_id: str) -> dict:"""Return the memory of an agent (core memory + non-core statistics)"""