Package org.springframework.ai.decision
Class DecisionResponseMetadata
java.lang.Object
org.springframework.ai.model.MutableResponseMetadata
org.springframework.ai.decision.DecisionResponseMetadata
- All Implemented Interfaces:
ResponseMetadata
Metadata associated with a
DecisionResponse: the response id and the model that
answered, when the provider reports them, and the token usage. Two instances of the
same class are equal when these three match; the entries put into the metadata map are
not compared.- Since:
- 2.1.0
- Author:
- Thomas Vitale, Christian Tzolov
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDecisionResponseMetadata(@Nullable String id, @Nullable String model, Usage usage) For subclasses, such as provider-specific metadata; usebuilder()otherwise. -
Method Summary
Methods inherited from class org.springframework.ai.model.MutableResponseMetadata
clear, computeIfAbsent, containsKey, entrySet, get, getOrDefault, getRawMap, getRequired, isEmpty, keySet, put, removeMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.springframework.ai.model.ResponseMetadata
getOrDefault
-
Constructor Details
-
DecisionResponseMetadata
For subclasses, such as provider-specific metadata; usebuilder()otherwise.
-
-
Method Details
-
builder
-
getId
The response id, ornullwhen the provider doesn't report one. -
getModel
The model that answered, ornullwhen the provider doesn't report it. -
getUsage
-
equals
-
hashCode
public int hashCode() -
toString
-