Options for configuring an AvatarSession.

interface AvatarSessionOptions {
    agentId?: null | string;
    agentImageUrl?: null | string;
    agentPrompt?: null | string;
    apiKey?: string;
    apiUrl?: string;
    avatarParticipantIdentity?: string;
    avatarParticipantName?: string;
    connOptions?: APIConnectOptions;
    idleTimeout?: null | number;
}

Properties

agentId?: null | string

The ID of the LemonSlice agent to add to the session. Either agentId or agentImageUrl must be provided.

agentImageUrl?: null | string

The URL of the image to use as the agent's avatar. Either agentId or agentImageUrl must be provided.

agentPrompt?: null | string

A prompt that subtly influences the avatar's movements and expressions.

apiKey?: string

The LemonSlice API key. Can also be set via LEMONSLICE_API_KEY environment variable.

apiUrl?: string

The LemonSlice API URL. Defaults to https://lemonslice.com/api/liveai/sessions or LEMONSLICE_API_URL environment variable.

avatarParticipantIdentity?: string

The identity of the avatar participant in the room. Defaults to 'lemonslice-avatar-agent'.

avatarParticipantName?: string

The name of the avatar participant in the room. Defaults to 'lemonslice-avatar-agent'.

connOptions?: APIConnectOptions

Connection options for API requests.

idleTimeout?: null | number

The idle timeout, in seconds. Defaults to 60 seconds.