Skip to content

Commit cad08a1

Browse files
committed
one more fix
Signed-off-by: Dmitrii Tikhomirov <chani.liet@gmail.com>
1 parent 5b4c084 commit cad08a1

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

experimental/fluent/agentic/src/test/java/io/serverlessworkflow/fluent/agentic/LC4JEquivalenceIT.java

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public void sequentialWorkflow() {
5151
Workflow wf = workflow("seqFlow").sequence(creativeWriter, audienceEditor, styleEditor).build();
5252

5353
List<TaskItem> items = wf.getDo();
54-
assertThat(items).hasSize(3);
54+
assertThat(items).hasSize(3)
5555

5656
assertThat(items.get(0).getName()).isEqualTo("process-0");
5757
assertThat(items.get(1).getName()).isEqualTo("process-1");
@@ -84,11 +84,7 @@ public void loopWorkflow() {
8484
Workflow wf =
8585
AgentWorkflowBuilder.workflow("retryFlow")
8686
.agent(creativeWriter)
87-
.loop(
88-
"reviewLoop",
89-
c -> c.readState("score", 0).doubleValue() >= 0.8,
90-
styleScorer,
91-
styleEditor)
87+
.tasks(loop(5, c -> c.readState("score", 0).doubleValue() >= 0.8, styleScorer, styleEditor))
9288
.build();
9389

9490
List<TaskItem> items = wf.getDo();

0 commit comments

Comments
 (0)