Package org.bsc.langgraph4j.hook
Class NodeHooks<State extends AgentState>
java.lang.Object
org.bsc.langgraph4j.hook.NodeHooks<State>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassclassstatic final recordNodeHooks.Result<State extends AgentState>class -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal NodeHooks<State>.AfterCallsfinal NodeHooks<State>.BeforeCalls -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapplyActionWithHooksHandlingInterruption(AsyncNodeActionWithConfig<State> action, String nodeId, State state, CompileConfig compileConfig, RunnableConfig config, AgentStateFactory<State> stateFactory, Map<String, Channel<?>> schema) voidvalidate(GraphDefinition.Nodes<?> nodes)
-
Field Details
-
beforeCalls
-
afterCalls
-
wrapCalls
-
-
Constructor Details
-
NodeHooks
public NodeHooks()
-
-
Method Details
-
applyActionWithHooksHandlingInterruption
public CompletableFuture<NodeHooks.Result<State>> applyActionWithHooksHandlingInterruption(AsyncNodeActionWithConfig<State> action, String nodeId, State state, CompileConfig compileConfig, RunnableConfig config, AgentStateFactory<State> stateFactory, Map<String, Channel<?>> schema) -
validate
- Throws:
GraphStateException
-