pickProgressPhrase (calls/progress-phrases.ts)

vellum-assistant · assistant/src/calls/progress-phrases.ts · typescript · MIT
voice, Voice / Speech

Selects neutral progress or approval phrases based on language and counter.

// Source: https://github.com/vellum-ai/vellum-assistant | License: MIT | Copyright 2025 Vellum AI
// Provided via justclaw.it.com; keep this notice with the code.
import { localizedOrDefault } from "../util/language-subtag.js";

// Static fallbacks for an idle-triggered progress narration whose LLM
// phrasing failed — the one case where prolonged silence is actively harmful.
// The idle trigger can fire on a slow turn with zero tool activity, so every
// phrase stays strictly neutral: no claims about running tools or tasks.
// Persona-neutral, no domain content, ≤ 8 words.
// Exported so tests can assert the neutrality invariant against the list.
export const PROGRESS_FALLBACK_PHRASES: readonly string[] = [
  "Still on it — one moment.",
  "Still thinking this through.",
  "Almost there 

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key