Record Class QuarkusToolExecutor.Context
java.lang.Object
java.lang.Record
io.quarkiverse.langchain4j.runtime.tool.QuarkusToolExecutor.Context
- Enclosing class:
- QuarkusToolExecutor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theargumentMapperClassNamerecord 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 themethodNamerecord component.tool()Returns the value of thetoolrecord component.Returns the value of thetoolInvokerNamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Context
public Context(Object tool, String toolInvokerName, String methodName, String argumentMapperClassName) Creates an instance of aContextrecord class.- Parameters:
tool- the value for thetoolrecord componenttoolInvokerName- the value for thetoolInvokerNamerecord componentmethodName- the value for themethodNamerecord componentargumentMapperClassName- the value for theargumentMapperClassNamerecord 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). -
tool
Returns the value of thetoolrecord component.- Returns:
- the value of the
toolrecord component
-
toolInvokerName
Returns the value of thetoolInvokerNamerecord component.- Returns:
- the value of the
toolInvokerNamerecord component
-
methodName
Returns the value of themethodNamerecord component.- Returns:
- the value of the
methodNamerecord component
-
argumentMapperClassName
Returns the value of theargumentMapperClassNamerecord component.- Returns:
- the value of the
argumentMapperClassNamerecord component
-