Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
result can be AgenticScope and Map<String, Object>
Signed-off-by: Dmitrii Tikhomirov <[email protected]>
  • Loading branch information
treblereel committed Oct 2, 2025
commit ff59e5dac7d638d9406d42db0ef730e885c374b9
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,20 @@ public void testParallel() throws ExecutionException, InterruptedException {
assertEquals("Fake hero response", result.get("hero").toString());
assertEquals("Fake setting response", result.get("conflict").toString());
}

try (WorkflowApplication app = WorkflowApplication.builder().build()) {
AgenticScope result =
app.workflowDefinition(workflow)
.instance(topic)
.start()
.get()
.as(AgenticScope.class)
.orElseThrow();

assertEquals("Fake conflict response", result.readState("setting").toString());
assertEquals("Fake hero response", result.readState("hero").toString());
assertEquals("Fake setting response", result.readState("conflict").toString());
}
}

@Test
Expand Down Expand Up @@ -225,6 +239,19 @@ public void testSeqAndThenParallel() throws ExecutionException, InterruptedExcep
assertEquals(cultureTraits, result.get("culture"));
assertEquals(technologyTraits, result.get("technology"));
}

try (WorkflowApplication app = WorkflowApplication.builder().build()) {
AgenticScope result =
app.workflowDefinition(workflow)
.instance(topic)
.start()
.get()
.as(AgenticScope.class)
.orElseThrow();

assertEquals(cultureTraits, result.readState("culture"));
assertEquals(technologyTraits, result.readState("technology"));
}
}

@Test
Expand Down