Enum Class JumpTo
- All Implemented Interfaces:
Serializable,Comparable<JumpTo>,Constable
Enumeration representing jump destinations in the agent workflow.
Supports serialization to string and deserialization from string.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic JumpTofromString(String value) Converts a string to a JumpTo enum instance.static JumpTofromStringOrNull(String value) Converts a string to a JumpTo enum instance, returning null if the value is null or invalid.toString()Converts this enum to its string representation.static JumpToReturns the enum constant of this class with the specified name.static JumpTo[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
tool
-
model
-
end
-
-
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
-
toString
Converts this enum to its string representation. Used for JSON serialization via @JsonValue annotation. -
fromString
Converts a string to a JumpTo enum instance. Supports case-insensitive matching. Used for JSON deserialization via @JsonCreator annotation.- Parameters:
value- the string value to convert- Returns:
- the corresponding JumpTo enum instance
- Throws:
IllegalArgumentException- if the value does not match any enum constant
-
fromStringOrNull
Converts a string to a JumpTo enum instance, returning null if the value is null or invalid. This is a safe version that doesn't throw exceptions.- Parameters:
value- the string value to convert- Returns:
- the corresponding JumpTo enum instance, or null if value is null or invalid
-