Trugen avatar session

This class manages the connection between Livekit agent and Trugen avatar, Routing agent audio output to the avatar for visual representation.

Hierarchy (view full)

Constructors

Methods

Constructors

Methods

  • Release any resources owned by this avatar session. Default implementation is a no-op; subclasses can override to perform cleanup.

    Returns Promise<void>

  • Starts the avatar session and connects it to the agent.

    This method:

    1. Creates a Livekit token for the avatar participant
    2. Calls the Trugen API to start the avatar session
    3. Configures the agent's audio output to stream to the avatar

    Parameters

    Returns Promise<void>