This document introduces the LiveKit Agents framework, a Python library for building realtime, programmable voice AI agents that run on servers README.md23-31 It explains the framework's purpose, high-level architecture, and core components.
For information on installing and running your first agent, see Quick Start. For details on the monorepo structure, plugin architecture, dependency management, and versioning across packages, see Project Structure and Versioning. For in-depth coverage of the runtime architecture, see Core Architecture.
LiveKit Agents is designed for building conversational, multi-modal voice agents that can see, hear, and understand README.md27-29 The framework provides:
AgentServer and job management APIs README.md36The framework handles low-level streaming logic and tool orchestration so developers can focus on defining agent instructions and implementing custom function tools README.md71-77
Sources: README.md23-44 livekit-agents/livekit/agents/__init__.py148-153
LiveKit Agents uses a layered architecture organized by functional concerns: deployment infrastructure, agent orchestration, voice interaction processing, I/O management, and provider abstractions.
Sources: README.md71-77 livekit-agents/livekit/agents/__init__.py33-40 livekit-agents/livekit/agents/voice/agent_session.py48-51
Sources: README.md107-137 livekit-agents/livekit/agents/worker.py149-152
| Layer | Key Components | Responsibilities |
|---|---|---|
| Deployment | AgentServer, WorkerOptions | Process management, job distribution, worker registration livekit-agents/livekit/agents/worker.py148-152 |
| Orchestration | AgentSession, Agent | Conversation lifecycle, state transitions, prompt and tool management livekit-agents/livekit/agents/voice/agent.py38-61 livekit-agents/livekit/agents/voice/agent_session.py48-51 |
| Pipeline | AudioRecognition, TurnHandlingOptions | VAD, STT, semantic endpointing, interruption handling livekit-agents/livekit/agents/voice/audio_recognition.py158-186 livekit-agents/livekit/agents/voice/turn.py141-147 |
| I/O | RoomIO | LiveKit room connections, participant stream management livekit-agents/livekit/agents/voice/room_io.py1-46 |
| Abstraction | LLM, STT, TTS | Standardized interfaces for multi-provider model integration livekit-agents/livekit/agents/__init__.py23 |
Sources: README.md23-44 livekit-agents/livekit/agents/__init__.py23-274
For more details on specific topics covered in this section of the framework, refer to the following child pages:
AgentServer, AgentSession, and Agent to deploy a basic voice agent README.md85-137uv, and synchronized versioning.Sources: README.md85-137
Refresh this wiki
This wiki was recently refreshed. Please wait 1 day to refresh again.