pub struct ModelToolFailure { /* private fields */ }Expand description
Public-safe durable failure snapshot supplied back to a model.
Implementations§
Source§impl ModelToolFailure
impl ModelToolFailure
Sourcepub fn from_tool_error(error: &ToolError) -> Self
pub fn from_tool_error(error: &ToolError) -> Self
Copies only public-safe, identity-bound evidence from a tool error.
Sourcepub const fn invocation_id(&self) -> InvocationId
pub const fn invocation_id(&self) -> InvocationId
Returns the durable logical invocation identity.
Sourcepub const fn attempt_id(&self) -> AttemptId
pub const fn attempt_id(&self) -> AttemptId
Returns the physical failed attempt identity.
Sourcepub const fn tool(&self) -> &CapabilityIdentity
pub const fn tool(&self) -> &CapabilityIdentity
Returns the exact tool descriptor identity.
Sourcepub const fn failure_id(&self) -> FailureId
pub const fn failure_id(&self) -> FailureId
Returns the public failure occurrence identity.
Sourcepub const fn category(&self) -> FailureCategory
pub const fn category(&self) -> FailureCategory
Returns the public failure category.
Sourcepub const fn code(&self) -> &FailureCode
pub const fn code(&self) -> &FailureCode
Returns the stable public failure code.
Sourcepub const fn message(&self) -> &FailureMessage
pub const fn message(&self) -> &FailureMessage
Returns the bounded public-safe failure message.
Sourcepub const fn retry_advice(&self) -> RetryAdvice
pub const fn retry_advice(&self) -> RetryAdvice
Returns explicit retry advice from the originating tool boundary.
Sourcepub const fn external_effect(&self) -> ToolExternalEffect
pub const fn external_effect(&self) -> ToolExternalEffect
Returns authoritative external-effect evidence.
Trait Implementations§
Source§impl Clone for ModelToolFailure
impl Clone for ModelToolFailure
Source§impl Debug for ModelToolFailure
impl Debug for ModelToolFailure
Source§impl<'de> Deserialize<'de> for ModelToolFailure
impl<'de> Deserialize<'de> for ModelToolFailure
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
impl Eq for ModelToolFailure
Source§impl JsonSchema for ModelToolFailure
impl JsonSchema for ModelToolFailure
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 moreSource§impl PartialEq for ModelToolFailure
impl PartialEq for ModelToolFailure
Source§impl Serialize for ModelToolFailure
impl Serialize for ModelToolFailure
impl StructuralPartialEq for ModelToolFailure
Auto Trait Implementations§
impl Forget for ModelToolFailure
impl Freeze for ModelToolFailure
impl Move for ModelToolFailure
impl RefUnwindSafe for ModelToolFailure
impl Send for ModelToolFailure
impl Sync for ModelToolFailure
impl Unpin for ModelToolFailure
impl UnsafeUnpin for ModelToolFailure
impl UnwindSafe for ModelToolFailure
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