Class MainAgentNodeAction
java.lang.Object
com.alibaba.cloud.ai.graph.agent.flow.node.MainAgentNodeAction
- All Implemented Interfaces:
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.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
logger
public static final org.slf4j.Logger logger
-
-
Constructor Details
-
MainAgentNodeAction
-
-
Method Details
-
apply
- Specified by:
applyin interfaceNodeActionWithConfig- Throws:
Exception
-