Class FlowGraphBuilder.FlowGraphConfig
java.lang.Object
com.alibaba.cloud.ai.graph.agent.flow.builder.FlowGraphBuilder.FlowGraphConfig
- Enclosing class:
- FlowGraphBuilder
Configuration class for graph building parameters.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuilder()chatModel(org.springframework.ai.chat.model.ChatModel model) conditionalAgents(Map<String, Agent> agents) customProperty(String key, Object value) org.springframework.ai.chat.model.ChatModelgetCustomProperty(String key) getName()keyStrategyFactory(KeyStrategyFactory factory) voidsetChatModel(org.springframework.ai.chat.model.ChatModel chatModel) voidsetConditionalAgents(Map<String, Agent> conditionalAgents) voidvoidsetRootAgent(Agent rootAgent) voidsetStateSerializer(StateSerializer stateSerializer) voidsetSubAgents(List<Agent> subAgents) stateSerializer(StateSerializer stateSerializer) Sets the state serializer for the graph.
-
Constructor Details
-
FlowGraphConfig
public FlowGraphConfig()
-
-
Method Details
-
getName
-
setName
-
getKeyStrategyFactory
-
getStateSerializer
-
setStateSerializer
-
getRootAgent
-
setRootAgent
-
getSubAgents
-
setSubAgents
-
getConditionalAgents
-
setConditionalAgents
-
getChatModel
public org.springframework.ai.chat.model.ChatModel getChatModel() -
setChatModel
public void setChatModel(org.springframework.ai.chat.model.ChatModel chatModel) -
builder
-
name
-
keyStrategyFactory
-
rootAgent
-
subAgents
-
conditionalAgents
-
chatModel
public FlowGraphBuilder.FlowGraphConfig chatModel(org.springframework.ai.chat.model.ChatModel model) -
stateSerializer
Sets the state serializer for the graph.- Parameters:
stateSerializer- the state serializer to use- Returns:
- this config instance for method chaining
-
customProperty
-
getCustomProperty
-
getCustomProperties
-