Class MainAgentNodeAction

java.lang.Object
com.alibaba.cloud.ai.graph.agent.flow.node.MainAgentNodeAction
All Implemented Interfaces:
NodeActionWithConfig

public class MainAgentNodeAction extends Object implements NodeActionWithConfig
NodeAction that delegates to a mainAgent (ReactAgent) by invoking its compiled graph. After the mainAgent runs, checks the last message in state "messages"; if it is an AssistantMessage whose text is a JSON array of sub-agent names, extracts them and sets "supervisor_next" for downstream routing.