pub struct InferenceCreateChatCompletionBodyMessagesItemToolCallsItem {
pub function: InferenceCreateChatCompletionBodyMessagesItemToolCallsItemFunction,
pub id: String,
pub type_: InferenceCreateChatCompletionBodyMessagesItemToolCallsItemType,
}Expand description
InferenceCreateChatCompletionBodyMessagesItemToolCallsItem
JSON schema
{
"type": "object",
"required": [
"function",
"id",
"type"
],
"properties": {
"function": {
"type": "object",
"required": [
"arguments",
"name"
],
"properties": {
"arguments": {
"description": "The arguments to call the function with, as generated by the model in JSON format.",
"examples": [
"{\"location\": \"Boston\"}"
],
"type": "string"
},
"name": {
"description": "The name of the function to call.",
"examples": [
"get_weather"
],
"type": "string"
}
}
},
"id": {
"description": "The ID of the tool call.",
"examples": [
"call_abc123"
],
"type": "string"
},
"type": {
"description": "The type of the tool. Currently, only function is supported.",
"examples": [
"function"
],
"type": "string",
"enum": [
"function"
]
}
}
}Fields§
§function: InferenceCreateChatCompletionBodyMessagesItemToolCallsItemFunction§id: StringThe ID of the tool call.
type_: InferenceCreateChatCompletionBodyMessagesItemToolCallsItemTypeThe type of the tool. Currently, only function is supported.
Trait Implementations§
Source§impl Clone for InferenceCreateChatCompletionBodyMessagesItemToolCallsItem
impl Clone for InferenceCreateChatCompletionBodyMessagesItemToolCallsItem
Source§fn clone(&self) -> InferenceCreateChatCompletionBodyMessagesItemToolCallsItem
fn clone(&self) -> InferenceCreateChatCompletionBodyMessagesItemToolCallsItem
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 InferenceCreateChatCompletionBodyMessagesItemToolCallsItem
impl<'de> Deserialize<'de> for InferenceCreateChatCompletionBodyMessagesItemToolCallsItem
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
Source§impl From<&InferenceCreateChatCompletionBodyMessagesItemToolCallsItem> for InferenceCreateChatCompletionBodyMessagesItemToolCallsItem
impl From<&InferenceCreateChatCompletionBodyMessagesItemToolCallsItem> for InferenceCreateChatCompletionBodyMessagesItemToolCallsItem
Source§fn from(
value: &InferenceCreateChatCompletionBodyMessagesItemToolCallsItem,
) -> Self
fn from( value: &InferenceCreateChatCompletionBodyMessagesItemToolCallsItem, ) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for InferenceCreateChatCompletionBodyMessagesItemToolCallsItem
impl RefUnwindSafe for InferenceCreateChatCompletionBodyMessagesItemToolCallsItem
impl Send for InferenceCreateChatCompletionBodyMessagesItemToolCallsItem
impl Sync for InferenceCreateChatCompletionBodyMessagesItemToolCallsItem
impl Unpin for InferenceCreateChatCompletionBodyMessagesItemToolCallsItem
impl UnsafeUnpin for InferenceCreateChatCompletionBodyMessagesItemToolCallsItem
impl UnwindSafe for InferenceCreateChatCompletionBodyMessagesItemToolCallsItem
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