pub struct ToolExecutionError {
pub tool_call_id: ToolCallId,
pub tool_name: ToolName,
pub input: JsonValue,
pub error: ToolErrorInfo,
pub provider_executed: bool,
pub dynamic: bool,
pub provider_metadata: Option<ProviderMetadata>,
}Expand description
A failed tool execution (non-fatal: reported back to the model).
Fields§
§tool_call_id: ToolCallIdIdentifier of the tool call.
tool_name: ToolNameName of the tool.
input: JsonValueThe input.
error: ToolErrorInfoThe error.
provider_executed: boolWhether the provider executed the tool.
dynamic: boolWhether the tool is dynamic.
provider_metadata: Option<ProviderMetadata>Provider-specific metadata.
Trait Implementations§
Source§impl Clone for ToolExecutionError
impl Clone for ToolExecutionError
Source§fn clone(&self) -> ToolExecutionError
fn clone(&self) -> ToolExecutionError
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 ToolExecutionError
impl Debug for ToolExecutionError
Source§impl<'de> Deserialize<'de> for ToolExecutionError
impl<'de> Deserialize<'de> for ToolExecutionError
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 PartialEq for ToolExecutionError
impl PartialEq for ToolExecutionError
Source§impl Serialize for ToolExecutionError
impl Serialize for ToolExecutionError
impl StructuralPartialEq for ToolExecutionError
Auto Trait Implementations§
impl Freeze for ToolExecutionError
impl RefUnwindSafe for ToolExecutionError
impl Send for ToolExecutionError
impl Sync for ToolExecutionError
impl Unpin for ToolExecutionError
impl UnsafeUnpin for ToolExecutionError
impl UnwindSafe for ToolExecutionError
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