Skip to content

docs(evals): document DTMF turns and reorganize the scenarios page#934

Merged
aconchillo merged 4 commits into
mainfrom
aleix/eval-dtmf-docs
Jun 23, 2026
Merged

docs(evals): document DTMF turns and reorganize the scenarios page#934
aconchillo merged 4 commits into
mainfrom
aleix/eval-dtmf-docs

Conversation

@aconchillo

Copy link
Copy Markdown
Contributor

Summary

Documents the new evals scenario-format features from the pipecat aleix/eval-dtmf work, and reorganizes the scenarios page so the format reads as a coherent whole.

New features documented

  • DTMF turns (dtmf:): pressing keypad keys as an alternative to user: (mutually exclusive). Covers how a DTMFAggregator turns keys into a transcription that drives a full user turn, the #-terminator vs idle-timeout flush, valid keys, and the YAML quoting gotcha.
  • Bare send_after: delays: the event: anchor is now optional, so send_after: { delay_ms: N } is a pure time delay (useful for pacing DTMF keypresses). A zero-delay no-event form is rejected.
  • Events table fix: user_transcription / user_started_speaking / user_stopped_speaking also fire on DTMF turns in either modality, not just audio mode.

Reorganization

The page is now four top-level parts:

  • Configuration (first): all scenario-wide setup, including the text/audio modes overview, user: delivery, judge:, factory:, context:, !include, and back-to-back / disconnect lifecycle.
  • User turns: per-turn authoring only, with subsections for the ways a turn drives the agent (user:, dtmf:, image:, send_after:).
  • Events / Assertions: kept separate.

This splits the two meanings of user: cleanly (the top-level delivery block lives in Configuration, the per-turn utterance in User turns) and cross-links the eval: assertion to the judge LLM that decides it.

Housekeeping

  • Removed em dashes from the page's prose.
  • Unified the heading/prose style to use a trailing colon whenever naming a YAML key (eval:, text_contains:, within_ms:).

mint broken-links passes; prettier-clean.

🤖 Generated with Claude Code

Cover the new scenario-format features for evals:

- `dtmf:` turns: pressing keypad keys as an alternative to `user:`, how a
  DTMFAggregator turns them into a transcription, and the `#`-terminator vs
  idle-timeout flush.
- `send_after:` without an event: a pure time delay for pacing input. Rename
  the section to "Scheduling input with `send_after:`" so the field is
  discoverable, not buried under "Interruptions".
- Note that DTMF turns emit user_* events in either modality.

Also clarify that the eval transport suppresses on_client_disconnected, and
remove em dashes from the page's prose.
…tions

Restructure the page around four top-level sections:

- Configuration (now first): all scenario-wide setup, including the
  text/audio modes overview, `user:` delivery, `judge:`, `factory:`,
  `context:`, `!include`, and back-to-back / disconnect lifecycle.
- Input: per-turn authoring only (user turns, dtmf, vision, send_after).
- Events / Assertions: kept as separate sections.

Splits the two meanings of `user:` cleanly (the top-level delivery block
lives in Configuration, the per-turn utterance field in Input) and cross-
links the `eval:` assertion to the judge LLM that decides it.
- "Input" section becomes "User turns", since dtmf and image turns are
  also user turns. Subsections are now the ways a turn drives the agent:
  "Utterances with `user:`", "DTMF keypresses with `dtmf:`",
  "Vision with `image:`", "Scheduling with `send_after:`".
- Use a trailing colon whenever a heading or prose names a YAML key, so
  `eval:`, `text_contains:`, and `within_ms:` match the block headings.
@github-actions

github-actions Bot commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

🔍 Mintlify preview for this branch: https://daily-aleix-eval-dtmf-docs.mintlify.app

@aconchillo aconchillo requested a review from markbackman June 22, 2026 23:48
Comment thread pipecat/evals/scenarios.mdx Outdated
- event: response
eval: "describes the weather and recommends a restaurant"
```
The rest of this page is in four parts: [Configuration](#configuration) for scenario-wide setup (modalities, the judge, context, lifecycle), then [User turns](#user-turns) for driving each turn, and [Events](#events) and [Assertions](#assertions) for checking what the agent emits.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you should make these cards or something that's more visual. It will break up the page and make this part easier to scan.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done!

@markbackman markbackman left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Really nice clean up. Just one suggestion.

@aconchillo aconchillo merged commit 600a436 into main Jun 23, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants