pub enum ToolCallEvent {
Progress(ProgressNotificationParam),
TaskCreated(CreateTaskResult),
TaskStatus(Task),
Complete(Result<CallToolResult, CallToolError>),
TaskComplete {
task: Task,
result: Result<CallToolResult, CallToolError>,
},
Cancelled {
task_id: Option<String>,
},
}Variants§
Progress(ProgressNotificationParam)
TaskCreated(CreateTaskResult)
TaskStatus(Task)
Complete(Result<CallToolResult, CallToolError>)
TaskComplete
Cancelled
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for ToolCallEvent
impl !UnwindSafe for ToolCallEvent
impl Freeze for ToolCallEvent
impl Send for ToolCallEvent
impl Sync for ToolCallEvent
impl Unpin for ToolCallEvent
impl UnsafeUnpin for ToolCallEvent
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