prehistoric-alligator-43413
10/28/2025, 6:04 PMtall-airline-16756
10/28/2025, 6:04 PMtall-airline-16756
10/28/2025, 6:05 PMVoicePipelineAgent class, but starting from version 1.0, it’s all unified under the AgentSession class, which supports both pipeline-based and real-time agents.
So, in a nutshell, livekit.agents.pipeline is a functional model inside the broader livekit.agents framework, focusing on the STT-LLM-TTS flow specifically for voice agents. I hope this helps clear things up! If you have any more questions, feel free to ask.
Sources: docs/index.yaml | agents/CHANGELOG.md | Voice AI quickstart | LiveKit Docs | Pipeline nodes and hooks | LiveKit Docs | Agents v0.x migration guide - Python | LiveKit Docsprehistoric-alligator-43413
10/28/2025, 6:06 PMtall-airline-16756
10/28/2025, 6:07 PMstt_node, llm_node, and tts_node, giving you lots of flexibility.
• Real-Time Agents: These bring STT, LLM, TTS, and turn detection together into one model, allowing everything to happen in parallel. This means ultra-low latency (about 200–400ms), making interactions feel super smooth. They use real-time models such as OpenAI's gpt-4o-realtime-preview or Google's gemini-2.0-flash-live-001.
Here’s how you can set them up:
Pipeline-Based Agent:
session = AgentSession(
vad=silero.VAD.load(),
stt=deepgram.STT(model="nova-3"),
llm=openai.LLM(model="gpt-4o-mini"),
tts=elevenlabs.TTS(),
)
Real-Time Agent:
session = AgentSession(
llm=openai.realtime.RealtimeModel(
voice="coral"
)
)
To sum it up, pipeline-based agents shine when you want that extra customization and control, while real-time agents are fantastic if you’re aiming for quick, low-latency interactions. If you have any questions or want to dive deeper into either option, I’m here to help!
Sources: livekit-agents/README.md | .cursor/rules/agent-core.mdc | Real-time AI Models & Streaming | livekit/livekit_composite | DeepWiki | Pipeline nodes and hooks | LiveKit Docs