Class RoutingNode
java.lang.Object
com.alibaba.cloud.ai.graph.agent.flow.node.RoutingNode
- All Implemented Interfaces:
MultiCommandAction
Routing node that makes LLM-based routing decisions.
This node is designed to work with hooks - hooks can execute before this node
to trim or modify the message history before the routing decision is made.
Supports both single and multiple agent routing for parallel execution.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordSingle agent routing entry with targeted sub-question.static classResponse record for structured routing decision output. -
Constructor Summary
ConstructorsConstructorDescriptionRoutingNode(org.springframework.ai.chat.model.ChatModel chatModel, Agent rootAgent, List<Agent> subAgents) -
Method Summary
-
Constructor Details
-
RoutingNode
-
-
Method Details
-
apply
- Specified by:
applyin interfaceMultiCommandAction- Throws:
Exception
-