pub struct ChatCompletionMessageToolCall {
pub extra_content: Option<ToolCallExtraContent>,
pub function: ChatCompletionMessageToolCallFunction,
pub id: String,
pub type_: ChatCompletionToolType,
}Expand description
ChatCompletionMessageToolCall
JSON schema
{
"type": "object",
"required": [
"function",
"id",
"type"
],
"properties": {
"extra_content": {
"$ref": "#/definitions/ToolCallExtraContent"
},
"function": {
"$ref": "#/definitions/ChatCompletionMessageToolCallFunction"
},
"id": {
"description": "The ID of the tool call.",
"type": "string"
},
"type": {
"$ref": "#/definitions/ChatCompletionToolType"
}
}
}Fields§
§extra_content: Option<ToolCallExtraContent>§function: ChatCompletionMessageToolCallFunction§id: StringThe ID of the tool call.
type_: ChatCompletionToolTypeTrait Implementations§
Source§impl Clone for ChatCompletionMessageToolCall
impl Clone for ChatCompletionMessageToolCall
Source§fn clone(&self) -> ChatCompletionMessageToolCall
fn clone(&self) -> ChatCompletionMessageToolCall
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<'de> Deserialize<'de> for ChatCompletionMessageToolCall
impl<'de> Deserialize<'de> for ChatCompletionMessageToolCall
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 ChatCompletionMessageToolCall
impl RefUnwindSafe for ChatCompletionMessageToolCall
impl Send for ChatCompletionMessageToolCall
impl Sync for ChatCompletionMessageToolCall
impl Unpin for ChatCompletionMessageToolCall
impl UnsafeUnpin for ChatCompletionMessageToolCall
impl UnwindSafe for ChatCompletionMessageToolCall
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