pub enum OutputItem {
Show 13 variants
Message(OutputMessage),
FileSearchCall(FileSearchToolCall),
FunctionCall(FunctionToolCall),
WebSearchCall(WebSearchToolCall),
ComputerCall(ComputerToolCall),
Reasoning(ReasoningItem),
ImageGenerationCall(ImageGenToolCall),
CodeInterpreterCall(CodeInterpreterToolCall),
LocalShellCall(LocalShellToolCall),
McpCall(MCPToolCall),
McpListTools(MCPListTools),
McpApprovalRequest(MCPApprovalRequest),
CustomToolCall(CustomToolCall),
}Expand description
Output item
Variants§
Message(OutputMessage)
An output message from the model.
FileSearchCall(FileSearchToolCall)
The results of a file search tool call. See the file search guide for more information.
FunctionCall(FunctionToolCall)
A tool call to run a function. See the function calling guide for more information.
WebSearchCall(WebSearchToolCall)
The results of a web search tool call. See the web search guide for more information.
ComputerCall(ComputerToolCall)
A tool call to a computer use tool. See the computer use guide for more information.
Reasoning(ReasoningItem)
A description of the chain of thought used by a reasoning model while generating
a response. Be sure to include these items in your input to the Responses API for
subsequent turns of a conversation if you are manually
managing context.
ImageGenerationCall(ImageGenToolCall)
An image generation request made by the model.
CodeInterpreterCall(CodeInterpreterToolCall)
A tool call to run code.
LocalShellCall(LocalShellToolCall)
A tool call to run a command on the local shell.
McpCall(MCPToolCall)
An invocation of a tool on an MCP server.
McpListTools(MCPListTools)
A list of tools available on an MCP server.
McpApprovalRequest(MCPApprovalRequest)
A request for human approval of a tool invocation.
CustomToolCall(CustomToolCall)
A call to a custom tool created by the model.
Trait Implementations§
Source§impl Clone for OutputItem
impl Clone for OutputItem
Source§fn clone(&self) -> OutputItem
fn clone(&self) -> OutputItem
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for OutputItem
impl Debug for OutputItem
Source§impl<'de> Deserialize<'de> for OutputItem
impl<'de> Deserialize<'de> for OutputItem
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>,
Source§impl PartialEq for OutputItem
impl PartialEq for OutputItem
Source§impl Serialize for OutputItem
impl Serialize for OutputItem
impl StructuralPartialEq for OutputItem
Auto Trait Implementations§
impl Freeze for OutputItem
impl RefUnwindSafe for OutputItem
impl Send for OutputItem
impl Sync for OutputItem
impl Unpin for OutputItem
impl UnwindSafe for OutputItem
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
clone_to_uninit)