Class ToolCallException

All Implemented Interfaces:
Serializable

public class ToolCallException extends RuntimeException
Indicates a business logic error in a Tool method.

If a method annotated with Tool throws an exception that is an instance of ToolCallException then it is automatically converted to a failed ToolResponse. The message of the exception is used as the text of the result content.

See Also:
  • Constructor Details

    • ToolCallException

      public ToolCallException(String message, Throwable cause)
    • ToolCallException

      public ToolCallException(String message)
    • ToolCallException

      public ToolCallException(Throwable cause)