pub struct FunctionToolCall {
pub arguments: String,
pub call_id: String,
pub id: Option<String>,
pub name: String,
pub status: Option<String>,
pub _type: String,
}
Fields§
§arguments: String
A JSON string of the arguments to pass to the function.
call_id: String
The unique ID of the function tool call generated by the model.
id: Option<String>
The unique ID of the function tool call.
name: String
The name of the function to run.
status: Option<String>
The status of the item. One of in_progress
, completed
, or incomplete
. Populated when items are returned via API.
_type: String
The type of the function tool call. Always function_call
.
Trait Implementations§
Source§impl Debug for FunctionToolCall
impl Debug for FunctionToolCall
Source§impl<'de> Deserialize<'de> for FunctionToolCall
impl<'de> Deserialize<'de> for FunctionToolCall
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 FunctionToolCall
impl RefUnwindSafe for FunctionToolCall
impl Send for FunctionToolCall
impl Sync for FunctionToolCall
impl Unpin for FunctionToolCall
impl UnwindSafe for FunctionToolCall
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