pub enum ResponseOutputItem {
Message {
id: String,
role: String,
content: Vec<ResponseContentPart>,
status: String,
},
Reasoning {
id: String,
summary: Vec<String>,
content: Vec<ResponseReasoningContent>,
status: Option<String>,
},
FunctionToolCall {
id: String,
call_id: String,
name: String,
arguments: String,
output: Option<String>,
status: String,
},
McpListTools {
id: String,
server_label: String,
tools: Vec<McpToolInfo>,
},
McpCall {
id: String,
status: String,
approval_request_id: Option<String>,
arguments: String,
error: Option<String>,
name: String,
output: String,
server_label: String,
},
}Variants§
Message
Reasoning
Fields
§
content: Vec<ResponseReasoningContent>FunctionToolCall
Fields
McpListTools
McpCall
Implementations§
Source§impl ResponseOutputItem
impl ResponseOutputItem
Sourcepub fn new_message(
id: String,
role: String,
content: Vec<ResponseContentPart>,
status: String,
) -> Self
pub fn new_message( id: String, role: String, content: Vec<ResponseContentPart>, status: String, ) -> Self
Create a new message output item
Sourcepub fn new_reasoning(
id: String,
summary: Vec<String>,
content: Vec<ResponseReasoningContent>,
status: Option<String>,
) -> Self
pub fn new_reasoning( id: String, summary: Vec<String>, content: Vec<ResponseReasoningContent>, status: Option<String>, ) -> Self
Create a new reasoning output item
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 · 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 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