Class DecisionResponseMetadata
java.lang.Object
dev.langchain4j.model.decision.response.DecisionResponseMetadata
The metadata of a
DecisionResponse: the modelName() that produced the answers and the
tokenUsage() the call consumed. Provider integrations extend this class (and its self-typed
DecisionResponseMetadata.Builder) to add provider-specific metadata.- Since:
- 1.21.0
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected -
Method Summary
Modifier and TypeMethodDescriptionstatic DecisionResponseMetadata.Builder<?> builder()booleaninthashCode()The name of the model that produced the answers, as reported by the provider.toString()
-
Constructor Details
-
DecisionResponseMetadata
-
-
Method Details
-
modelName
The name of the model that produced the answers, as reported by the provider. This can be more specific than the requested name, for example a pinned version when an alias such as "latest" was requested. -
tokenUsage
-
equals
-
hashCode
-
toString
-
builder
-