pub struct InvalidToolCall {
pub name: Option<String>,
pub args: Option<String>,
pub id: Option<String>,
pub error: Option<String>,
}Expand description
Represents an invalid tool call that failed parsing.
Here we add an error key to surface errors made during generation
(e.g., invalid JSON arguments.)
Fields§
§name: Option<String>The name of the tool to be called
args: Option<String>The arguments to the tool call (unparsed string)
id: Option<String>An identifier associated with the tool call
error: Option<String>An error message associated with the tool call
Implementations§
Trait Implementations§
Source§impl Clone for InvalidToolCall
impl Clone for InvalidToolCall
Source§fn clone(&self) -> InvalidToolCall
fn clone(&self) -> InvalidToolCall
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 InvalidToolCall
impl Debug for InvalidToolCall
Source§impl<'de> Deserialize<'de> for InvalidToolCall
impl<'de> Deserialize<'de> for InvalidToolCall
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 InvalidToolCall
impl PartialEq for InvalidToolCall
Source§impl Serialize for InvalidToolCall
impl Serialize for InvalidToolCall
impl StructuralPartialEq for InvalidToolCall
Auto Trait Implementations§
impl Freeze for InvalidToolCall
impl RefUnwindSafe for InvalidToolCall
impl Send for InvalidToolCall
impl Sync for InvalidToolCall
impl Unpin for InvalidToolCall
impl UnwindSafe for InvalidToolCall
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