ElevenLabsAgentEvent
Discriminated union of events emitted by ElevenLabsAgent via onAgentEvent.
type ElevenLabsAgentEvent =
| {
conversationId: string;
type: "conversation_started";
}
| {
content: string;
role: "user" | "assistant";
type: "conversation_text";
}
| {
content: string;
type: "tentative_agent_response";
}
| {
corrected: string;
original: string;
type: "agent_response_correction";
}
| {
reason?: string;
type: "interrupted";
}
| {
score: number;
type: "vad_score";
}
| {
call: ElevenLabsClientToolCall;
type: "client_tool_call";
}
| {
type: "agent_audio_done";
}
| {
message: string;
type: "error";
};
Defined in: src/providers/agent/elevenlabs/types.ts:181
Discriminated union of events emitted by ElevenLabsAgent via onAgentEvent.
Remarks
Camelcase, client-friendly views of the raw Conversational AI server messages the provider considers interesting. Subscribe for UI state (VAD score meters, tentative responses, interruptions) beyond what the SDK-level events provide.