Skip to content

Commit

Permalink
Fix 'dict' object has no attribute 'name' (#781)
Browse files Browse the repository at this point in the history
  • Loading branch information
ifsheldon authored Jan 4, 2024
1 parent 6c7e652 commit 2a7287b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions memgpt/client/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,9 @@ 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_config.name
return agent_name

def get_agent_config(self, agent_id: str) -> Dict:
self.interface.clear()
Expand Down

0 comments on commit 2a7287b

Please sign in to comment.