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.

feat: Remove last accessed at default factory (#4795)

Matthew Zhou7ca6aba229ca
diff --git a/letta/schemas/block.py b/letta/schemas/block.py
index c1e29e7fe..6ebfdeeaa 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.",
)