pub struct FunctionToolCallResource {
pub call_id: String,
pub name: String,
pub arguments: String,
pub status: Option<FunctionToolCallStatus>,
pub id: String,
}
Fields§
§call_id: String
The unique ID of the function tool call generated by the model.
name: String
The name of the function to run.
arguments: String
A JSON string of the arguments to pass to the function.
status: Option<FunctionToolCallStatus>
The status of the item. One of in_progress
, completed
, or
incomplete
. Populated when items are returned via API.
id: String
The unique ID of the function tool call.
Implementations§
Source§impl FunctionToolCallResource
impl FunctionToolCallResource
Sourcepub fn builder() -> FunctionToolCallResourceBuilder<((), (), (), (), ())>
pub fn builder() -> FunctionToolCallResourceBuilder<((), (), (), (), ())>
Create a builder for building FunctionToolCallResource
.
On the builder, call .call_id(...)
, .name(...)
, .arguments(...)
, .status(...)
(optional), .id(...)
to set the values of the fields.
Finally, call .build()
to create the instance of FunctionToolCallResource
.
Trait Implementations§
Source§impl Clone for FunctionToolCallResource
impl Clone for FunctionToolCallResource
Source§fn clone(&self) -> FunctionToolCallResource
fn clone(&self) -> FunctionToolCallResource
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for FunctionToolCallResource
impl Debug for FunctionToolCallResource
Source§impl<'de> Deserialize<'de> for FunctionToolCallResource
impl<'de> Deserialize<'de> for FunctionToolCallResource
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 PartialEq for FunctionToolCallResource
impl PartialEq for FunctionToolCallResource
Source§fn eq(&self, other: &FunctionToolCallResource) -> bool
fn eq(&self, other: &FunctionToolCallResource) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.Source§impl Serialize for FunctionToolCallResource
impl Serialize for FunctionToolCallResource
impl StructuralPartialEq for FunctionToolCallResource
Auto Trait Implementations§
impl Freeze for FunctionToolCallResource
impl RefUnwindSafe for FunctionToolCallResource
impl Send for FunctionToolCallResource
impl Sync for FunctionToolCallResource
impl Unpin for FunctionToolCallResource
impl UnwindSafe for FunctionToolCallResource
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