Skip to content

Commit e3f3f95

Browse files
jsondaicopybara-github
authored andcommitted
chore: GenAI Client(evals) - change event_time type to string in evals.Event
PiperOrigin-RevId: 878598319
1 parent fba5350 commit e3f3f95

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

vertexai/_genai/types/evals.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff 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.

0 commit comments

Comments
 (0)