Package akka.javasdk.ledger
Enum Class ToolCall.Status
- All Implemented Interfaces:
Serializable,Comparable<ToolCall.Status>,Constable
- Enclosing class:
ToolCall
What became of a tool call, as known when the runtime recorded the interaction. A later SDK
version can add values.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe call has a result that is not an error result.The call has an error 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 runtime did not run the tool.A capability tool call of an autonomous agent that the agent acts on after the interaction.The runtime did not report the status, or this version of the SDK does not know it. -
Method Summary
Modifier and TypeMethodDescriptionstatic ToolCall.StatusReturns the enum constant of this class with the specified name.static ToolCall.Status[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
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
The call has a result that is not an error result.responseholds 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
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.responseholds 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
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
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
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 asFAILEDinstead, and keeps the results of the other calls of the round.
-
-
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
-