Enum Class AiToolOutcome

java.lang.Object
java.lang.Enum<AiToolOutcome>
com.kingsrook.qqq.backend.core.actions.ai.AiToolOutcome
All Implemented Interfaces:
Serializable, Comparable<AiToolOutcome>, Constable

public enum AiToolOutcome extends Enum<AiToolOutcome>
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).
  • Enum Constant Details

  • Method Details

    • values

      public static AiToolOutcome[] 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

      public static AiToolOutcome valueOf(String name)
      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 name
      NullPointerException - if the argument is null