pub struct ToolCall {
pub id: Option<String>,
pub name: Option<String>,
pub arguments: String,
}Expand description
One streamed tool call being assembled.
Fields§
§id: Option<String>The tool call id (set once, from the first fragment that carries it).
name: Option<String>The function name (set once).
arguments: StringThe function arguments, accumulated from streamed JSON fragments.
Trait Implementations§
impl Eq for ToolCall
impl StructuralPartialEq for ToolCall
Auto Trait Implementations§
impl Freeze for ToolCall
impl RefUnwindSafe for ToolCall
impl Send for ToolCall
impl Sync for ToolCall
impl Unpin for ToolCall
impl UnsafeUnpin for ToolCall
impl UnwindSafe for ToolCall
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