-
Notifications
You must be signed in to change notification settings - Fork 167
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
Hi all,
In langchain4j AIServices one can customize the behavior of
ToolArgumentsErrorHandler and ToolExecutionErrorHandler as follows:
return AiServices.builder(MyAgent.class)
.toolArgumentsErrorHandler((throwable, toolErrorContext) ->
ToolErrorHandlerResult.text("*Boom!")
)
.toolExecutionErrorHandler((throwable, toolErrorContext) -> {
throw new MyBusinessError("Boom");
})
.build();Is this something Quarkus-Langchian4j can support?
ToolArgumentsErrorHandler is important to us.
We use Jakarta Validation and without a custom toolArgumentsErrorHandler, the LLM receives a ConstraintViolationException and stacktrace if bad arguments are passed to a tool method.
Kind regards
Bob
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request