Class AiToolException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.kingsrook.qqq.backend.core.exceptions.QException
com.kingsrook.qqq.backend.core.actions.ai.tools.AiToolException
- All Implemented Interfaces:
Serializable
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGetter for outcomestatic AiToolExceptioninvalidInput(String message) An INVALID_INPUT exception.Methods inherited from class com.kingsrook.qqq.backend.core.exceptions.QException
getHasLoggedError, getHasLoggedWarning, hasLoggedLevel, setHasLoggedError, setHasLoggedLevel, setHasLoggedWarning, withHasLoggedError, withHasLoggedWarningMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
AiToolException
Constructor
-
-
Method Details
-
invalidInput
An INVALID_INPUT exception. -
getOutcome
Getter for outcome
-