Enum Class JumpTo

java.lang.Object
java.lang.Enum<JumpTo>
com.alibaba.cloud.ai.graph.agent.hook.JumpTo
All Implemented Interfaces:
Serializable, Comparable<JumpTo>, Constable

public enum JumpTo extends Enum<JumpTo>
Enumeration representing jump destinations in the agent workflow. Supports serialization to string and deserialization from string.
  • Enum Constant Details

    • tool

      public static final JumpTo tool
    • model

      public static final JumpTo model
    • end

      public static final JumpTo end
  • Method Details

    • values

      public static JumpTo[] 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

      public static JumpTo valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • toString

      public String toString()
      Converts this enum to its string representation. Used for JSON serialization via @JsonValue annotation.
      Overrides:
      toString in class Enum<JumpTo>
      Returns:
      the string representation of this enum (same as name())
    • fromString

      public static JumpTo fromString(String value)
      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

      public static JumpTo fromStringOrNull(String value)
      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