LiveKit has released "agents," an open-source Python framework designed for developing programmable, multi-modal voice agents capable of real-time interaction. The framework enables developers to build conversational participants that can see, hear, and understand by integrating various STT, LLM, and TTS providers, such as OpenAI, Deepgram, and Cartesia. Key technical features include integrated job scheduling via dispatch APIs, support for Model Context Protocol (MCP) for seamless tool integration, and semantic turn detection using transformer models to minimize interruptions. The architecture utilizes AgentServer for job coordination and AgentSession to manage user interactions. Developers can implement complex workflows using function tools and RPCs for client-side data exchange. To ensure reliability in non-deterministic LLM environments, the framework includes a built-in testing suite with support for automated judges. Deployment is flexible, allowing for self-hosting on LiveKit's WebRTC media server or utilizing LiveKit Cloud. The library supports multiple execution modes, including a local terminal mode for rapid validation and a hot-reloading development mode. Installation is streamlined via pip (e.g., pip install "livekit-agents[openai,deepgram,cartesia]" ) or uv for development environments.

Read original