Class HumanInTheLoopHook
java.lang.Object
com.alibaba.cloud.ai.graph.agent.hook.ModelHook
com.alibaba.cloud.ai.graph.agent.hook.hip.HumanInTheLoopHook
- All Implemented Interfaces:
AsyncNodeActionWithConfig,InterruptableAction,Hook,BiFunction<OverAllState,RunnableConfig, CompletableFuture<Map<String, Object>>>
public class HumanInTheLoopHook
extends ModelHook
implements AsyncNodeActionWithConfig, InterruptableAction
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionafterModel(OverAllState state, RunnableConfig config) apply(OverAllState state, RunnableConfig config) static HumanInTheLoopHook.Builderbuilder()getName()interrupt(String nodeId, OverAllState state, RunnableConfig config) Methods inherited from class com.alibaba.cloud.ai.graph.agent.hook.ModelHook
beforeModel, getAgent, getAgentName, setAgent, setAgentNameMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.function.BiFunction
andThenMethods inherited from interface com.alibaba.cloud.ai.graph.agent.hook.Hook
getHookPositions, getKeyStrategys
-
Field Details
-
HITL_NODE_NAME
- See Also:
-
-
Method Details
-
builder
-
apply
- Specified by:
applyin interfaceAsyncNodeActionWithConfig- Specified by:
applyin interfaceBiFunction<OverAllState,RunnableConfig, CompletableFuture<Map<String, Object>>>
-
afterModel
- Overrides:
afterModelin classModelHook
-
interrupt
public Optional<InterruptionMetadata> interrupt(String nodeId, OverAllState state, RunnableConfig config) - Specified by:
interruptin interfaceInterruptableAction
-
getName
-
canJumpTo
-