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

Remove default factory on file blocks
This commit is contained in:
Matthew Zhou
2025-09-18 17:06:32 -07:00
committed by Caren Thomas
parent 46ba8789b7
commit 7ca6aba229

View File

@@ -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 agents most recent access to this file. Any operations from the open, close, or search tools will update this field.",
)