There's a bunch of instructions here, but it's all fairly straightforward. The agents are slightly modified from the fast agent example to explicitly have separate names and run on different ports. This will be more automated in a future release, but for now the tweaks are to get things to work.
These commands will install LiveKit server on your machine and run it in dev mode. Dev mode uses a specific API key and secret pair.
brew install livekit
livekit-server -dev
Usually you'd run the agent(s) first and then start a session and the agent(s) would automatically join. Turns out that isn't how it works for multi-agent at the moment. So what we're going to do is have the human join the meeting first, and then explicitly have the agents join the room.
cd meet
pnpm i
cp .env.example .env.local
pnpm dev
- open
localhost:3000
in a browser and click 'Start Meeting' - note the room name in your browser address bar:
http://localhost:3000/rooms/<room-name>
cd agent-1
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
cp .env.example .env
- add values for keys in
.env
python main.py connect --room <room-name>
cd agent-2
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
cp ../agent-1/.env .
python main.py connect --room <room-name>