From aee9cacaa33528864a6c3e41f29feb592a9dfdb8 Mon Sep 17 00:00:00 2001 From: cthomas Date: Tue, 15 Jul 2025 00:44:22 -0700 Subject: [PATCH] fix: sync files loading on event loop (#3327) --- letta/orm/agent.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/letta/orm/agent.py b/letta/orm/agent.py index 1c78816b..ce51d729 100644 --- a/letta/orm/agent.py +++ b/letta/orm/agent.py @@ -314,7 +314,7 @@ class Agent(SqlalchemyBase, OrganizationMixin, AsyncAttrs): state["sources"] = [s.to_pydantic() for s in sources] state["memory"] = Memory( blocks=[m.to_pydantic() for m in memory], - file_blocks=[block for b in self.file_agents if (block := b.to_pydantic_block()) is not None], + file_blocks=[block for b in file_agents if (block := b.to_pydantic_block()) is not None], prompt_template=get_prompt_template_for_agent_type(self.agent_type), ) state["identity_ids"] = [i.id for i in identities]