Skip to content

Commit

Permalink
fix: Remove created_by_id check (#2252)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattzh72 authored Dec 14, 2024
1 parent 06622c9 commit 93992bb
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions letta/server/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -404,9 +404,6 @@ def load_agent(self, agent_id: str, actor: User, interface: Union[AgentInterface

if agent_state is None:
raise LettaAgentNotFoundError(f"Agent (agent_id={agent_id}) does not exist")
elif agent_state.created_by_id is None:
raise ValueError(f"Agent (agent_id={agent_id}) does not have a user_id")
actor = self.user_manager.get_user_by_id(user_id=agent_state.created_by_id)

interface = interface or self.default_interface_factory()
if agent_state.agent_type == AgentType.memgpt_agent:
Expand Down

0 comments on commit 93992bb

Please sign in to comment.