pub enum ToolInvocationTransition {
StartAttempt {
attempt_id: AttemptId,
},
RecordResult {
result: ToolResult,
},
RecordError {
error: ToolError,
},
ReconcileResult {
result: ToolResult,
},
ReconcileError {
error: ToolError,
},
}Expand description
Explicit transition appended to the run journal and invocation history.
Variants§
StartAttempt
Claim a unique physical attempt after durable preparation or safe retry.
RecordResult
Commit a successful result from the current executing attempt.
Fields
§
result: ToolResultValidated erased result.
RecordError
Commit public-safe failure and external-effect evidence.
ReconcileResult
Resolve the current unknown attempt to a successful result.
Fields
§
result: ToolResultAuthoritatively recovered result of the original attempt.
ReconcileError
Record authoritative or still-ambiguous reconciliation evidence.
Implementations§
Source§impl ToolInvocationTransition
impl ToolInvocationTransition
Sourcepub const fn kind(&self) -> ToolInvocationTransitionKind
pub const fn kind(&self) -> ToolInvocationTransitionKind
Returns the closed transition discriminator.
Trait Implementations§
Source§impl Clone for ToolInvocationTransition
impl Clone for ToolInvocationTransition
Source§impl Debug for ToolInvocationTransition
impl Debug for ToolInvocationTransition
Source§impl<'de> Deserialize<'de> for ToolInvocationTransition
impl<'de> Deserialize<'de> for ToolInvocationTransition
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl JsonSchema for ToolInvocationTransition
impl JsonSchema for ToolInvocationTransition
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for ToolInvocationTransition
impl !UnwindSafe for ToolInvocationTransition
impl Forget for ToolInvocationTransition
impl Freeze for ToolInvocationTransition
impl Move for ToolInvocationTransition
impl Send for ToolInvocationTransition
impl Sync for ToolInvocationTransition
impl Unpin for ToolInvocationTransition
impl UnsafeUnpin for ToolInvocationTransition
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