Class RoutingMergeNode

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

public class RoutingMergeNode extends Object implements NodeAction
Dedicated node for merging routing results. Collects outputs from sub-agents routed by LlmRoutingAgent, synthesizes them via LLM into a single coherent answer, and writes the merged result to state.
  • Field Details

    • DEFAULT_MERGED_OUTPUT_KEY

      public static final String DEFAULT_MERGED_OUTPUT_KEY
      Default key for the merged result in state.
      See Also:
  • Constructor Details

    • RoutingMergeNode

      public RoutingMergeNode(org.springframework.ai.chat.model.ChatModel chatModel, List<BaseAgent> subAgents)
    • RoutingMergeNode

      public RoutingMergeNode(org.springframework.ai.chat.model.ChatModel chatModel, List<BaseAgent> subAgents, String mergedOutputKey)
  • Method Details