pub enum ToolExecutionState {
NotStarted,
Started {
execution_target: ExecutionTarget,
idempotency: ToolIdempotency,
},
Finished {
is_error: bool,
content: Vec<ContentBlock>,
error: Option<ToolFailure>,
presentation: Option<ToolPresentation>,
},
Interrupted {
reason: String,
execution_target: ExecutionTarget,
idempotency: ToolIdempotency,
},
}Expand description
Durable execution/recovery state for a tool call.
Variants§
NotStarted
The tool call exists but execution has not started.
Started
Execution crossed its durable start boundary.
Fields
§
execution_target: ExecutionTargetSelected execution boundary.
§
idempotency: ToolIdempotencyRecovery semantics declared at start.
Finished
Execution reached a durable terminal result.
Fields
§
content: Vec<ContentBlock>Canonical terminal content committed before a tool-result message.
§
error: Option<ToolFailure>Machine-readable failure when terminal result is an error.
§
presentation: Option<ToolPresentation>Optional UI-only presentation retained out of model context.
Interrupted
Execution was interrupted after start and has uncertain outcome.
Fields
§
execution_target: ExecutionTargetSelected execution boundary.
§
idempotency: ToolIdempotencyRecovery semantics declared at start.
Trait Implementations§
Source§impl Clone for ToolExecutionState
impl Clone for ToolExecutionState
Source§fn clone(&self) -> ToolExecutionState
fn clone(&self) -> ToolExecutionState
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 ToolExecutionState
impl Debug for ToolExecutionState
Source§impl PartialEq for ToolExecutionState
impl PartialEq for ToolExecutionState
impl StructuralPartialEq for ToolExecutionState
Auto Trait Implementations§
impl Freeze for ToolExecutionState
impl RefUnwindSafe for ToolExecutionState
impl Send for ToolExecutionState
impl Sync for ToolExecutionState
impl Unpin for ToolExecutionState
impl UnsafeUnpin for ToolExecutionState
impl UnwindSafe for ToolExecutionState
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