pub enum RunCommand {
RequestModel {
turn_id: TurnId,
step: u32,
context: ContextPack,
},
AwaitApproval {
call_id: ToolCallId,
reason: String,
},
ExecuteTool {
call: ToolCall,
},
}Expand description
Host command requested by the run state machine.
Variants§
RequestModel
Ask the host to make a model request.
Fields
§
context: ContextPackValidated context to submit to the model provider.
AwaitApproval
Ask the host to obtain approval for a tool call.
Fields
§
call_id: ToolCallIdPending call requiring an approval decision.
ExecuteTool
Ask the host to execute a validated tool call.
Trait Implementations§
Source§impl Clone for RunCommand
impl Clone for RunCommand
Source§fn clone(&self) -> RunCommand
fn clone(&self) -> RunCommand
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 RunCommand
impl Debug for RunCommand
Source§impl PartialEq for RunCommand
impl PartialEq for RunCommand
impl StructuralPartialEq for RunCommand
Auto Trait Implementations§
impl Freeze for RunCommand
impl RefUnwindSafe for RunCommand
impl Send for RunCommand
impl Sync for RunCommand
impl Unpin for RunCommand
impl UnsafeUnpin for RunCommand
impl UnwindSafe for RunCommand
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