pub enum ResponseOutputItem {
Message(ResponseOutputMessage),
Reasoning(ResponseReasoningItem),
FunctionCall(ResponseFunctionCall),
WebSearchCall(ResponseWebSearchCall),
Other,
}Expand description
An item in the output array of a Response.
Item types not modeled explicitly are preserved as
ResponseOutputItem::Other so that unknown or provider-specific items
do not break deserialization.
Variants§
Message(ResponseOutputMessage)
A message output from the model.
Reasoning(ResponseReasoningItem)
A reasoning item from the model (chain-of-thought and/or summaries).
FunctionCall(ResponseFunctionCall)
A call to a user-defined function.
WebSearchCall(ResponseWebSearchCall)
A web search performed by the server-side web search tool.
Other
Any item type not covered by the variants above.
Trait Implementations§
Source§impl Clone for ResponseOutputItem
impl Clone for ResponseOutputItem
Source§fn clone(&self) -> ResponseOutputItem
fn clone(&self) -> ResponseOutputItem
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 ResponseOutputItem
impl Debug for ResponseOutputItem
Source§impl<'de> Deserialize<'de> for ResponseOutputItem
impl<'de> Deserialize<'de> for ResponseOutputItem
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 ResponseOutputItem
impl RefUnwindSafe for ResponseOutputItem
impl Send for ResponseOutputItem
impl Sync for ResponseOutputItem
impl Unpin for ResponseOutputItem
impl UnsafeUnpin for ResponseOutputItem
impl UnwindSafe for ResponseOutputItem
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