Package org.bsc.langgraph4j.action
Interface CommandAction<S extends AgentState>
- Type Parameters:
S- the state type, which must extendAgentState
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Defines a node that can also send command signals (goto, interrupt, etc.)
in addition to updating state.
A CommandAction is used when a node needs to direct the graph execution to a specific next node, interrupt the execution, or otherwise control the traversal of the graph beyond simple state updates.
- See Also:
-
Method Summary
-
Method Details
-
apply
- Throws:
Exception
-