Package dev.langchain4j.service.tool
Class DefaultToolExecutor.Builder
java.lang.Object
dev.langchain4j.service.tool.DefaultToolExecutor.Builder
- Enclosing class:
DefaultToolExecutor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
methodToInvoke
(Method methodToInvoke) originalMethod
(Method originalMethod) propagateToolExecutionExceptions
(Boolean propagateToolExecutionExceptions) If set totrue
, exceptions that occur during tool execution will be thrown instead of being returned as an exception message string.wrapToolArgumentsExceptions
(Boolean wrapToolArgumentsExceptions) If set totrue
, exceptions that occur during tool argument parsing or preparation will be wrapped in aToolArgumentsException
.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
object
-
originalMethod
-
methodToInvoke
-
wrapToolArgumentsExceptions
If set totrue
, exceptions that occur during tool argument parsing or preparation will be wrapped in aToolArgumentsException
.The default value is
false
. -
propagateToolExecutionExceptions
public DefaultToolExecutor.Builder propagateToolExecutionExceptions(Boolean propagateToolExecutionExceptions) If set totrue
, exceptions that occur during tool execution will be thrown instead of being returned as an exception message string. These exceptions will be wrapped in aToolExecutionException
.The default value is
false
. -
build
-