Enum Class HookPosition
- All Implemented Interfaces:
Serializable,Comparable<HookPosition>,Constable
Enum representing the position where a hook should be executed in the agent workflow.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionHook executes after the agent completes processingHook executes after the model returns a responseHook executes before the agent starts processingHook executes before the model is called -
Method Summary
Modifier and TypeMethodDescriptionstatic HookPositionReturns the enum constant of this class with the specified name.static HookPosition[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
BEFORE_AGENT
Hook executes before the agent starts processing -
AFTER_AGENT
Hook executes after the agent completes processing -
BEFORE_MODEL
Hook executes before the model is called -
AFTER_MODEL
Hook executes after the model returns a response
-
-
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
-