pub enum ToolInvocationState {
Prepared,
Executing {
attempt_id: AttemptId,
},
Committed {
result: ToolResult,
},
Failed {
error: ToolError,
},
Unknown {
error: ToolError,
},
}Expand description
Integrity-bound state payload of one invocation revision.
Variants§
Prepared
Prepared intent awaiting an attempt claim.
Executing
In-flight physical attempt.
Committed
Validated successful result.
Fields
§
result: ToolResultExact erased result and provenance.
Failed
Known failed outcome.
Unknown
Ambiguous external effect awaiting reconciliation.
Implementations§
Source§impl ToolInvocationState
impl ToolInvocationState
Sourcepub const fn status(&self) -> ToolInvocationStatus
pub const fn status(&self) -> ToolInvocationStatus
Returns the lifecycle discriminator.
Sourcepub const fn attempt_id(&self) -> Option<AttemptId>
pub const fn attempt_id(&self) -> Option<AttemptId>
Returns the physical attempt represented by this state, if any.
Trait Implementations§
Source§impl Clone for ToolInvocationState
impl Clone for ToolInvocationState
Source§impl Debug for ToolInvocationState
impl Debug for ToolInvocationState
Source§impl<'de> Deserialize<'de> for ToolInvocationState
impl<'de> Deserialize<'de> for ToolInvocationState
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 ToolInvocationState
impl JsonSchema for ToolInvocationState
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 ToolInvocationState
impl !UnwindSafe for ToolInvocationState
impl Forget for ToolInvocationState
impl Freeze for ToolInvocationState
impl Move for ToolInvocationState
impl Send for ToolInvocationState
impl Sync for ToolInvocationState
impl Unpin for ToolInvocationState
impl UnsafeUnpin for ToolInvocationState
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