Options for configuring an AvatarSession.

interface AvatarSessionOptions {
    apiKey?: string;
    apiUrl?: string;
    avatarParticipantIdentity?: string;
    avatarParticipantName?: string;
    connOptions?: APIConnectOptions;
    faceId?: string;
    palId?: string;
    personaId?: string;
    replicaId?: string;
}

Properties

apiKey?: string

Tavus API key. Falls back to TAVUS_API_KEY.

apiUrl?: string

Override the Tavus API base URL.

avatarParticipantIdentity?: string

Identity for the avatar participant. Defaults to tavus-avatar-agent.

avatarParticipantName?: string

Display name for the avatar participant. Defaults to tavus-avatar-agent.

connOptions?: APIConnectOptions

API retry/timeout options.

faceId?: string

Tavus face id. Falls back to TAVUS_FACE_ID.

palId?: string

Tavus pal id. Falls back to TAVUS_PAL_ID; defaults to a stock pal when omitted.

personaId?: string

Deprecated

Use palId instead.

replicaId?: string

Deprecated

Use faceId instead.