Skip to content

DeepgramAgentEvent

Discriminated union of events emitted by the Deepgram Agent provider.

type DeepgramAgentEvent = 
  | {
  type: "user_started_speaking";
}
  | {
  content: string;
  type: "agent_thinking";
}
  | {
  totalLatency: number;
  ttsLatency: number;
  tttLatency: number;
  type: "agent_started_speaking";
}
  | {
  type: "agent_audio_done";
}
  | {
  content: string;
  role: "user" | "assistant";
  type: "conversation_text";
}
  | {
  functions: {
     arguments: string;
     clientSide: boolean;
     id: string;
     name: string;
  }[];
  type: "function_call";
}
  | {
  message: string;
  type: "injection_refused";
}
  | {
  type: "prompt_updated";
}
  | {
  type: "speak_updated";
}
  | {
  type: "think_updated";
}
  | {
  code: string;
  description: string;
  type: "error";
}
  | {
  code: string;
  description: string;
  type: "warning";
};

Defined in: src/providers/agent/deepgram/types.ts:744

Discriminated union of events emitted by the Deepgram Agent provider.

Remarks

Discriminated on the type field. These are the camelCase, client-friendly counterparts to the raw AgentServerMessage types. Subscribe to these via the provider’s event emitter.

Latency values on agent_started_speaking are in seconds.

© 2026 CompositeVoice. All rights reserved.

Font size
Contrast
Motion
Transparency