Is there a way to run 2 agent sessions in parallel...
# ask-ai
w
Is there a way to run 2 agent sessions in parallel as in one speech is going via normal stt -> llm -> tts flow and another speech going via realtime model?
t
Thanks for reaching out, Ankit. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Absolutely! LiveKit is designed to support running two agent sessions side by side—one following the traditional STT → LLM → TTS flow, and the other using a real-time model. Each
AgentSession
can be set up independently with whichever approach works best for you. For instance, you might have one session using the classic STT, LLM, and TTS components, while another session runs a
RealtimeModel
that seamlessly combines speech recognition, language understanding, and speech synthesis in real-time. This setup gives you the wonderful flexibility to operate both types of sessions at the same time within your application. If you’d like, I’m here to help you with the setup or provide some examples to get you started—just let me know! Sources: Real-time AI Models & Streaming | livekit/livekit_composite | DeepWiki | Realtime model plugins | LiveKit Docs | examples/voice_agents/README.md | examples/src/drive-thru/drivethru_agent.ts | agent/main.py