File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -71,6 +71,8 @@ async def add_artifact(
7171 artifact_id : str | None = None ,
7272 name : str | None = None ,
7373 metadata : dict [str , Any ] | None = None ,
74+ append : bool | None = None ,
75+ last_chunk : bool | None = None ,
7476 ) -> None :
7577 """Adds an artifact chunk to the task and publishes a `TaskArtifactUpdateEvent`.
7678
@@ -79,6 +81,8 @@ async def add_artifact(
7981 artifact_id: The ID of the artifact. A new UUID is generated if not provided.
8082 name: Optional name for the artifact.
8183 metadata: Optional metadata for the artifact.
84+ append: Optional boolean indicating if this chunk appends to a previous one.
85+ last_chunk: Optional boolean indicating if this is the last chunk.
8286 """
8387 if not artifact_id :
8488 artifact_id = str (uuid .uuid4 ())
@@ -93,6 +97,8 @@ async def add_artifact(
9397 parts = parts ,
9498 metadata = metadata ,
9599 ),
100+ append = append ,
101+ last_chunk = last_chunk
96102 )
97103 )
98104
You can’t perform that action at this time.
0 commit comments