@squidcloud/client
    Preparing search index...

    Interface AiVoiceSessionEvent

    Payload of an AI_VOICE_SESSION_EVENT_TYPE event.

    interface AiVoiceSessionEvent {
        agentId: string;
        endReason?: string;
        externalCallId?: string;
        kind: AiVoiceSessionEventKind;
        metadata?: Record<string, unknown>;
        provider: "openai" | "twilio";
        sessionId: string;
        turn?: AiVoiceSessionTurn;
    }
    Index
    agentId: string

    The agent answering the call.

    endReason?: string

    Why the session ended; set only for ended events.

    externalCallId?: string

    The provider's id of the call, when known.

    Which milestone this event reports.

    metadata?: Record<string, unknown>

    The metadata given when the session was created.

    provider: "openai" | "twilio"

    The provider of the call.

    sessionId: string

    The session the event belongs to.

    The completed turn; set only for turn events.