Skip to content

Commit 5a8feb4

Browse files
committed
Merge remote-tracking branch 'origin/main' into md-agentcards
2 parents 7d85915 + a319334 commit 5a8feb4

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ authors = [{ name = "Google LLC", email = "[email protected]" }]
88
requires-python = ">=3.10"
99
keywords = ["A2A", "A2A SDK", "A2A Protocol", "Agent2Agent", "Agent 2 Agent"]
1010
dependencies = [
11-
"fastapi>=0.116.1",
11+
"fastapi>=0.95.0",
1212
"httpx>=0.28.1",
1313
"httpx-sse>=0.4.0",
1414
"pydantic>=2.11.3",

src/a2a/server/tasks/task_updater.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ async def update_status(
4949
message: Message | None = None,
5050
final: bool = False,
5151
timestamp: str | None = None,
52+
metadata: dict[str, Any] | None = None,
5253
) -> None:
5354
"""Updates the status of the task and publishes a `TaskStatusUpdateEvent`.
5455
@@ -57,6 +58,7 @@ async def update_status(
5758
message: An optional message associated with the status update.
5859
final: If True, indicates this is the final status update for the task.
5960
timestamp: Optional ISO 8601 datetime string. Defaults to current time.
61+
metadata: Optional metadata for extensions.
6062
"""
6163
async with self._lock:
6264
if self._terminal_state_reached:
@@ -77,6 +79,7 @@ async def update_status(
7779
task_id=self.task_id,
7880
context_id=self.context_id,
7981
final=final,
82+
metadata=metadata,
8083
status=TaskStatus(
8184
state=state,
8285
message=message,

0 commit comments

Comments
 (0)