Record Class PersistedDecisionAnswers.PersistedYesNoAnswer
java.lang.Object
java.lang.Record
dev.langchain4j.agentic.scope.PersistedDecisionAnswers.PersistedYesNoAnswer
- Enclosing class:
PersistedDecisionAnswers
public static record PersistedDecisionAnswers.PersistedYesNoAnswer(double probability)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionPersistedYesNoAnswer(double probability) Creates an instance of aPersistedYesNoAnswerrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.doubleReturns the value of theprobabilityrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PersistedYesNoAnswer
public PersistedYesNoAnswer(double probability) Creates an instance of aPersistedYesNoAnswerrecord class.- Parameters:
probability- the value for theprobabilityrecord 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 with thecomparemethod from their corresponding wrapper classes. -
probability
public double probability()Returns the value of theprobabilityrecord component.- Returns:
- the value of the
probabilityrecord component
-