pub enum FinishedKind {
Completed {
final_output: ModelOutput,
},
Interrupted {
cause: TurnInterruption,
facts: TurnSnapshot,
continuation: Option<Continuation>,
},
}Expand description
How a terminal work ended — the two terminal TurnResult shapes, kept as
(or inside) the driver’s own vocabulary rather than copied into new types.
Serialized snake_case, matching the envelope’s other enums (WorkState,
CancelOutcome) rather than the driver’s TurnResult casing — the
envelope is its own wire shape.
Variants§
Completed
The model ended the turn; the turn was committed into history.
Fields
final_output: ModelOutputThe turn’s final model output.
Interrupted
The turn stopped early; the real aborted facts and the cause were retained, and the turn stayed out of completed history.
Fields
cause: TurnInterruptionWhy the turn was interrupted.
facts: TurnSnapshotThe real facts of the aborted turn — the TurnSnapshot taken
when the session aborted it. Carried publicly so an interrupted
work’s material is verifiable without reading the
(completed-only) history, which deliberately excludes it.
continuation: Option<Continuation>The paused Continuation retained when a Paused work was
cancelled; None for a runner-produced interruption. A cancelled
work is terminal and not resumable — the continuation is retained
for inspection.
Trait Implementations§
Source§impl Clone for FinishedKind
impl Clone for FinishedKind
Source§fn clone(&self) -> FinishedKind
fn clone(&self) -> FinishedKind
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more