We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8774841 commit f95d10dCopy full SHA for f95d10d
src/a2a/types.py
@@ -3,7 +3,6 @@
3
4
from __future__ import annotations
5
6
-from datetime import datetime
7
from enum import Enum
8
from typing import Any, Literal
9
@@ -1619,8 +1618,10 @@ class TaskStatus(A2ABaseModel):
1619
1618
"""
1620
The current state of the task's lifecycle.
1621
1622
- timestamp: datetime | None = Field(
1623
- default=None, examples=['2023-10-27T10:00:00Z']
+ timestamp: str | None = Field(
+ default=None,
+ examples=['2023-10-27T10:00:00Z'],
1624
+ pattern='^(\\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])T([01]\\d|2[0-3]):([0-5]\\d):([0-5]\\d)(\\.\\d+)?(Z|[+-](?:[01]\\d|2[0-3])(?::?[0-5]\\d)?)?$',
1625
)
1626
1627
An ISO 8601 datetime string indicating when this status was recorded.
0 commit comments