Skip to main content

Agent Session Provider

A context provider for the LiveKit agent session.

Usage

The AgentSessionProvider doesn't render UI.
It is a context provider for the LiveKit session.

Features

  • Provides the agent session to the descendant components
  • Ensures remote participants’ audio tracks (microphones and screen share) are audible

Installation

pnpm dlx shadcn@latest add @agents-ui/agent-session-provider

Props

Prop nameTypeDefault
session
UseSessionReturn
children
ReactNode
room?
Room
volume?
number
muted?
boolean