pub enum ExecutePreparationOutcome {
Ready {
session: Box<Session>,
effective_model: String,
effective_reasoning_effort: Option<ReasoningEffort>,
model_source: &'static str,
reasoning_source: &'static str,
is_child_session: bool,
},
AlreadyRunning {
server_snapshot: ServerExecuteSnapshot,
},
NoPendingMessage {
server_snapshot: ServerExecuteSnapshot,
},
SyncMismatch {
reason: ExecuteSyncReason,
server_snapshot: ServerExecuteSnapshot,
},
ModelRequired,
ImageFallbackError(String),
}Expand description
Outcome of preparing an execute.
Variants§
Ready
Session is ready for agent execution.
Fields
§
effective_reasoning_effort: Option<ReasoningEffort>AlreadyRunning
Agent is already running for this session.
Fields
§
server_snapshot: ServerExecuteSnapshotNoPendingMessage
No pending user message, nothing to execute.
Fields
§
server_snapshot: ServerExecuteSnapshotSyncMismatch
Client/server state mismatch detected.
ModelRequired
No model could be resolved.
ImageFallbackError(String)
Image fallback validation failed.
Auto Trait Implementations§
impl Freeze for ExecutePreparationOutcome
impl RefUnwindSafe for ExecutePreparationOutcome
impl Send for ExecutePreparationOutcome
impl Sync for ExecutePreparationOutcome
impl Unpin for ExecutePreparationOutcome
impl UnsafeUnpin for ExecutePreparationOutcome
impl UnwindSafe for ExecutePreparationOutcome
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