Class AiOperationMetadata.Builder
java.lang.Object
org.springframework.ai.observation.AiOperationMetadata.Builder
- Enclosing class:
- AiOperationMetadata
Builder for
AiOperationMetadata
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Build theAiOperationMetadata
instance.operationType
(String operationType) Set the operation type.Set the provider.
-
Method Details
-
operationType
Set the operation type.- Parameters:
operationType
- the operation type- Returns:
- this
AiOperationMetadata.Builder
instance
-
provider
Set the provider.- Parameters:
provider
- the provider- Returns:
- this
AiOperationMetadata.Builder
instance
-
build
Build theAiOperationMetadata
instance.- Returns:
- a new
AiOperationMetadata
instance
-