Creates a new AvatarSession.
Configuration options for the avatar session
LemonSliceException if invalid agentId or agentImageUrl is provided, or if LemonSlice API key is not set
Starts the avatar session and connects it to the agent.
This method:
The agent session to connect to the avatar
The LiveKit room where the avatar will join
Optional LiveKit credentials (falls back to environment variables)
LemonSliceException if LiveKit credentials are not available or if the avatar session fails to start
A LemonSlice avatar session.
This class manages the connection between a LiveKit agent and a LemonSlice avatar, routing agent audio output to the avatar for visual representation.
Example