Record Class ToolService.ToolResultsOutcome
java.lang.Object
java.lang.Record
dev.langchain4j.service.tool.ToolService.ToolResultsOutcome
- Enclosing class:
ToolService
public static record ToolService.ToolResultsOutcome(boolean anyToolErrored, List<ReturnBehavior> returnBehaviors, List<ToolExecutionResultMessage> resultMessages)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionToolResultsOutcome(boolean anyToolErrored, List<ReturnBehavior> returnBehaviors, List<ToolExecutionResultMessage> resultMessages) Creates an instance of aToolResultsOutcomerecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of theanyToolErroredrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theresultMessagesrecord component.Returns the value of thereturnBehaviorsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ToolResultsOutcome
public ToolResultsOutcome(boolean anyToolErrored, List<ReturnBehavior> returnBehaviors, List<ToolExecutionResultMessage> resultMessages) Creates an instance of aToolResultsOutcomerecord class.- Parameters:
anyToolErrored- the value for theanyToolErroredrecord componentreturnBehaviors- the value for thereturnBehaviorsrecord componentresultMessages- the value for theresultMessagesrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
anyToolErrored
public boolean anyToolErrored()Returns the value of theanyToolErroredrecord component.- Returns:
- the value of the
anyToolErroredrecord component
-
returnBehaviors
Returns the value of thereturnBehaviorsrecord component.- Returns:
- the value of the
returnBehaviorsrecord component
-
resultMessages
Returns the value of theresultMessagesrecord component.- Returns:
- the value of the
resultMessagesrecord component
-