Skip to content
Merged
Changes from all commits
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
Original file line number Diff line number Diff line change
Expand Up @@ -215,9 +215,14 @@ public void testReActAgentNoOutputSchema() throws Exception {
.apply(agent)
.toDataStream();

out.print();
CloseableIterator<Object> results = out.collectAsync();

env.execute();

Assertions.assertTrue(results.hasNext(), "The agent should emit a result.");
Assertions.assertTrue(
results.next() instanceof String,
"The result should be a String when no output schema is provided.");
}

// create ReAct agent; pass false to skip the output schema.
Expand Down
Loading