Class MainAgentToSupervisorEdgeAction

java.lang.Object
com.alibaba.cloud.ai.graph.agent.flow.node.MainAgentToSupervisorEdgeAction
All Implemented Interfaces:
AsyncEdgeAction, Function<OverAllState,CompletableFuture<String>>

public class MainAgentToSupervisorEdgeAction extends Object implements AsyncEdgeAction
Edge action that reads the mainAgent (ReactAgent) output from state and routes either to END (when "FINISH" or empty) or to the SupervisorNode (when a list of sub-agent names is present). Expects state key "supervisor_next" or a custom routing key.