pub struct TaskArtifactUpdateEvent {
pub kind: String,
pub task_id: String,
pub context_id: String,
pub artifact: Artifact,
pub append: Option<bool>,
pub last_chunk: Option<bool>,
pub metadata: Option<HashMap<String, Value>>,
}Expand description
An event sent by the agent to notify the client that an artifact has been generated or updated.
Fields§
§kind: StringThe type of this event. Always “artifact-update”.
task_id: StringThe ID of the task this artifact belongs to.
context_id: StringThe context ID associated with the task.
artifact: ArtifactThe artifact that was generated or updated.
append: Option<bool>If true, the content of this artifact should be appended to a previously sent artifact with the same ID.
last_chunk: Option<bool>If true, this is the final chunk of the artifact.
metadata: Option<HashMap<String, Value>>Optional metadata for extensions.
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
Source§impl PartialEq for TaskArtifactUpdateEvent
impl PartialEq for TaskArtifactUpdateEvent
Source§impl Serialize for TaskArtifactUpdateEvent
impl Serialize for TaskArtifactUpdateEvent
impl StructuralPartialEq for TaskArtifactUpdateEvent
Auto Trait Implementations§
impl Freeze for TaskArtifactUpdateEvent
impl RefUnwindSafe for TaskArtifactUpdateEvent
impl Send for TaskArtifactUpdateEvent
impl Sync for TaskArtifactUpdateEvent
impl Unpin 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