Class SupervisorGraphBuildingStrategy

java.lang.Object
com.alibaba.cloud.ai.graph.agent.flow.strategy.SupervisorGraphBuildingStrategy
All Implemented Interfaces:
FlowGraphBuildingStrategy

public class SupervisorGraphBuildingStrategy extends Object implements FlowGraphBuildingStrategy
Strategy for building supervisor-based routing graphs. In a supervisor graph, an LLM decides which sub-agent should handle the task, and sub-agents always return to the supervisor after completion. The supervisor can then either route to another sub-agent or mark the task as complete (END).