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,
},
McpApprovalRequest {
id: String,
server_label: String,
name: String,
arguments: String,
},
WebSearchCall {
id: String,
status: WebSearchCallStatus,
action: WebSearchAction,
},
CodeInterpreterCall {
id: String,
status: CodeInterpreterCallStatus,
container_id: String,
code: Option<String>,
outputs: Option<Vec<CodeInterpreterOutput>>,
},
FileSearchCall {
id: String,
status: FileSearchCallStatus,
queries: Vec<String>,
results: Option<Vec<FileSearchResult>>,
},
}Variants§
Message
Reasoning
Fields
§
content: Vec<ResponseReasoningContent>FunctionToolCall
Fields
McpListTools
McpCall
Fields
McpApprovalRequest
WebSearchCall
CodeInterpreterCall
FileSearchCall
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
Source§impl JsonSchema for ResponseOutputItem
impl JsonSchema for ResponseOutputItem
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read moreAuto 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