Class SupervisorAgent
java.lang.Object
com.alibaba.cloud.ai.graph.agent.Agent
com.alibaba.cloud.ai.graph.agent.flow.agent.FlowAgent
com.alibaba.cloud.ai.graph.agent.flow.agent.SupervisorAgent
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder for creating SupervisorAgent instances. -
Field Summary
Fields inherited from class com.alibaba.cloud.ai.graph.agent.flow.agent.FlowAgent
interruptBefore, stateSerializer, subAgentsFields inherited from class com.alibaba.cloud.ai.graph.agent.Agent
compileConfig, compiledGraph, description, executor, graph, name -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected -
Method Summary
Modifier and TypeMethodDescriptionbuilder()protected StateGraphAbstract method for subclasses to specify their graph building strategy.Methods inherited from class com.alibaba.cloud.ai.graph.agent.flow.agent.FlowAgent
asStateGraph, initGraph, schedule, subAgentsMethods inherited from class com.alibaba.cloud.ai.graph.agent.Agent
applyExecutorConfig, buildMessageInput, buildNonStreamConfig, buildStreamConfig, description, doInvoke, doInvokeAndGetOutput, doStream, getAndCompileGraph, getCurrentState, getGraph, invoke, invoke, invoke, invoke, invoke, invoke, invokeAndGetOutput, invokeAndGetOutput, invokeAndGetOutput, invokeAndGetOutput, invokeAndGetOutput, invokeAndGetOutput, name, schedule, stream, stream, stream, stream, stream, stream
-
Constructor Details
-
SupervisorAgent
-
-
Method Details
-
builder
-
buildSpecificGraph
protected StateGraph buildSpecificGraph(FlowGraphBuilder.FlowGraphConfig config) throws GraphStateException Description copied from class:FlowAgentAbstract method for subclasses to specify their graph building strategy. This method should be implemented by concrete FlowAgent subclasses to define how their specific graph structure should be built.- Specified by:
buildSpecificGraphin classFlowAgent- Parameters:
config- the graph configuration- Returns:
- the constructed StateGraph
- Throws:
GraphStateException- if graph construction fails
-
getSystemPrompt
-
getInstruction
-