pub struct TaskStatusUpdateEvent {
pub kind: String,
pub task_id: String,
pub context_id: String,
pub status: TaskStatus,
pub is_final: bool,
pub metadata: Option<HashMap<String, Value>>,
}Expand description
An event sent by the agent to notify the client of a change in a task’s status.
Fields§
§kind: StringThe type of this event. Always “status-update”.
task_id: StringThe ID of the task that was updated.
context_id: StringThe context ID associated with the task.
status: TaskStatusThe new status of the task.
is_final: boolIf true, this is the final event in the stream for this interaction.
metadata: Option<HashMap<String, Value>>Optional metadata for extensions.
Trait Implementations§
Source§impl Clone for TaskStatusUpdateEvent
impl Clone for TaskStatusUpdateEvent
Source§fn clone(&self) -> TaskStatusUpdateEvent
fn clone(&self) -> TaskStatusUpdateEvent
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 TaskStatusUpdateEvent
impl Debug for TaskStatusUpdateEvent
Source§impl<'de> Deserialize<'de> for TaskStatusUpdateEvent
impl<'de> Deserialize<'de> for TaskStatusUpdateEvent
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 TaskStatusUpdateEvent
impl PartialEq for TaskStatusUpdateEvent
Source§impl Serialize for TaskStatusUpdateEvent
impl Serialize for TaskStatusUpdateEvent
impl StructuralPartialEq for TaskStatusUpdateEvent
Auto Trait Implementations§
impl Freeze for TaskStatusUpdateEvent
impl RefUnwindSafe for TaskStatusUpdateEvent
impl Send for TaskStatusUpdateEvent
impl Sync for TaskStatusUpdateEvent
impl Unpin for TaskStatusUpdateEvent
impl UnwindSafe for TaskStatusUpdateEvent
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