Interface ResponseOutputItem.Visitor
- 
                    
                    - All Implemented Interfaces:
 
 public interface ResponseOutputItem.Visitor<T extends Object>An interface that defines how to map each variant of ResponseOutputItem to a value of type T. 
- 
                
                    
                    - 
                                
                            
                                Method SummaryModifier and Type Method Description abstract TvisitMessage(ResponseOutputMessage message)An output message from the model. abstract TvisitFileSearchCall(ResponseFileSearchToolCall fileSearchCall)The results of a file search tool call. abstract TvisitFunctionCall(ResponseFunctionToolCall functionCall)A tool call to run a function. abstract TvisitWebSearchCall(ResponseFunctionWebSearch webSearchCall)The results of a web search tool call. abstract TvisitComputerCall(ResponseComputerToolCall computerCall)A tool call to a computer use tool. abstract TvisitReasoning(ResponseReasoningItem reasoning)A description of the chain of thought used by a reasoning model while generating a response. abstract TvisitImageGenerationCall(ResponseOutputItem.ImageGenerationCall imageGenerationCall)An image generation request made by the model. abstract TvisitCodeInterpreterCall(ResponseCodeInterpreterToolCall codeInterpreterCall)A tool call to run code. abstract TvisitLocalShellCall(ResponseOutputItem.LocalShellCall localShellCall)A tool call to run a command on the local shell. abstract TvisitMcpCall(ResponseOutputItem.McpCall mcpCall)An invocation of a tool on an MCP server. abstract TvisitMcpListTools(ResponseOutputItem.McpListTools mcpListTools)A list of tools available on an MCP server. abstract TvisitMcpApprovalRequest(ResponseOutputItem.McpApprovalRequest mcpApprovalRequest)A request for human approval of a tool invocation. abstract TvisitCustomToolCall(ResponseCustomToolCall customToolCall)A call to a custom tool created by the model. Tunknown(JsonValue json)Maps an unknown variant of ResponseOutputItem to a value of type T. - 
                    
                    
                    - 
                                
                            
                                Method Detail- 
                                        visitMessageabstract T visitMessage(ResponseOutputMessage message) An output message from the model. 
 - 
                                        visitFileSearchCallabstract T visitFileSearchCall(ResponseFileSearchToolCall fileSearchCall) The results of a file search tool call. See the file search guide for more information. 
 - 
                                        visitFunctionCallabstract T visitFunctionCall(ResponseFunctionToolCall functionCall) A tool call to run a function. See the function calling guide for more information. 
 - 
                                        visitWebSearchCallabstract T visitWebSearchCall(ResponseFunctionWebSearch webSearchCall) The results of a web search tool call. See the web search guide for more information. 
 - 
                                        visitComputerCallabstract T visitComputerCall(ResponseComputerToolCall computerCall) A tool call to a computer use tool. See the computer use guide for more information. 
 - 
                                        visitReasoningabstract T visitReasoning(ResponseReasoningItem reasoning) A description of the chain of thought used by a reasoning model while generating a response. Be sure to include these items in your inputto the Responses API for subsequent turns of a conversation if you are manually managing context.
 - 
                                        visitImageGenerationCallabstract T visitImageGenerationCall(ResponseOutputItem.ImageGenerationCall imageGenerationCall) An image generation request made by the model. 
 - 
                                        visitCodeInterpreterCallabstract T visitCodeInterpreterCall(ResponseCodeInterpreterToolCall codeInterpreterCall) A tool call to run code. 
 - 
                                        visitLocalShellCallabstract T visitLocalShellCall(ResponseOutputItem.LocalShellCall localShellCall) A tool call to run a command on the local shell. 
 - 
                                        visitMcpCallabstract T visitMcpCall(ResponseOutputItem.McpCall mcpCall) An invocation of a tool on an MCP server. 
 - 
                                        visitMcpListToolsabstract T visitMcpListTools(ResponseOutputItem.McpListTools mcpListTools) A list of tools available on an MCP server. 
 - 
                                        visitMcpApprovalRequestabstract T visitMcpApprovalRequest(ResponseOutputItem.McpApprovalRequest mcpApprovalRequest) A request for human approval of a tool invocation. 
 - 
                                        visitCustomToolCallabstract T visitCustomToolCall(ResponseCustomToolCall customToolCall) A call to a custom tool created by the model. 
 - 
                                        unknownT unknown(JsonValue json) Maps an unknown variant of ResponseOutputItem to a value of type T. An instance of ResponseOutputItem can contain an unknown variant if it was deserialized from data that doesn't match any known variant. For example, if the SDK is on an older version than the API, then the API may respond with new variants that the SDK is unaware of. 
 
- 
                                        
 
- 
                                
                            
                                
 
- 
                    
                    
                    
 
-