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 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more