Record Class ToolService.CompensableToolExecution
java.lang.Object
java.lang.Record
dev.langchain4j.service.tool.ToolService.CompensableToolExecution
- Enclosing class:
ToolService
public static record ToolService.CompensableToolExecution(ToolExecution toolExecution, ToolExecutionResultMessage resultMessage)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionCompensableToolExecution(ToolExecution toolExecution, ToolExecutionResultMessage resultMessage) Creates an instance of aCompensableToolExecutionrecord 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.Returns the value of theresultMessagerecord component.Returns the value of thetoolExecutionrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CompensableToolExecution
public CompensableToolExecution(ToolExecution toolExecution, ToolExecutionResultMessage resultMessage) Creates an instance of aCompensableToolExecutionrecord class.- Parameters:
toolExecution- the value for thetoolExecutionrecord componentresultMessage- the value for theresultMessagerecord 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). -
toolExecution
Returns the value of thetoolExecutionrecord component.- Returns:
- the value of the
toolExecutionrecord component
-
resultMessage
Returns the value of theresultMessagerecord component.- Returns:
- the value of the
resultMessagerecord component
-