Class AiToolException

All Implemented Interfaces:
Serializable

public class AiToolException extends QException
Thrown by an AI tool to end its call with a non-OK outcome (DENIED, NOT_FOUND, INVALID_INPUT) and a polite message for the model. The kernel turns it into an AiToolResult - it never escapes AiToolKernel.execute. The message is sent to the model, so it must never contain data the session may not read.
See Also:
  • Constructor Details

  • Method Details

    • invalidInput

      public static AiToolException invalidInput(String message)
      An INVALID_INPUT exception.
    • getOutcome

      public AiToolOutcome getOutcome()
      Getter for outcome