Enum ToolCallStatus
- All Implemented Interfaces:
Serializable, Comparable<ToolCallStatus>, java.lang.constant.Constable
Represents the definitive final status of a tool call after user interaction
and execution attempts.
This provides a more granular and explicit status than the simple
FunctionConfirmation, capturing states like cancellation or
feature disablement.
- Author:
- anahata
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe user's preference for this tool is 'Always', and it was executed.The user cancelled the entire confirmation dialog, so no calls in the batch were executed.The model attempted to call a tool while function calling was disabled by the user.The user's preference for this tool is 'Never', and it was not executed.The user explicitly denied this tool call for this turn.The user explicitly approved this tool call for this turn, and it was executed. -
Method Summary
Modifier and TypeMethodDescriptionstatic ToolCallStatusReturns the enum constant of this type with the specified name.static ToolCallStatus[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
ALWAYS
The user's preference for this tool is 'Always', and it was executed. -
YES
The user explicitly approved this tool call for this turn, and it was executed. -
NO
The user explicitly denied this tool call for this turn. -
NEVER
The user's preference for this tool is 'Never', and it was not executed. -
CANCELLED
The user cancelled the entire confirmation dialog, so no calls in the batch were executed. -
DISABLED
The model attempted to call a tool while function calling was disabled by the user.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-
