Interface ToolExecutionExceptionProcessor
- All Known Implementing Classes:
DefaultToolExecutionExceptionProcessor
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A functional interface to process a
ToolExecutionException
by either converting
the error message to a String that can be sent back to the AI model or throwing an
exception to be handled by the caller.- Since:
- 1.0.0
- Author:
- Thomas Vitale
-
Method Summary
Modifier and TypeMethodDescriptionprocess
(ToolExecutionException exception) Convert an exception thrown by a tool to a String that can be sent back to the AI model or throw an exception to be handled by the caller.
-
Method Details
-
process
Convert an exception thrown by a tool to a String that can be sent back to the AI model or throw an exception to be handled by the caller.
-