Record Class AiOperationMetadata
java.lang.Object
java.lang.Record
org.springframework.ai.observation.AiOperationMetadata
- Record Components:
operationType
- The type of operation performed by the model. Whenever possible, a value fromAiOperationType
.provider
- The name of the system providing the model service. Whenever possible, a value fromAiProvider
.
Metadata associated with an AI operation (e.g. model inference, fine-tuning,
evaluation).
- Since:
- 1.0.0
- Author:
- Thomas Vitale
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionAiOperationMetadata
(String operationType, String provider) Create a newAiOperationMetadata
instance. -
Method Summary
Modifier and TypeMethodDescriptionstatic AiOperationMetadata.Builder
builder()
Create a newAiOperationMetadata.Builder
instance.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Returns the value of theoperationType
record component.provider()
Returns the value of theprovider
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
AiOperationMetadata
Create a newAiOperationMetadata
instance.- Parameters:
operationType
- the type of operationprovider
- the provider
-
-
Method Details
-
builder
Create a newAiOperationMetadata.Builder
instance.- Returns:
- a new
AiOperationMetadata.Builder
instance
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object)
. -
operationType
Returns the value of theoperationType
record component.- Returns:
- the value of the
operationType
record component
-
provider
Returns the value of theprovider
record component.- Returns:
- the value of the
provider
record component
-