Skip to content

Commit cda8ee3

Browse files
fix(adk): correct ChatModelAgent's max step (#549)
1 parent c05eb81 commit cda8ee3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adk/chatmodel.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -674,7 +674,7 @@ func (a *ChatModelAgent) buildRunFunc(ctx context.Context) runFunc {
674674
return a.genModelInput(ctx, instruction, input)
675675
}),
676676
).
677-
AppendGraph(g, compose.WithNodeName("ReAct")).
677+
AppendGraph(g, compose.WithNodeName("ReAct"), compose.WithGraphCompileOptions(compose.WithMaxRunSteps(math.MaxInt))).
678678
Compile(ctx, compileOptions...)
679679
if err_ != nil {
680680
generator.Send(&AgentEvent{Err: err_})

0 commit comments

Comments
 (0)