Class FlowGraphBuilder
java.lang.Object
com.alibaba.cloud.ai.graph.agent.flow.builder.FlowGraphBuilder
A centralized builder for constructing StateGraphs for different FlowAgent types. This
class encapsulates the graph construction logic, making it reusable and easier to
maintain.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classConfiguration class for graph building parameters. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StateGraphbuildGraph(String strategyType, FlowGraphBuilder.FlowGraphConfig config) Generic graph builder that delegates to specific strategy implementations.
-
Constructor Details
-
FlowGraphBuilder
public FlowGraphBuilder()
-
-
Method Details
-
buildGraph
public static StateGraph buildGraph(String strategyType, FlowGraphBuilder.FlowGraphConfig config) throws GraphStateException Generic graph builder that delegates to specific strategy implementations.- Parameters:
strategyType- the type of strategy to use for buildingconfig- the configuration for graph building- Returns:
- the constructed StateGraph
- Throws:
GraphStateException- if graph construction fails
-