Record Class HelperMethod
java.lang.Object
java.lang.Record
dev.langchain4j.agentic.internal.HelperMethod
- Record Components:
method- the annotated methodtarget- the helper object declaring the method, ornullfor a static method
-
Constructor Summary
ConstructorsConstructorDescriptionHelperMethod(Method method, Object target) Creates an instance of aHelperMethodrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondescribe()final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.<T> TInvokes the method on its target with the given arguments.booleanisStatic()method()Returns the value of themethodrecord component.static HelperMethodtarget()Returns the value of thetargetrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
HelperMethod
-
-
Method Details
-
ofStatic
-
isStatic
public boolean isStatic() -
invoke
Invokes the method on its target with the given arguments. Reflective failures, including the exception thrown by the method itself, are reported wrapped in aRuntimeException. -
describe
- Returns:
- a description of the method for error messages, with the class of its helper object when it has one
-
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). -
method
-
target
-