pub struct AsyncTaskDone {
pub task_id: String,
pub tool_call_id: String,
pub session_id: SessionId,
pub tool_name: String,
pub result: ToolResult,
pub cancelled: bool,
}Expand description
Message delivered to the Agent when a background task finishes (success, failure, or cancellation).
Fields§
§task_id: String§tool_call_id: String§session_id: SessionId§tool_name: String§result: ToolResult§cancelled: booltrue if the task was cancelled (the cancel token fired) rather than
completing on its own. Lets the Agent record Cancelled rather than
Failed status.
Auto Trait Implementations§
impl Freeze for AsyncTaskDone
impl RefUnwindSafe for AsyncTaskDone
impl Send for AsyncTaskDone
impl Sync for AsyncTaskDone
impl Unpin for AsyncTaskDone
impl UnsafeUnpin for AsyncTaskDone
impl UnwindSafe for AsyncTaskDone
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