pub struct ToolUse {
pub id: String,
pub name: String,
pub args: Value,
pub malformed_args: Option<MalformedToolArgs>,
pub signature: Option<String>,
}Fields§
§id: String§name: String§args: Value§malformed_args: Option<MalformedToolArgs>Present when the model’s raw call could not be decoded into an
executable call: args that were not valid JSON, or a stream that
never delivered the function name (name is then
MISSING_TOOL_NAME). Such a call is non-executable and must be
returned as an error result.
signature: Option<String>Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ToolUse
impl<'de> Deserialize<'de> for ToolUse
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 StructuralPartialEq for ToolUse
Auto Trait Implementations§
impl Freeze for ToolUse
impl RefUnwindSafe for ToolUse
impl Send for ToolUse
impl Sync for ToolUse
impl Unpin for ToolUse
impl UnsafeUnpin for ToolUse
impl UnwindSafe for ToolUse
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