Enum Class HookPosition

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

public enum HookPosition extends Enum<HookPosition>
Enum representing the position where a hook should be executed in the agent workflow.
  • Enum Constant Details

    • BEFORE_AGENT

      public static final HookPosition BEFORE_AGENT
      Hook executes before the agent starts processing
    • AFTER_AGENT

      public static final HookPosition AFTER_AGENT
      Hook executes after the agent completes processing
    • BEFORE_MODEL

      public static final HookPosition BEFORE_MODEL
      Hook executes before the model is called
    • AFTER_MODEL

      public static final HookPosition AFTER_MODEL
      Hook executes after the model returns a response
  • Method Details

    • values

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