An avatar session provisioned through LiveKit Inference.

Unlike BYOK avatar plugins, this calls the LiveKit Inference gateway with gateway credentials and lets the gateway mint the avatar worker's room token. Media and RPC still flow in-room over DataStream, exactly as the BYOK plugins do.

Hierarchy (view full)

Constructors

Accessors

Methods

  • Start the avatar session.

    Subclasses should override this method and call super.start(agentSession, room) at the top of their implementation. Subclasses may widen the return type (e.g. returning a session id), matching the # type: ignore[override] escape hatch used in Python.

    Parameters

    Returns Promise<void>

  • Wait until the avatar participant has joined the room and published its video track.

    Parameters

    • timeout: {
          timeout?: null | number;
      } = {}

      Timeout in milliseconds. Pass null to wait indefinitely.

      • Optional timeout?: null | number

    Returns Promise<void>