pub enum DispatchEvent {
Accepted {
tool_call_id: Arc<str>,
task_id: Arc<str>,
},
Rejected {
tool_call_id: Arc<str>,
message: Arc<str>,
},
Progress {
task_id: Arc<str>,
message: Arc<str>,
},
Question {
task_id: Arc<str>,
message: Arc<str>,
},
Completion {
task_id: Arc<str>,
message: Arc<str>,
},
Failure {
task_id: Arc<str>,
message: Arc<str>,
retryable: bool,
},
}Expand description
Variants§
Accepted
A DispatchCommand::Create was accepted; the task now has an ID.
Fields
§
tool_call_id: Arc<str>The ToolCall::id from the create command.
Rejected
A command failed before a task ID was assigned.
Fields
§
tool_call_id: Arc<str>The ToolCall::id from the rejected command.
Progress
An informational progress update from an accepted task.
Question
An accepted task is asking a question.
Completion
An accepted task finished successfully.
Failure
A previously accepted task later failed.
Trait Implementations§
Source§impl Clone for DispatchEvent
impl Clone for DispatchEvent
Source§fn clone(&self) -> DispatchEvent
fn clone(&self) -> DispatchEvent
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 DispatchEvent
impl Debug for DispatchEvent
impl Eq for DispatchEvent
Source§impl From<DispatchEvent> for DispatchFrame
impl From<DispatchEvent> for DispatchFrame
Source§fn from(event: DispatchEvent) -> Self
fn from(event: DispatchEvent) -> Self
Wrap a DispatchEvent as DispatchFrame::Event.
Source§impl PartialEq for DispatchEvent
impl PartialEq for DispatchEvent
impl StructuralPartialEq for DispatchEvent
Auto Trait Implementations§
impl Freeze for DispatchEvent
impl RefUnwindSafe for DispatchEvent
impl Send for DispatchEvent
impl Sync for DispatchEvent
impl Unpin for DispatchEvent
impl UnsafeUnpin for DispatchEvent
impl UnwindSafe for DispatchEvent
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