Package com.openai.models.responses
Interface Tool.Visitor
-
- All Implemented Interfaces:
public interface Tool.Visitor<T extends Object>
-
-
Method Summary
Modifier and Type Method Description abstract T
visitFileSearch(FileSearchTool fileSearch)
A tool that searches for relevant content from uploaded files. abstract T
visitFunction(FunctionTool function)
Defines a function in your own code the model can choose to call. abstract T
visitWebSearch(WebSearchTool webSearch)
This tool searches the web for relevant results to use in a response. abstract T
visitComputerUsePreview(ComputerTool computerUsePreview)
A tool that controls a virtual computer. T
unknown(JsonValue json)
Maps an unknown variant of Tool to a value of type T. -
-
Method Detail
-
visitFileSearch
abstract T visitFileSearch(FileSearchTool fileSearch)
A tool that searches for relevant content from uploaded files. Learn more about the file search tool.
-
visitFunction
abstract T visitFunction(FunctionTool function)
Defines a function in your own code the model can choose to call. Learn more about function calling.
-
visitWebSearch
abstract T visitWebSearch(WebSearchTool webSearch)
This tool searches the web for relevant results to use in a response. Learn more about the web search tool.
-
visitComputerUsePreview
abstract T visitComputerUsePreview(ComputerTool computerUsePreview)
A tool that controls a virtual computer. Learn more about the computer tool.
-
unknown
T unknown(JsonValue json)
Maps an unknown variant of Tool to a value of type T.
An instance of Tool 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.
-
-
-
-