Enum Class AiObservationAttributes
java.lang.Object
java.lang.Enum<AiObservationAttributes>
org.springframework.ai.observation.conventions.AiObservationAttributes
- All Implemented Interfaces:
Serializable
,Comparable<AiObservationAttributes>
,Constable
Collection of attribute keys used in AI observations (spans, metrics, events). Based on
the OpenTelemetry Semantic Conventions for AI Systems.
- 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 ConstantDescriptionThe name of the operation being performed.The model provider as identified by the client instrumentation.The full response received from the model.The full prompt sent to the model.The number of dimensions the resulting output embeddings have.The frequency penalty setting for the model request.The format in which the generated image is returned.The size of the image to generate.The style of the image to generate.The maximum number of tokens the model generates for a request.The name of the model a request is being made to.The presence penalty setting for the model request.List of sequences that the model will use to stop generating further tokens.The temperature setting for the model request.The top_k sampling setting for the model request.The top_p sampling setting for the model request.Reasons the model stopped generating tokens, corresponding to each generation received.The unique identifier for the AI response.The name of the model that generated the response.The number of tokens used in the model input.The number of tokens used in the model output.The total number of tokens used in the model exchange. -
Method Summary
Modifier and TypeMethodDescriptionvalue()
static AiObservationAttributes
Returns the enum constant of this class with the specified name.static AiObservationAttributes[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
AI_OPERATION_TYPE
The name of the operation being performed. -
AI_PROVIDER
The model provider as identified by the client instrumentation. -
REQUEST_MODEL
The name of the model a request is being made to. -
REQUEST_FREQUENCY_PENALTY
The frequency penalty setting for the model request. -
REQUEST_MAX_TOKENS
The maximum number of tokens the model generates for a request. -
REQUEST_PRESENCE_PENALTY
The presence penalty setting for the model request. -
REQUEST_STOP_SEQUENCES
List of sequences that the model will use to stop generating further tokens. -
REQUEST_TEMPERATURE
The temperature setting for the model request. -
REQUEST_TOP_K
The top_k sampling setting for the model request. -
REQUEST_TOP_P
The top_p sampling setting for the model request. -
REQUEST_EMBEDDING_DIMENSIONS
The number of dimensions the resulting output embeddings have. -
REQUEST_IMAGE_RESPONSE_FORMAT
The format in which the generated image is returned. -
REQUEST_IMAGE_SIZE
The size of the image to generate. -
REQUEST_IMAGE_STYLE
The style of the image to generate. -
RESPONSE_FINISH_REASONS
Reasons the model stopped generating tokens, corresponding to each generation received. -
RESPONSE_ID
The unique identifier for the AI response. -
RESPONSE_MODEL
The name of the model that generated the response. -
USAGE_INPUT_TOKENS
The number of tokens used in the model input. -
USAGE_OUTPUT_TOKENS
The number of tokens used in the model output. -
USAGE_TOTAL_TOKENS
The total number of tokens used in the model exchange. -
PROMPT
The full prompt sent to the model. -
COMPLETION
The full response received from the model.
-
-
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
-