Enum Class HumanConfirmation.Status
- All Implemented Interfaces:
Serializable, Comparable<HumanConfirmation.Status>, Constable
- Enclosing class:
HumanConfirmation
What the client reported for one confirmation prompt.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionacceptwithconfirm = true.The client cancelled the tool call while the prompt was open; the prompt was abandoned.cancel: the prompt was dismissed without a decision.decline, oracceptwithoutconfirm = true.The round trip threw, was interrupted, or returned no result.No answer within the elicitation timeout.The client cannot service a form elicitation; nothing was sent. -
Method Summary
Modifier and TypeMethodDescriptionid()static HumanConfirmation.StatusReturns the enum constant of this class with the specified name.static HumanConfirmation.Status[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ACCEPTED
acceptwithconfirm = true. -
DECLINED
decline, oracceptwithoutconfirm = true. -
CANCELLED
cancel: the prompt was dismissed without a decision. -
TIMED_OUT
No answer within the elicitation timeout. -
FAILED
The round trip threw, was interrupted, or returned no result. -
CALL_CANCELLED
The client cancelled the tool call while the prompt was open; the prompt was abandoned. -
UNSUPPORTED_BY_CLIENT
The client cannot service a form elicitation; nothing was sent.
-
-
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
-
id
- Returns:
- the lower-case payload spelling, for example
unsupported_by_client
-