@langwatch/scenario
    Preparing search index...

    Interface ElevenLabsAgentAdapterOptions

    interface ElevenLabsAgentAdapterOptions {
        agentId: string;
        apiKey: string;
        firstMessageOverride?: string;
        systemPromptOverride?: string;
        webSocketFactory?: (
            url: string,
            headers: Record<string, string>,
        ) => WebSocketLike;
    }
    Index

    Properties

    agentId: string

    ID of the ElevenLabs Conversational AI agent (provisioned in the EL dashboard).

    apiKey: string

    ElevenLabs API key (xi-api-key).

    firstMessageOverride?: string

    Per-session first message override.

    systemPromptOverride?: string

    Per-session system prompt override applied via conversation_initiation_client_data. Lets demos use a different prompt shape without mutating the shared test agent.

    webSocketFactory?: (
        url: string,
        headers: Record<string, string>,
    ) => WebSocketLike

    WebSocket factory — injected for tests. Defaults to the ws package's WebSocket constructor. Production callers should leave this unset.