Skip to content

Commit 0ad1fd7

Browse files
authored
Merge pull request #916 from pipecat-ai/aleix/the-eval-loop
Rename Agent Self-Improvement to The Eval Loop
2 parents c36868d + e31466e commit 0ad1fd7

6 files changed

Lines changed: 29 additions & 66 deletions

File tree

docs.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@
102102
"pipecat/evals/scenarios",
103103
"pipecat/evals/suites",
104104
"pipecat/evals/library",
105-
"pipecat/evals/agent-self-improvement",
105+
"pipecat/evals/the-eval-loop",
106106
{
107107
"group": "Third-party Platforms",
108108
"pages": [

pipecat/evals/overview.mdx

Lines changed: 17 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Evals make agent behavior testable the way unit tests make code testable:
2929
- **Regression safety**: run your scenarios after every prompt, model, or pipeline change and catch breakage before users do.
3030
- **Fast iteration**: text-mode evals skip STT and TTS entirely, so a full conversation test runs in seconds with no audio service cost.
3131
- **Semantic assertions**: an LLM judge checks meaning ("the response says the capital is Berlin"), not exact strings, so tests don't break when wording changes.
32-
- **A feedback signal for AI coding assistants**: evals give a coding assistant a command it can run and a pass/fail result it can read, closing the loop between writing agent code and verifying it. See [Agent Self-Improvement](/pipecat/evals/agent-self-improvement).
32+
- **A feedback signal for AI coding assistants**: evals give a coding assistant a command it can run and a pass/fail result it can read, closing the loop between writing agent code and verifying it. See [The Eval Loop](/pipecat/evals/the-eval-loop).
3333

3434
Pipecat itself relies on this framework: before every release, an eval suite drives 100+ example agents end to end.
3535

@@ -126,39 +126,30 @@ Pipecat's other building blocks feed into any evaluation workflow: [Metrics](/pi
126126

127127
<CardGroup cols={2}>
128128
<Card
129-
title="Quickstart"
130-
icon="rocket"
129+
title="Writing Scenarios"
130+
icon="file-pen"
131131
iconType="duotone"
132-
href="/pipecat/evals/quickstart"
132+
href="/pipecat/evals/scenarios"
133133
>
134-
Run your first eval against an existing agent in a few minutes.
134+
The full scenario format: turns, expectations, modalities, and the judge.
135135
</Card>
136136

137-
<Card
138-
title="Writing Scenarios"
139-
icon="file-pen"
140-
iconType="duotone"
141-
href="/pipecat/evals/scenarios"
142-
>
143-
The full scenario format: turns, expectations, modalities, and the judge.
144-
</Card>
145-
146-
<Card
147-
title="Eval Suites"
148-
icon="list-check"
149-
iconType="duotone"
150-
href="/pipecat/evals/suites"
151-
>
152-
Spawn multiple agents and run many scenarios concurrently from a manifest.
153-
</Card>
137+
<Card
138+
title="Eval Suites"
139+
icon="list-check"
140+
iconType="duotone"
141+
href="/pipecat/evals/suites"
142+
>
143+
Spawn multiple agents and run many scenarios concurrently from a manifest.
144+
</Card>
154145

155146
<Card
156-
title="Agent Self-Improvement"
147+
title="The Eval Loop"
157148
icon="arrows-rotate"
158149
iconType="duotone"
159-
href="/pipecat/evals/agent-self-improvement"
150+
href="/pipecat/evals/the-eval-loop"
160151
>
161-
Close the loop: let an AI coding assistant write, run, and fix against
162-
evals.
152+
Let a coding assistant write agent code, run evals, and iterate
153+
automatically until the agent is better.
163154
</Card>
164155
</CardGroup>

pipecat/evals/quickstart.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,4 +152,4 @@ This guide takes an existing agent, starts it with the eval transport, and runs
152152

153153
- Learn the full scenario format, including multi-turn conversations, function call assertions, interruptions, latency budgets, and text vs audio modes, in [Writing Scenarios](/pipecat/evals/scenarios).
154154
- Have many scenarios or agents? Let Pipecat spawn the agents for you with [Eval Suites](/pipecat/evals/suites).
155-
- Want your coding assistant to run these for you? See [Agent Self-Improvement](/pipecat/evals/agent-self-improvement).
155+
- Want your coding assistant to run these for you? See [The Eval Loop](/pipecat/evals/the-eval-loop).

pipecat/evals/scenarios.mdx

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -345,20 +345,12 @@ Bots often cancel their pipeline in `on_client_disconnected`, so a scenario with
345345

346346
<CardGroup cols={2}>
347347
<Card
348-
title="Eval Suites"
349-
icon="list-check"
348+
title="The Eval Loop"
349+
icon="arrows-rotate"
350350
iconType="duotone"
351-
href="/pipecat/evals/suites"
351+
href="/pipecat/evals/the-eval-loop"
352352
>
353-
Run many scenarios against many agents concurrently from a manifest.
354-
</Card>
355-
356-
<Card
357-
title="Using the Library"
358-
icon="code"
359-
iconType="duotone"
360-
href="/pipecat/evals/library"
361-
>
362-
Load, build, and run scenarios from Python instead of YAML.
353+
Let a coding assistant write agent code, run evals, and iterate
354+
automatically until the agent is better.
363355
</Card>
364356
</CardGroup>

pipecat/evals/suites.mdx

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -96,25 +96,3 @@ The exit code makes suites CI-ready with no extra glue:
9696
```
9797

9898
For deterministic, key-free CI runs, prefer text-mode scenarios and an OpenAI-compatible judge endpoint you control. Audio-mode scenarios work in CI too, but need the harness's TTS and STT services available (local models by default, which also need more CPU).
99-
100-
## Next steps
101-
102-
<CardGroup cols={2}>
103-
<Card
104-
title="Using the Library"
105-
icon="code"
106-
iconType="duotone"
107-
href="/pipecat/evals/library"
108-
>
109-
Orchestrate suites programmatically with `EvalManifest` and `EvalSuite`.
110-
</Card>
111-
112-
<Card
113-
title="Agent Self-Improvement"
114-
icon="arrows-rotate"
115-
iconType="duotone"
116-
href="/pipecat/evals/agent-self-improvement"
117-
>
118-
Let an AI coding assistant run your suite and iterate until it's green.
119-
</Card>
120-
</CardGroup>
Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
---
2-
title: "Agent Self-Improvement"
3-
description: "Close the loop: let an AI coding assistant write agent code, run evals, and iterate until they pass."
2+
title: "The Eval Loop"
3+
description: "Close the loop: evals give an AI coding assistant a pass/fail signal it can read, so it writes agent code, runs evals, and iterates automatically until the agent is better."
44
---
55

6-
Evals do more than catch regressions. They turn agent quality into a signal that an AI coding assistant can read, which changes how you build: instead of asking an assistant to "improve the prompt" and judging the result by hand, you describe the desired behavior as a scenario and let the assistant iterate until the eval passes.
6+
Evals turn agent quality into a signal an AI coding assistant can read. That closes the loop: instead of asking an assistant to "improve the prompt" and judging the result by hand, you describe the desired behavior as a scenario and let the assistant iterate until the eval passes, and the agent gets better with every pass.
7+
8+
Think of it as a REPL for agent behavior: the assistant writes a change, evals it, reads a pass/fail result, and loops, except the eval step already contains the judgment, so the cycle can close without a human reading the output.
79

810
## The loop
911

0 commit comments

Comments
 (0)