pub struct OpenAIToolCall {
pub id: String,
pub call_type: String,
pub function: OpenAIFunction,
}Expand description
An OpenAI tool call, including the call ID used to pair its result.
Fields§
§id: StringUnique identifier for this tool call.
Generated by the model. Used to correlate tool results back to this specific call.
call_type: StringType of the call (always “function” in current API).
The rename attribute ensures this serializes as "type" in JSON
since type is a Rust keyword.
function: OpenAIFunctionFunction/tool details (name and arguments).
Trait Implementations§
Source§impl Clone for OpenAIToolCall
impl Clone for OpenAIToolCall
Source§impl Debug for OpenAIToolCall
impl Debug for OpenAIToolCall
Source§impl<'de> Deserialize<'de> for OpenAIToolCall
impl<'de> Deserialize<'de> for OpenAIToolCall
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 OpenAIToolCall
impl RefUnwindSafe for OpenAIToolCall
impl Send for OpenAIToolCall
impl Sync for OpenAIToolCall
impl Unpin for OpenAIToolCall
impl UnsafeUnpin for OpenAIToolCall
impl UnwindSafe for OpenAIToolCall
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