pub enum DispatchCommand {
Create {
tool_call_id: Arc<str>,
task: Arc<str>,
context: Option<Arc<str>>,
},
Update {
tool_call_id: Arc<str>,
task_id: Arc<str>,
message: Arc<str>,
},
}Expand description
A command driving an asynchronous external task. tool_call_id names the
model invocation; task_id names the task and exists only once a
Create is accepted (see DispatchEvent::Accepted).
Variants§
Create
Start a new task; no task ID exists yet.
Fields
§
tool_call_id: Arc<str>The ToolCall::id that requested the task.
Update
Send a follow-up to an already-accepted task.
Trait Implementations§
Source§impl Clone for DispatchCommand
impl Clone for DispatchCommand
Source§fn clone(&self) -> DispatchCommand
fn clone(&self) -> DispatchCommand
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 DispatchCommand
impl Debug for DispatchCommand
impl Eq for DispatchCommand
Source§impl From<DispatchCommand> for DispatchFrame
impl From<DispatchCommand> for DispatchFrame
Source§fn from(command: DispatchCommand) -> Self
fn from(command: DispatchCommand) -> Self
Wrap a DispatchCommand as DispatchFrame::Command.
Source§impl PartialEq for DispatchCommand
impl PartialEq for DispatchCommand
impl StructuralPartialEq for DispatchCommand
Auto Trait Implementations§
impl Freeze for DispatchCommand
impl RefUnwindSafe for DispatchCommand
impl Send for DispatchCommand
impl Sync for DispatchCommand
impl Unpin for DispatchCommand
impl UnsafeUnpin for DispatchCommand
impl UnwindSafe for DispatchCommand
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