Skip to main content
A generator agent produces drafts; an evaluator agent scores them and loops until approved — wired with AgentFlow and repeat.
The user sets a creative task; a generator–evaluator loop repeats until the evaluator approves the output.

Quick Start

1

Generator + evaluator loop

2

Tune the feedback loop


How It Works

The evaluator-optimiser pattern suits content generation, code refinement, and any task where quality improves with structured feedback.

Best Practices

Tell the evaluator exactly what APPROVED means — tone, length, format, or test coverage — so the loop converges quickly.
Set max_iterations on repeat() to avoid runaway loops when the evaluator never approves.
Instruct the generator to incorporate evaluator feedback explicitly on each pass.
Enable verbose output on agents while calibrating criteria, then disable for production runs.

Dynamic Judge

Score outputs against custom rubrics

Workflows

Compose multi-step agent workflows with AgentFlow