Skip to content

Commit c75a9e7

Browse files
zhouyou9505yuluo-yxAias00chickenlj
authored
fix: fix StateGraph with overAllStateFactory (alibaba#1054)
fix StateGraph with overAllStateFactory Co-authored-by: shown <[email protected]> Co-authored-by: aias00 <[email protected]> Co-authored-by: Ken Liu <[email protected]>
1 parent 414f5cd commit c75a9e7

File tree

1 file changed

+1
-1
lines changed
  • spring-ai-alibaba-graph/spring-ai-alibaba-graph-core/src/main/java/com/alibaba/cloud/ai/graph/agent

1 file changed

+1
-1
lines changed

spring-ai-alibaba-graph/spring-ai-alibaba-graph-core/src/main/java/com/alibaba/cloud/ai/graph/agent/ReactAgent.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ private StateGraph initGraph() throws GraphStateException {
165165
};
166166
}
167167

168-
return new StateGraph().addNode("agent", node_async(this.llmNode))
168+
return new StateGraph(this.overAllStateFactory).addNode("agent", node_async(this.llmNode))
169169
.addNode("tool", node_async(this.toolNode))
170170
.addEdge(START, "agent")
171171
.addConditionalEdges("agent", edge_async(this::think), Map.of("continue", "tool", "end", END))

0 commit comments

Comments
 (0)