Skip to content

armgit / letta

Public Imported from GitHub
0

Platform for stateful agents: AI with advanced memory that can learn and self-improve over time.

fix(hotfix): block update (#3069)

Andy Li48cb1735efe7
diff --git a/letta/server/server.py b/letta/server/server.py
index fb11fc2d5..f2ee58838 100644
--- a/letta/server/server.py
+++ b/letta/server/server.py
@@ -1496,7 +1496,7 @@ class SyncServer(Server):
await self.agent_manager.attach_block_async(agent_id=main_agent.id, block_id=block.id, actor=actor)
if clear_history and block.value != "":
- block = await self.block_manager.update_block_async(block_id=block.id, block=BlockUpdate(value=""))
+ block = await self.block_manager.update_block_async(block_id=block.id, block_update=BlockUpdate(value=""), actor=actor)
request = CreateAgent(
name=main_agent.name + "-doc-sleeptime",