pub struct TaskNotificationMessage {
pub session_id: String,
pub task_id: String,
pub status: TaskStatus,
pub summary: String,
pub output_file: Option<String>,
pub tool_use_id: Option<String>,
pub usage: Option<TaskUsage>,
pub resource_links: Vec<ResourceLink>,
pub skip_transcript: Option<bool>,
pub ambient: Option<bool>,
pub uuid: Option<String>,
}Expand description
task_notification system message — emitted once when a background
task completes or fails.
Fields§
§session_id: String§task_id: String§status: TaskStatus§summary: String§output_file: Option<String>§tool_use_id: Option<String>§usage: Option<TaskUsage>§resource_links: Vec<ResourceLink>For a backgrounded MCP task that completed, the resource_link
content blocks of its final result — the files it returned by
reference — collected from the raw result before the CLI renders it
as text. Join to the originating call via tool_use_id. Absent when
the result had none or the task is any other type (CLI 2.1.259+).
skip_transcript: Option<bool>§ambient: Option<bool>True for housekeeping tasks the CLI does not surface as user work; hosts should exclude them from activity indicators (CLI 2.1.259+).
uuid: Option<String>Trait Implementations§
Source§impl Clone for TaskNotificationMessage
impl Clone for TaskNotificationMessage
Source§fn clone(&self) -> TaskNotificationMessage
fn clone(&self) -> TaskNotificationMessage
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TaskNotificationMessage
impl Debug for TaskNotificationMessage
Source§impl<'de> Deserialize<'de> for TaskNotificationMessage
impl<'de> Deserialize<'de> for TaskNotificationMessage
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 TaskNotificationMessage
impl RefUnwindSafe for TaskNotificationMessage
impl Send for TaskNotificationMessage
impl Sync for TaskNotificationMessage
impl Unpin for TaskNotificationMessage
impl UnsafeUnpin for TaskNotificationMessage
impl UnwindSafe for TaskNotificationMessage
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