pub struct ResponseFunctionToolCall {
pub arguments: String,
pub call_id: String,
pub name: String,
pub type_: String,
pub id: Option<String>,
pub namespace: Option<String>,
pub status: Option<ResponseFunctionToolCallStatus>,
}Expand description
A tool call to run a function.
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.
name: StringThe name of the function to run.
type_: StringThe type of the function tool call. Always function_call.
id: Option<String>The unique ID of the function tool call.
namespace: Option<String>The namespace of the function to run.
status: Option<ResponseFunctionToolCallStatus>The status of the item.
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
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