From 7ca6aba229ca7b3a2ad653783a4d506d615f58c3 Mon Sep 17 00:00:00 2001 From: Matthew Zhou Date: Thu, 18 Sep 2025 17:06:32 -0700 Subject: [PATCH] feat: Remove last accessed at default factory (#4795) Remove default factory on file blocks --- letta/schemas/block.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/letta/schemas/block.py b/letta/schemas/block.py index c1e29e7f..6ebfdeea 100644 --- a/letta/schemas/block.py +++ b/letta/schemas/block.py @@ -93,7 +93,7 @@ class FileBlock(Block): source_id: str = Field(..., description="Unique identifier of the source.") is_open: bool = Field(..., description="True if the agent currently has the file open.") last_accessed_at: Optional[datetime] = Field( - default_factory=datetime.utcnow, + None, description="UTC timestamp of the agent’s most recent access to this file. Any operations from the open, close, or search tools will update this field.", )