pub struct ResponseFunctionToolCall {
pub arguments: String,
pub call_id: String,
pub id: Option<String>,
pub name: String,
pub status: Option<ResponseFunctionToolCallStatus>,
pub type_: ResponseFunctionToolCallType,
}Expand description
A tool call to a function generated by the model.
JSON schema
{
"description": "A tool call to a function generated by the model.",
"type": "object",
"required": [
"arguments",
"call_id",
"name",
"type"
],
"properties": {
"arguments": {
"description": "A JSON string of the arguments to pass to the function.",
"type": "string"
},
"call_id": {
"description": "The unique ID of the function tool call generated by the model, used to associate the call with its output.\n",
"type": "string"
},
"id": {
"description": "The unique ID of the function tool call.",
"type": "string"
},
"name": {
"description": "The name of the function to run.",
"type": "string"
},
"status": {
"description": "The status of the function tool call.",
"type": "string",
"enum": [
"in_progress",
"completed",
"incomplete"
]
},
"type": {
"description": "The type of the output item. Always `function_call`.",
"type": "string",
"enum": [
"function_call"
]
}
}
}Fields§
§arguments: StringA JSON string of the arguments to pass to the function.
call_id: StringThe unique ID of the function tool call generated by the model, used to associate the call with its output.
id: Option<String>The unique ID of the function tool call.
name: StringThe name of the function to run.
status: Option<ResponseFunctionToolCallStatus>The status of the function tool call.
type_: ResponseFunctionToolCallTypeThe type of the output item. Always function_call.
Trait Implementations§
Source§impl Clone for ResponseFunctionToolCall
impl Clone for ResponseFunctionToolCall
Source§fn clone(&self) -> ResponseFunctionToolCall
fn clone(&self) -> ResponseFunctionToolCall
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 ResponseFunctionToolCall
impl Debug for ResponseFunctionToolCall
Source§impl<'de> Deserialize<'de> for ResponseFunctionToolCall
impl<'de> Deserialize<'de> for ResponseFunctionToolCall
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<ResponseFunctionToolCall> for ResponseOutputItem
impl From<ResponseFunctionToolCall> for ResponseOutputItem
Source§fn from(value: ResponseFunctionToolCall) -> Self
fn from(value: ResponseFunctionToolCall) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ResponseFunctionToolCall
impl RefUnwindSafe for ResponseFunctionToolCall
impl Send for ResponseFunctionToolCall
impl Sync for ResponseFunctionToolCall
impl Unpin for ResponseFunctionToolCall
impl UnsafeUnpin for ResponseFunctionToolCall
impl UnwindSafe for ResponseFunctionToolCall
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