Record Class QuarkusToolExecutor.Context
java.lang.Object
java.lang.Record
io.quarkiverse.langchain4j.runtime.tool.QuarkusToolExecutor.Context
- Enclosing class:
QuarkusToolExecutor
public static record QuarkusToolExecutor.Context(Object tool, String toolInvokerName, String methodName, String argumentMapperClassName, ToolMethodCreateInfo.ExecutionModel executionModel, dev.langchain4j.agent.tool.ReturnBehavior returnBehavior, boolean propagateToolExecutionExceptions)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionContext(Object tool, String toolInvokerName, String methodName, String argumentMapperClassName, ToolMethodCreateInfo.ExecutionModel executionModel, dev.langchain4j.agent.tool.ReturnBehavior returnBehavior, boolean propagateToolExecutionExceptions) Creates an instance of aContextrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theargumentMapperClassNamerecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theexecutionModelrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of themethodNamerecord component.booleanReturns the value of thepropagateToolExecutionExceptionsrecord component.dev.langchain4j.agent.tool.ReturnBehaviorReturns the value of thereturnBehaviorrecord 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, ToolMethodCreateInfo.ExecutionModel executionModel, dev.langchain4j.agent.tool.ReturnBehavior returnBehavior, boolean propagateToolExecutionExceptions) 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 componentexecutionModel- the value for theexecutionModelrecord componentreturnBehavior- the value for thereturnBehaviorrecord componentpropagateToolExecutionExceptions- the value for thepropagateToolExecutionExceptionsrecord 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. -
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
-
executionModel
Returns the value of theexecutionModelrecord component.- Returns:
- the value of the
executionModelrecord component
-
returnBehavior
public dev.langchain4j.agent.tool.ReturnBehavior returnBehavior()Returns the value of thereturnBehaviorrecord component.- Returns:
- the value of the
returnBehaviorrecord component
-
propagateToolExecutionExceptions
public boolean propagateToolExecutionExceptions()Returns the value of thepropagateToolExecutionExceptionsrecord component.- Returns:
- the value of the
propagateToolExecutionExceptionsrecord component
-