Enum Class AiToolOutcome
- All Implemented Interfaces:
Serializable,Comparable<AiToolOutcome>,Constable
The outcome of running an AI tool call through the
AiToolKernel.
OK - the tool ran and its full result is in the model content.
DENIED - the session may not do this (or the object does not exist, or is
not exposed to the assistant - these are deliberately indistinguishable,
so a caller cannot probe which objects exist).
NOT_FOUND - the table is readable, but the requested record is not (it does
not exist, or record security hides it - again indistinguishable).
INVALID_INPUT - the tool name or its input was not valid.
TRUNCATED - the tool ran, but the server cap on rows reduced its result.
ERROR - an unexpected error (details are logged, never sent to the model).-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic AiToolOutcomeReturns the enum constant of this class with the specified name.static AiToolOutcome[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
OK
-
DENIED
-
NOT_FOUND
-
INVALID_INPUT
-
TRUNCATED
-
ERROR
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-