Skip to main content

AvatarSession

Constructor Parameters

start() Method

start() generates a LiveKit token for the avatar, creates the Agent Human session, and attaches the avatar’s audio output to the room. It must be called before session.start().

session.state Events

The Agent Human server sends status updates to the room as LiveKit data packets on the session.state topic. You can listen for them on ctx.room:

Payload Fields