scenario_config

The user: and judge: blocks every scenario file carries, and their summary.

user: decides how the user’s turns reach the bot (text, or speech synthesized by a TTS) and judge: how the bot’s reply is judged (its LLM text, or a transcription of its speech, by which judge LLM). describe_config() renders both as the two-line summary printed before a run.

class pipecat.evals.scenario_config.EvalConfigured(*args, **kwargs)[source]

Bases: Protocol

The modality and service config a scenario and a simulation share.

user_audio: bool
user_speech: dict | None
bot_audio: bool
transcriber: dict | None
judge: dict
pipecat.evals.scenario_config.describe_config(scenario: EvalConfigured, *, color: bool = False) → str[source]

Two-line summary of a scenario’s user + judge config, for pre-run logs.

Parameters:
  • scenario – The parsed scenario to summarize.

  • color – When True, ANSI-color each segment’s keyword by category (modality, service, judge LLM) so they’re easy to tell apart.

Returns:

A user line and a judge line, each a set of key: value segments separated by |, e.g.:

user  -> modality: audio | speech: kokoro/af_heart
judge -> modality: audio | transcription: moonshine/small-streaming | eval: ollama/gemma4:12b