pub struct StreamToolCall {
pub index: Option<i32>,
pub id: Option<String>,
pub type_: Option<StreamToolCallType>,
pub function: Option<StreamToolFunction>,
}Expand description
One incremental function call in a streaming delta.
Fields§
§index: Option<i32>Position of this call in the assistant’s tool-call list.
id: Option<String>Tool-call identifier, usually present in the first delta for a call.
type_: Option<StreamToolCallType>Tool kind; the frozen streaming schema currently defines only function.
function: Option<StreamToolFunction>Incremental function payload.
Trait Implementations§
Source§impl Clone for StreamToolCall
impl Clone for StreamToolCall
Source§fn clone(&self) -> StreamToolCall
fn clone(&self) -> StreamToolCall
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 StreamToolCall
impl Debug for StreamToolCall
Source§impl<'de> Deserialize<'de> for StreamToolCall
impl<'de> Deserialize<'de> for StreamToolCall
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
Auto Trait Implementations§
impl Freeze for StreamToolCall
impl RefUnwindSafe for StreamToolCall
impl Send for StreamToolCall
impl Sync for StreamToolCall
impl Unpin for StreamToolCall
impl UnsafeUnpin for StreamToolCall
impl UnwindSafe for StreamToolCall
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