pub struct ToolErrorInfo {
pub error_type: String,
pub message: String,
pub retryable: bool,
pub details: Option<Value>,
}Expand description
Serializable error information for tool return.
Fields§
§error_type: StringError type/code.
message: StringHuman-readable message.
retryable: boolWhether the error is retryable.
details: Option<Value>Additional details.
Implementations§
Trait Implementations§
Source§impl Clone for ToolErrorInfo
impl Clone for ToolErrorInfo
Source§fn clone(&self) -> ToolErrorInfo
fn clone(&self) -> ToolErrorInfo
Returns a duplicate of the value. Read more
1.0.0 · 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 ToolErrorInfo
impl Debug for ToolErrorInfo
Source§impl<'de> Deserialize<'de> for ToolErrorInfo
impl<'de> Deserialize<'de> for ToolErrorInfo
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 From<&ToolError> for ToolErrorInfo
impl From<&ToolError> for ToolErrorInfo
Auto Trait Implementations§
impl Freeze for ToolErrorInfo
impl RefUnwindSafe for ToolErrorInfo
impl Send for ToolErrorInfo
impl Sync for ToolErrorInfo
impl Unpin for ToolErrorInfo
impl UnwindSafe for ToolErrorInfo
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