Skip to content

Commit dd8b0f2

Browse files
committed
missed maxIterations
Signed-off-by: Dmitrii Tikhomirov <[email protected]>
1 parent 5760493 commit dd8b0f2

File tree

1 file changed

+3
-3
lines changed
  • experimental/fluent/agentic/src/test/java/io/serverlessworkflow/fluent/agentic

1 file changed

+3
-3
lines changed

experimental/fluent/agentic/src/test/java/io/serverlessworkflow/fluent/agentic/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -194,9 +194,9 @@ Predicate<AgenticScope> until = s -> s.readState("score", 0).doubleValue() >= 0.
194194
&nbsp;
195195
&nbsp;
196196
Workflow wf = workflow("retryFlow")
197-
.agent(creativeWriter)
198-
.loop(until, styleScorer, styleEditor)
199-
.build();
197+
.agent(creativeWriter)
198+
.tasks(loop(5, c -> c.readState("score", 0).doubleValue() >= 0.8, styleScorer, styleEditor))
199+
.build();
200200
&nbsp;
201201
String result = app.workflowDefinition(wf).instance(input).start().get().asText().orElseThrow();
202202

0 commit comments

Comments
 (0)