Interface CommandAction<S extends AgentState>

Type Parameters:
S - the state type, which must extend AgentState
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface CommandAction<S extends AgentState>
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

    Modifier and Type
    Method
    Description
    apply(S state, RunnableConfig config)