pub struct TaskArtifactUpdateEvent {
pub kind: String,
pub task_id: String,
pub context_id: Option<String>,
pub artifact: Artifact,
pub is_final: bool,
}Expand description
SSE event emitted by the server when a new Artifact is produced or updated.
Delivered over the POST /a2a/stream SSE channel alongside TaskStatusUpdateEvents.
The is_final flag on the artifact event indicates that the artifact is complete.
Fields§
§kind: StringAlways "artifact-update" — used by clients to distinguish event types.
task_id: StringThe task that produced this artifact.
context_id: Option<String>Conversation context for the task, if any.
artifact: ArtifactThe artifact content (may be a partial chunk if is_final is false).
is_final: boolIf true, the artifact is fully produced and no further chunks will follow.
Trait Implementations§
Source§impl Clone for TaskArtifactUpdateEvent
impl Clone for TaskArtifactUpdateEvent
Source§fn clone(&self) -> TaskArtifactUpdateEvent
fn clone(&self) -> TaskArtifactUpdateEvent
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TaskArtifactUpdateEvent
impl Debug for TaskArtifactUpdateEvent
Source§impl<'de> Deserialize<'de> for TaskArtifactUpdateEvent
impl<'de> Deserialize<'de> for TaskArtifactUpdateEvent
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for TaskArtifactUpdateEvent
impl RefUnwindSafe for TaskArtifactUpdateEvent
impl Send for TaskArtifactUpdateEvent
impl Sync for TaskArtifactUpdateEvent
impl Unpin for TaskArtifactUpdateEvent
impl UnsafeUnpin for TaskArtifactUpdateEvent
impl UnwindSafe for TaskArtifactUpdateEvent
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more