Enum Class OpenAiCompatibleHostedTool
java.lang.Object
java.lang.Enum<OpenAiCompatibleHostedTool>
uno.anahata.asi.openai.compatible.OpenAiCompatibleHostedTool
- All Implemented Interfaces:
Serializable, Comparable<OpenAiCompatibleHostedTool>, Constable
Enumeration of native server-side tools provided by OpenAI via the Responses API.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionExecutes Python code in a sandboxed environment.Interacts with a virtual computer environment.Generates images using DALL-E.Searches the web using OpenAI's native tool. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic OpenAiCompatibleHostedToolReturns the enum constant of this class with the specified name.static OpenAiCompatibleHostedTool[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
WEB_SEARCH
Searches the web using OpenAI's native tool. -
CODE_INTERPRETER
Executes Python code in a sandboxed environment. -
COMPUTER_USE
Interacts with a virtual computer environment. -
IMAGE_GENERATION
Generates images using DALL-E.
-
-
Field Details
-
id
The unique hosted tool identifier. -
description
The human-readable description.
-
-
Constructor Details
-
OpenAiCompatibleHostedTool
private OpenAiCompatibleHostedTool()
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-

