square-activity-46232
08/26/2025, 6:08 PMtall-airline-16756
08/26/2025, 6:08 PMtall-airline-16756
08/26/2025, 6:09 PMpython agent_to_test.py start
python agent_evals.py start
2. Dispatch Both Agents to the Same Room:
Next, use the LiveKit CLI to send both agents into the same room:
lk dispatch create \
--agent-name agent_to_test \
--room my-room \
--metadata 'my_job_metadata'
lk dispatch create \
--agent-name agent_evaluator \
--room my-room \
--metadata 'my_job_metadata'
3. Configure the Evaluation Agent:
Then, tweak the RoomInputOptions so the agents can interact with each other:
await session.start(
agent=EvaluationAgent(),
room=ctx.room,
room_input_options=RoomInputOptions(
participant_kinds=[
rtc.ParticipantKind.PARTICIPANT_KIND_AGENT,
]
),
)
If you prefer, you can also use a participant filter that accepts everyone:
room_io = RoomIO(
session,
room=room,
input_options=RoomInputOptions(
participant_filter=lambda p: True # Accept all participants including agents
)
)
Optional: For an even easier setup, try the agent-load-test tool to spin up an echo participant that copies user responses:
lk perf agent-load-test \
--rooms 5 \
--agent-name test-agent \
--echo-speech-delay 10s \
--duration 5m
This method helps you automate and scale your testing smoothly. If you hit any bumps or want to chat more about it, just let me know—I’m here to help!
Sources: README.md | Agent Testing & Evaluation | livekit/livekit_composite | DeepWiki | evaluating-agents/README.md | How to test your agent using another agent | Speech & Audio Processing | livekit/livekit_composite | DeepWikisquare-activity-46232
08/26/2025, 6:13 PMtall-airline-16756
08/26/2025, 6:14 PM