pub enum DriverAction<M = UnitModeProtocol>where
M: ModeProtocol,{
Emit(SessionEvent),
AppendEvents(Vec<SessionEventRecord<<M as ModeProtocol>::Event>>),
StartLlm {
request: Arc<LlmRequest>,
driver_state: Option<<M as ModeProtocol>::DriverState>,
},
StartTools {
calls: Vec<PendingToolCall>,
},
StartExec {
code: String,
driver_state: <M as ModeProtocol>::DriverState,
},
StartCheckpoint {
checkpoint: CheckpointKind,
on_empty: CheckpointResumeAction,
},
AdvanceModeIteration,
ScheduleTurnLimitFinal,
Finish(TurnOutcome),
}Variants§
Emit(SessionEvent)
AppendEvents(Vec<SessionEventRecord<<M as ModeProtocol>::Event>>)
StartLlm
StartTools
Fields
§
calls: Vec<PendingToolCall>StartExec
StartCheckpoint
AdvanceModeIteration
ScheduleTurnLimitFinal
Finish(TurnOutcome)
Auto Trait Implementations§
impl<M> Freeze for DriverAction<M>
impl<M = UnitModeProtocol> !RefUnwindSafe for DriverAction<M>
impl<M> Send for DriverAction<M>
impl<M> Sync for DriverAction<M>
impl<M> Unpin for DriverAction<M>
impl<M> UnsafeUnpin for DriverAction<M>
impl<M = UnitModeProtocol> !UnwindSafe for DriverAction<M>
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