Package dyntabs.ai.assistant
Record Class ToolMethod
java.lang.Object
java.lang.Record
dyntabs.ai.assistant.ToolMethod
public record ToolMethod(dev.langchain4j.agent.tool.ToolSpecification specification, Object targetObject, Method method)
extends Record
Internal record linking a
ToolSpecification to its target object and method.-
Constructor Summary
ConstructorsConstructorDescriptionToolMethod(dev.langchain4j.agent.tool.ToolSpecification specification, Object targetObject, Method method) Creates an instance of aToolMethodrecord 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.method()Returns the value of themethodrecord component.dev.langchain4j.agent.tool.ToolSpecificationReturns the value of thespecificationrecord component.Returns the value of thetargetObjectrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ToolMethod
public ToolMethod(dev.langchain4j.agent.tool.ToolSpecification specification, Object targetObject, Method method) Creates an instance of aToolMethodrecord class.- Parameters:
specification- the value for thespecificationrecord componenttargetObject- the value for thetargetObjectrecord componentmethod- the value for themethodrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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). -
specification
public dev.langchain4j.agent.tool.ToolSpecification specification()Returns the value of thespecificationrecord component.- Returns:
- the value of the
specificationrecord component
-
targetObject
Returns the value of thetargetObjectrecord component.- Returns:
- the value of the
targetObjectrecord component
-
method
Returns the value of themethodrecord component.- Returns:
- the value of the
methodrecord component
-