- All Implemented Interfaces:
Serializable,Comparable<AgentMode>,Constable
The UI mode the agent is in for a given turn.
Set on MessageOptions.setAgentMode(AgentMode) to send a message in a
specific mode; defaults to the session's current mode when unset.
- Since:
- 1.0.0
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe agent is working autonomously toward task completion.The agent is responding interactively to the user.The agent is preparing a plan before making changes.The agent is in shell-focused UI mode. -
Method Summary
Modifier and TypeMethodDescriptionstatic AgentModeDeserializes a JSON string value into the correspondingAgentModeenum constant.getValue()Returns the JSON value for this agent mode.static AgentModeReturns the enum constant of this class with the specified name.static AgentMode[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
INTERACTIVE
The agent is responding interactively to the user. -
PLAN
The agent is preparing a plan before making changes. -
AUTOPILOT
The agent is working autonomously toward task completion. -
SHELL
The agent is in shell-focused UI mode.
-
-
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
-
getValue
Returns the JSON value for this agent mode.- Returns:
- the string value used in JSON serialization
-
fromValue
Deserializes a JSON string value into the correspondingAgentModeenum constant.- Parameters:
value- the JSON string value- Returns:
- the matching
AgentMode, ornullif value isnull - Throws:
IllegalArgumentException- if the value does not match any known agent mode
-