Enum Class ToolCall.Status

Object
Enum<ToolCall.Status>
akka.javasdk.ledger.ToolCall.Status
All Implemented Interfaces:
Serializable, Comparable<ToolCall.Status>, Constable
Enclosing class:
ToolCall

public static enum ToolCall.Status extends Enum<ToolCall.Status>
What became of a tool call, as known when the runtime recorded the interaction. A later SDK version can add values.
  • Enum Constant Details

    • UNSPECIFIED

      public static final ToolCall.Status UNSPECIFIED
      The runtime did not report the status, or this version of the SDK does not know it. A record that an older runtime wrote has this value.
    • COMPLETED

      public static final ToolCall.Status COMPLETED
      The call has a result that is not an error result. response holds it, and it can be empty. The runtime does not read the text, so a result that reports an error only in its text has this status. A call of a failed interaction can have this status. The runtime then may not have sent the result to the model.
    • FAILED

      public static final ToolCall.Status FAILED
      The call has an error result. The tool returned one, or an autonomous agent turned the failure of the call into one, for example a tool that throws or a tool name that does not exist. response holds the error text. A call of a failed interaction can have this status. The runtime then may not have sent the error text to the model.
    • NOT_RUN

      public static final ToolCall.Status NOT_RUN
      The runtime did not run the tool. The call was past the tool call limit, or an autonomous agent was stopped before the tool round ran. A capability tool call of an autonomous agent also has this status when a guardrail blocked the response of the model or a tool result of the tool round, because the agent then does not act on it.
    • PENDING

      public static final ToolCall.Status PENDING
      A capability tool call of an autonomous agent that the agent acts on after the interaction. When the agent runs another iteration, its result is a tool call response of that interaction.
    • NO_RESULT

      public static final ToolCall.Status NO_RESULT
      The interaction ended before the call had a result, because the tool round failed or the caller cancelled a streamed reply while the tool round ran. The tool can have run. When a guardrail blocks a call of a tool round, every call of the round has this status, also a call that completed and a capability tool call. The same holds when a tool fails on a single reply or a streamed reply. An autonomous agent records a tool that fails as FAILED instead, and keeps the results of the other calls of the round.
  • Method Details

    • values

      public static ToolCall.Status[] 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 ToolCall.Status 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