pub struct ToolRetryError {
pub tool_name: String,
pub message: String,
pub tool_call_id: Option<String>,
}Expand description
Tool requested a retry.
Fields§
§tool_name: StringTool name.
message: StringRetry message.
tool_call_id: Option<String>Tool call ID.
Implementations§
Trait Implementations§
Source§impl Clone for ToolRetryError
impl Clone for ToolRetryError
Source§fn clone(&self) -> ToolRetryError
fn clone(&self) -> ToolRetryError
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 ToolRetryError
impl Debug for ToolRetryError
Source§impl<'de> Deserialize<'de> for ToolRetryError
impl<'de> Deserialize<'de> for ToolRetryError
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 Display for ToolRetryError
impl Display for ToolRetryError
Source§impl Error for ToolRetryError
impl Error for ToolRetryError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<ToolRetryError> for SerdesAiError
impl From<ToolRetryError> for SerdesAiError
Source§fn from(source: ToolRetryError) -> Self
fn from(source: ToolRetryError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ToolRetryError
impl RefUnwindSafe for ToolRetryError
impl Send for ToolRetryError
impl Sync for ToolRetryError
impl Unpin for ToolRetryError
impl UnwindSafe for ToolRetryError
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