aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/aflow/flow/patching/patching.go
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2026-01-27 10:18:40 +0100
committerDmitry Vyukov <dvyukov@google.com>2026-01-27 09:30:55 +0000
commit9a514c2f136aa42ebe9212c4ab1a526cfbe933c3 (patch)
treee795a6fb0e5248724e68cc259e7374443238e437 /pkg/aflow/flow/patching/patching.go
parent43e1df1d9b982f24e3ccba50cf8881eed86d8994 (diff)
pkg/aflow: add explicit DoWhile.MaxIterations
Add DoWhile.MaxIterations and make it mandatory. I think it's useful to make workflow implementer to think explicitly about a reasonable cap on the number of iterations.
Diffstat (limited to 'pkg/aflow/flow/patching/patching.go')
-rw-r--r--pkg/aflow/flow/patching/patching.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkg/aflow/flow/patching/patching.go b/pkg/aflow/flow/patching/patching.go
index ea5780022..a5aba0ccc 100644
--- a/pkg/aflow/flow/patching/patching.go
+++ b/pkg/aflow/flow/patching/patching.go
@@ -78,7 +78,8 @@ func init() {
},
crash.TestPatch, // -> PatchDiff or TestError
),
- While: "TestError",
+ While: "TestError",
+ MaxIterations: 10,
},
&aflow.LLMAgent{
Name: "description-generator",