Enum Class AiOperationType
- All Implemented Interfaces:
Serializable,Comparable<AiOperationType>,Constable
Types of operations performed by AI systems. Inspired by the OpenTelemetry Semantic
Conventions for Generative AI.
- Since:
- 1.0.0
- Author:
- Thomas Vitale
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAI operation type for chat completion.AI operation type for embedding.AI operation type for tool execution.AI operation type for framework.AI operation type for image.AI operation type for text completion. -
Method Summary
Modifier and TypeMethodDescriptionvalue()Return the value of the operation type.static AiOperationTypeReturns the enum constant of this class with the specified name.static AiOperationType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CHAT
AI operation type for chat completion. -
EMBEDDING
AI operation type for embedding. -
EXECUTE_TOOL
AI operation type for tool execution. -
FRAMEWORK
AI operation type for framework. -
IMAGE
AI operation type for image. -
TEXT_COMPLETION
AI operation type for text completion.
-
-
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
-
value
Return the value of the operation type.- Returns:
- the value of the operation type
-