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.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionAiOperationMetadata(String operationType, String provider) Create a newAiOperationMetadatainstance. -
Method Summary
Modifier and TypeMethodDescriptionstatic AiOperationMetadata.Builderbuilder()Create a newAiOperationMetadata.Builderinstance.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theoperationTyperecord component.provider()Returns the value of theproviderrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AiOperationMetadata
Create a newAiOperationMetadatainstance.- Parameters:
operationType- the type of operationprovider- the provider
-
-
Method Details
-
builder
Create a newAiOperationMetadata.Builderinstance.- Returns:
- a new
AiOperationMetadata.Builderinstance
-
toString
-
hashCode
-
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 theoperationTyperecord component.- Returns:
- the value of the
operationTyperecord component
-
provider
-