pub struct FunctionToolCallOutput {
pub id: Option<String>,
pub call_id: String,
pub output: String,
pub status: Option<FunctionToolCallOutputStatus>,
}
Expand description
The output of a function tool call.
Fields§
§id: Option<String>
The unique ID of the function tool call output. Populated when this item is returned via API.
call_id: String
The unique ID of the function tool call generated by the model.
output: String
A JSON string of the output of the function tool call.
status: Option<FunctionToolCallOutputStatus>
The status of the item. One of in_progress
, completed
, or
incomplete
. Populated when items are returned via API.
Implementations§
Source§impl FunctionToolCallOutput
impl FunctionToolCallOutput
Sourcepub fn builder() -> FunctionToolCallOutputBuilder<((), (), (), ())>
pub fn builder() -> FunctionToolCallOutputBuilder<((), (), (), ())>
Create a builder for building FunctionToolCallOutput
.
On the builder, call .id(...)
(optional), .call_id(...)
, .output(...)
, .status(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of FunctionToolCallOutput
.
Trait Implementations§
Source§impl Clone for FunctionToolCallOutput
impl Clone for FunctionToolCallOutput
Source§fn clone(&self) -> FunctionToolCallOutput
fn clone(&self) -> FunctionToolCallOutput
Returns a duplicate of the value. Read more
1.0.0 · 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 FunctionToolCallOutput
impl Debug for FunctionToolCallOutput
Source§impl<'de> Deserialize<'de> for FunctionToolCallOutput
impl<'de> Deserialize<'de> for FunctionToolCallOutput
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 FunctionToolCallOutput
impl PartialEq for FunctionToolCallOutput
Source§impl Serialize for FunctionToolCallOutput
impl Serialize for FunctionToolCallOutput
impl StructuralPartialEq for FunctionToolCallOutput
Auto Trait Implementations§
impl Freeze for FunctionToolCallOutput
impl RefUnwindSafe for FunctionToolCallOutput
impl Send for FunctionToolCallOutput
impl Sync for FunctionToolCallOutput
impl Unpin for FunctionToolCallOutput
impl UnwindSafe for FunctionToolCallOutput
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