Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/a2a/server/tasks/task_updater.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ async def add_artifact( # noqa: PLR0913
metadata: dict[str, Any] | None = None,
append: bool | None = None,
last_chunk: bool | None = None,
extensions: list[str] | None = None,
) -> None:
"""Adds an artifact chunk to the task and publishes a `TaskArtifactUpdateEvent`.

Expand All @@ -106,6 +107,7 @@ async def add_artifact( # noqa: PLR0913
metadata: Optional metadata for the artifact.
append: Optional boolean indicating if this chunk appends to a previous one.
last_chunk: Optional boolean indicating if this is the last chunk.
extensions: Optional list of extensions for the artifact.
"""
if not artifact_id:
artifact_id = str(uuid.uuid4())
Expand All @@ -119,6 +121,7 @@ async def add_artifact( # noqa: PLR0913
name=name,
parts=parts,
metadata=metadata,
extensions=extensions,
),
append=append,
last_chunk=last_chunk,
Expand Down
Loading