diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2026-01-27 10:18:40 +0100 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2026-01-27 09:30:55 +0000 |
| commit | 9a514c2f136aa42ebe9212c4ab1a526cfbe933c3 (patch) | |
| tree | e795a6fb0e5248724e68cc259e7374443238e437 /pkg/aflow/flow/patching/patching.go | |
| parent | 43e1df1d9b982f24e3ccba50cf8881eed86d8994 (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.go | 3 |
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", |
