pub struct Notification {
pub tool_use_id: String,
pub task_id: String,
pub result: String,
pub tokens: Option<u64>,
pub duration_ms: Option<u64>,
}Expand description
One completed entry of a task notification.
Fields§
§tool_use_id: String<tool-use-id>: the launch, or the SendMessage that resumed it.
task_id: String<task-id>: the agent’s id; empty when the notification has none.
result: StringThe <result> text (the whole chunk when it carries none).
tokens: Option<u64><subagent_tokens> of the <usage> block, when it has one.
duration_ms: Option<u64><duration_ms> of the <usage> block, when it has one.
Auto Trait Implementations§
impl Freeze for Notification
impl RefUnwindSafe for Notification
impl Send for Notification
impl Sync for Notification
impl Unpin for Notification
impl UnsafeUnpin for Notification
impl UnwindSafe for Notification
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