Record Class PersistedDecisionAnswers.PersistedScale
java.lang.Object
java.lang.Record
dev.langchain4j.agentic.scope.PersistedDecisionAnswers.PersistedScale
- Enclosing class:
PersistedDecisionAnswers
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theconfidencerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.mean()Returns the value of themeanrecord component.Enum<?> Returns the value of themostLikelyrecord component.Returns the value of theprobabilitiesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PersistedScale
public PersistedScale(Enum<?> mostLikely, Double mean, Map<String, Double> probabilities, Double confidence) Creates an instance of aPersistedScalerecord class.- Parameters:
mostLikely- the value for themostLikelyrecord componentmean- the value for themeanrecord componentprobabilities- the value for theprobabilitiesrecord componentconfidence- the value for theconfidencerecord component
-
-
Method Details
-
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). -
mostLikely
Returns the value of themostLikelyrecord component.- Returns:
- the value of the
mostLikelyrecord component
-
mean
Returns the value of themeanrecord component.- Returns:
- the value of the
meanrecord component
-
probabilities
-
confidence
Returns the value of theconfidencerecord component.- Returns:
- the value of the
confidencerecord component
-