Class DefaultToolCallExceptionConverter
java.lang.Object
org.springframework.ai.tool.execution.DefaultToolCallExceptionConverter
- All Implemented Interfaces:
ToolCallExceptionConverter
Default implementation of
ToolCallExceptionConverter
.- Since:
- 1.0.0
- Author:
- Thomas Vitale
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
convert
(ToolExecutionException exception) Convert an exception thrown by a tool to a String that can be sent back to the AI model.
-
Constructor Details
-
DefaultToolCallExceptionConverter
public DefaultToolCallExceptionConverter(boolean alwaysThrow)
-
-
Method Details
-
convert
Description copied from interface:ToolCallExceptionConverter
Convert an exception thrown by a tool to a String that can be sent back to the AI model.- Specified by:
convert
in interfaceToolCallExceptionConverter
-
builder
-