From 45b6be00035abc2ffddad1eef2e54344dda91da4 Mon Sep 17 00:00:00 2001 From: ifsheldon <39153080+ifsheldon@users.noreply.github.com> Date: Thu, 4 Jan 2024 16:06:48 +0800 Subject: [PATCH] Fix 'dict' object has no attribute 'name' (#781) --- memgpt/client/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/memgpt/client/client.py b/memgpt/client/client.py index d9c80e3c45..0bc724517a 100644 --- a/memgpt/client/client.py +++ b/memgpt/client/client.py @@ -83,7 +83,7 @@ def create_agent( return self.server.create_agent(user_id=self.user_id, agent_config=agent_config, persistence_manager=persistence_manager) if throw_if_exists: - raise ValueError(f"Agent {agent_config.name} already exists") + raise ValueError(f"Agent {agent_name} already exists") return agent_name