pub struct AssistantToolCall {
pub id: String,
pub name: String,
pub arguments: String,
}Expand description
A tool call as the model emitted it. Argument text arrives as fragments and is assembled elsewhere; by the time it reaches the loop it is one string.
Fields§
§id: String§name: String§arguments: StringTrait Implementations§
Source§impl Clone for AssistantToolCall
impl Clone for AssistantToolCall
Source§impl Debug for AssistantToolCall
impl Debug for AssistantToolCall
Source§impl Default for AssistantToolCall
impl Default for AssistantToolCall
Source§impl<'de> Deserialize<'de> for AssistantToolCall
impl<'de> Deserialize<'de> for AssistantToolCall
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 Eq for AssistantToolCall
Source§impl PartialEq for AssistantToolCall
impl PartialEq for AssistantToolCall
Source§impl Serialize for AssistantToolCall
impl Serialize for AssistantToolCall
impl StructuralPartialEq for AssistantToolCall
Auto Trait Implementations§
impl Forget for AssistantToolCall
impl Freeze for AssistantToolCall
impl Move for AssistantToolCall
impl RefUnwindSafe for AssistantToolCall
impl Send for AssistantToolCallwhere
RawVecInner: Send,
impl Sync for AssistantToolCallwhere
RawVecInner: Sync,
impl Unpin for AssistantToolCall
impl UnsafeUnpin for AssistantToolCall
impl UnwindSafe for AssistantToolCallwhere
RawVecInner: UnwindSafe,
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