Defines TypeScript interfaces and types for realtime AI conversation states, metrics, and feedback messages.
// Source: https://github.com/dograh-hq/dograh | License: BSD-2-Clause | Copyright 2025, Zansat Technologies Private Limited
// Provided via justclaw.it.com; keep this notice with the code.
export type ConversationStatus = "ready" | "live" | "ended";
export type ToolCallStatus = "running" | "completed" | "timeout" | "failed" | "cancelled";
export type RealtimeFeedbackMessageType =
| "user-transcription"
| "bot-text"
| "function-call"
| "node-transition"
| "ttfb-metric"
| "pipeline-error"
| "interrupt-warning";
export interface RealtimeFeedbackMessage {
id: string;
type: RealtimeFeedbackMessageType;
text: string;
final?: boolean;
timestamp: string;
functionName?: string;
toolCallId?: string;
arguments?: unknown;
result?: unkn
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key