File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -267,8 +267,9 @@ class AgentEvent(_common.BaseModel):
267267 content : Optional [genai_types .Content ] = Field (
268268 default = None , description = """The content of the event."""
269269 )
270- event_time : Optional [datetime .datetime ] = Field (
271- default = None , description = """The timestamp when the event occurred."""
270+ event_time : Optional [str ] = Field (
271+ default = None ,
272+ description = """The timestamp when the event occurred in RFC3339 format (e.g. '2026-03-03T00:42:32Z').""" ,
272273 )
273274 state_delta : Optional [dict [str , Any ]] = Field (
274275 default = None ,
@@ -292,8 +293,8 @@ class AgentEventDict(TypedDict, total=False):
292293 content : Optional [genai_types .ContentDict ]
293294 """The content of the event."""
294295
295- event_time : Optional [datetime . datetime ]
296- """The timestamp when the event occurred."""
296+ event_time : Optional [str ]
297+ """The timestamp when the event occurred in RFC3339 format (e.g. '2026-03-03T00:42:32Z') ."""
297298
298299 state_delta : Optional [dict [str , Any ]]
299300 """The change in the session state caused by this event.
You can’t perform that action at this time.
0 commit comments