Skip to content

Commit 2eac403

Browse files
Update _posts/2026-05-18-introducing-voting-agent.adoc
Co-authored-by: Clement Escoffier <clement.escoffier@gmail.com>
1 parent 07e631e commit 2eac403

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

_posts/2026-05-18-introducing-voting-agent.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Among other things, that example highlighted that having an agent evaluate its o
1616

1717
The https://docs.langchain4j.dev/tutorials/agents/#voting-agentic-pattern[voting pattern], introduced in LangChain4j 1.15.0, addresses this by dispatching the same input to multiple evaluator agents in parallel, collecting their individual assessments, and then aggregating them into a single consolidated result. This is not a simple majority vote on a boolean decision: the aggregation strategy is fully customizable, allowing the system to combine structured results in whatever way makes sense for the task at hand.
1818

19-
To put this into practice, let's build a story evaluation system. The pipeline works as follows: a creative writer generates a short story from a given topic, then a panel of three critics, each specialized in a different aspect, evaluates the story in parallel. Their scores and suggestions are aggregated into a single critique, which is fed back to an editor agent that rewrites the story. This review loop repeats until the aggregated score crosses a quality threshold or a maximum number of iterations is reached.
19+
To put this into practice, let's build a story evaluation system. The pipeline works as follows: a creative writer generates a short story on a given topic, and then a panel of three critics, each specialized in a different aspect, evaluates the story in parallel. Their scores and suggestions are aggregated into a single critique, which is fed back to an editor agent that rewrites the story. This review loop repeats until the aggregated score crosses a quality threshold or a maximum number of iterations is reached.
2020

2121
=== Defining the agents
2222

0 commit comments

Comments
 (0)