Home / Companies / LiveKit / Blog / July 2026

July 2026 Summaries

7 posts from LiveKit

Filter
Month: Year:
Post Summaries Back to Blog
LiveKit agents can face significant instability issues related to event loop blocking, which commonly occurs in Python and Node.js environments. This comprehensive guide provides insights into recognizing symptoms, confirming causes, and resolving the blocking code to enhance agent performance. A blocked event loop can delay health-check responses, leading to an "unresponsive" warning, and if prolonged, the supervisor process may terminate the agent. Symptoms include audio disruptions, laggy turn detection, and delayed session activities, often exacerbated under heavy loads. Developers are advised to avoid synchronous operations such as blocking sleep calls, synchronous HTTP requests, and CPU-bound work on the event loop, suggesting async alternatives instead. Additional best practices include optimizing startup processes and carefully managing shutdown callbacks to prevent incomplete operations. Debugging techniques like using py-spy, enabling asyncio debug mode, and measuring event-loop lag in Node.js can help in identifying and rectifying the root causes of event loop blocking, ensuring smoother operation of LiveKit agents.
Jul 21, 2026 1,858 words in the original blog post.
The LiveKit Unity SDK v2.0.0 enables developers to integrate real-time voice, video, and AI into Unity games, achieving feature parity with existing LiveKit SDKs. This SDK allows for the creation of interactive experiences using LiveKit's WebRTC stack, facilitating voice chat, live audio/video streaming, robot teleoperation with VR, and AI-powered NPCs. The introduction of voice AI agents enhances storytelling and gameplay, as seen in AstroBeam's "Stellar Cafe," which utilizes real-time voice interactions with LLM-powered robots. Significant improvements in version 2.0.0 include native platform audio support, reliable data messaging, simplified authentication, and enhanced stability across platforms. The SDK supports Unity versions from 2022.3 onwards and is available for macOS, Windows, Linux, iOS, and Android. Developers can add the SDK to their projects via UPM or OpenUPM and are encouraged to share feedback and creations with the LiveKit community.
Jul 20, 2026 611 words in the original blog post.
An effective AI agent, such as a hotel receptionist, requires multiple layers of defense to remain on track and handle various conversational scenarios, including adversarial inputs and off-topic requests. Starting with a structured prompt that clearly defines the agent's identity and boundaries, the system can guide interactions by detailing what the agent can and cannot do, thereby setting up "topical rails." Explicit instructions help protect against prompt injection attacks by instructing the agent not to deviate from its role, while specific code-level rules enforce constraints and validate inputs to prevent errors. The system is further strengthened by decomposing tasks into focused units with limited tools, ensuring the agent does not drift off-task, and by using a shared Userdata object to track the user's state and prevent redundant actions. Sensitive actions are gated behind verification tasks, and an independent moderation layer functions as an external check, ensuring that any prompt injection or error is corrected without interrupting the conversation. Continuous validation and testing, both offline and online, help catch any issues that slip through, with LLM judges and scenario-based tests providing additional safeguards. These layered defenses work together to maintain the agent's focus and reliability, even in challenging interactions.
Jul 16, 2026 2,888 words in the original blog post.
LiveKit has introduced support for Frame Metadata, enhancing the synchronization of captured video or binary data frames by attaching detailed metadata such as user timestamps, frame IDs, and user data. This innovation addresses the inadequacy of standard WebRTC RTP timestamps for precise timing in applications like robotics, where synchronization with a ground-truth clock is crucial. By appending this metadata as a binary trailer before RTP packetization, Frame Metadata ensures compatibility with all video codecs supported by LiveKit and retains durability across the transport boundary. The feature allows for precise synchronization of multiple tracks to a single reference clock, enabling improved sensor alignment, accurate latency measurement, and frame-accurate data correlation without the need for separate channels. The metadata is automatically available to subscribers, and the system maintains backward compatibility by stripping trailers for clients unable to parse them. The LiveKit SDKs in Rust, Python, C++, and JavaScript now support this feature, offering a practical demonstration through the local_video example to showcase how metadata can be effectively attached and displayed in real-time video streaming scenarios.
Jul 13, 2026 1,136 words in the original blog post.
In the context of customer service via voice agents, the text highlights the issue of "dead air" during backend processing times and presents a solution using LiveKit's async tools. Traditional synchronous tools result in silence while waiting for backend responses, causing customers to hang up prematurely. LiveKit's async tools, introduced in livekit-agents 1.6.0, address this by allowing the agent to immediately acknowledge requests, narrate ongoing progress, and enable task cancellation. The solution involves using the ctx.update() method to provide real-time updates and ctx.with_filler() to fill gaps with audio, ensuring continuous customer engagement. The tools also support handling duplicate calls to prevent double actions, such as issuing multiple refunds. This approach turns potential liabilities in voice interactions into opportunities for enhanced communication and customer satisfaction, offering a significant improvement over traditional methods by maintaining a conversational flow even during backend delays.
Jul 07, 2026 2,357 words in the original blog post.
In the context of tool-calling in AI models, the text outlines a common issue where open models, despite having excellent benchmarks, fail to call tools correctly when integrated with voice agents. This failure is not due to the model itself but rather to the assumption that tool-calling capability resides solely within the model; it actually depends on the interaction between the model and the serving stack. The text explains that the model's native syntax must be correctly parsed by the serving stack, which varies between providers, resulting in discrepancies in tool-calling ability. OpenAI models succeed universally because their native syntax does not require translation on OpenAI-compatible endpoints, whereas the tool-calling success of open models depends on whether the provider has configured a parser for the model's syntax. Additionally, hybrid reasoning models like Nemotron 3 introduce complexity by requiring multiple parsers, which can lead to silent failures in tool calling. The key takeaway is that model capability and endpoint parsing are distinct elements, and teams should conduct a simple diagnostic test to determine whether the issue lies with the endpoint's parsing capabilities rather than the agent or model itself.
Jul 06, 2026 1,288 words in the original blog post.
In the realm of AI-driven business applications, Gemma 4 31B on LiveKit Inference emerges as a breakthrough model optimized for real-time voice agents, offering a significant advantage in latency and processing speed over existing models like GPT-5.5 and Gemini 2.5 Flash. This model excels in maintaining low latency by efficiently handling long prompts and using speculative decoding to enhance token throughput, crucial for natural conversational flow. Despite its higher operational cost, the model's capability to process complex instructions and use tools accurately makes it a preferred choice for tasks demanding quick and precise interactions. Its performance is highlighted in real-world applications, such as the Stellar Cafe game, where it improved response times and consistency compared to previous models. The deployment of Gemma 4 31B, with its balance of speed, accuracy, and affordability, positions it as an optimal solution for businesses seeking to enhance voice AI capabilities.
Jul 02, 2026 1,466 words in the original blog post.