pub struct ChatCompletionMessageToolCallChunk {
pub index: i32,
pub id: Option<String>,
pub type: Option<String>,
pub function: Option<ChatCompletionMessageToolCallFunction>,
}Expand description
A tool call chunk in streaming responses
Fields§
§index: i32Index of the tool call in the array
id: Option<String>Unique identifier of the tool call
type: Option<String>Type of tool that was called
function: Option<ChatCompletionMessageToolCallFunction>Function that the LLM wants to call
Trait Implementations§
Source§impl Clone for ChatCompletionMessageToolCallChunk
impl Clone for ChatCompletionMessageToolCallChunk
Source§fn clone(&self) -> ChatCompletionMessageToolCallChunk
fn clone(&self) -> ChatCompletionMessageToolCallChunk
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<'de> Deserialize<'de> for ChatCompletionMessageToolCallChunk
impl<'de> Deserialize<'de> for ChatCompletionMessageToolCallChunk
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 ChatCompletionMessageToolCallChunk
impl RefUnwindSafe for ChatCompletionMessageToolCallChunk
impl Send for ChatCompletionMessageToolCallChunk
impl Sync for ChatCompletionMessageToolCallChunk
impl Unpin for ChatCompletionMessageToolCallChunk
impl UnwindSafe for ChatCompletionMessageToolCallChunk
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