pub enum BatchDecision {
Proceed,
Reject {
results: Vec<ToolResultPayload>,
unknown_decisions: Vec<UnknownDecision>,
},
Rewrite(Vec<ToolCallPayload>),
Pause {
deadline: Option<Duration>,
},
}Expand description
The driver’s action for a tool-use batch.
Variants§
Proceed
Dispatch the batch to the executor unchanged.
Reject
Skip execution entirely; the supplied results become the tool
results (the host supplies the error copy). Result call_ids
must pair with the batch — the fact machine rejects unpaired
results. Despite the variant’s name, any recorded status is
accepted; a precomputed UnknownOutcome result takes its action
from unknown_decisions (or the runner’s unknown-outcome
configuration when omitted).
Fields
results: Vec<ToolResultPayload>Results standing in for the skipped batch; their call_ids must
pair with the batch.
unknown_decisions: Vec<UnknownDecision>Explicit unknown-outcome actions for precomputed results whose
status is UnknownOutcome (see UnknownDecision); entries
may be omitted.
Rewrite(Vec<ToolCallPayload>)
Execute the rewritten payloads instead of the model-emitted ones. Call ids are expected to be preserved so results pair with the committed tool-call blocks.
Pause
Suspend the turn: context stays open, the batch is neither
executed nor rejected, and the outcome carries
crate::driver::TurnResult::Paused. deadline is the advisory
decision budget the host grants itself (remaining time;
host-side anchoring).
Trait Implementations§
Source§impl Clone for BatchDecision
impl Clone for BatchDecision
Source§fn clone(&self) -> BatchDecision
fn clone(&self) -> BatchDecision
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more