Class DefaultToolExecutionExceptionProcessor
java.lang.Object
org.springframework.ai.tool.execution.DefaultToolExecutionExceptionProcessor
- All Implemented Interfaces:
ToolExecutionExceptionProcessor
public class DefaultToolExecutionExceptionProcessor
extends Object
implements ToolExecutionExceptionProcessor
Default implementation of
ToolExecutionExceptionProcessor
.- Since:
- 1.0.0
- Author:
- Thomas Vitale
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
process
(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.
-
Constructor Details
-
DefaultToolExecutionExceptionProcessor
public DefaultToolExecutionExceptionProcessor(boolean alwaysThrow)
-
-
Method Details
-
process
Description copied from interface:ToolExecutionExceptionProcessor
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.- Specified by:
process
in interfaceToolExecutionExceptionProcessor
-
builder
-