mirror of
https://github.com/livekit/agents.git
synced 2026-12-06 03:38:32 +00:00
Migrate provider WebSocket handling to shared typed protocols, pooling, pacing, and idle timers. Preserve SmallestAI continuations with response-based silence completion and isolated segments. Keep connection acquisition, reconnect controls, stream cleanup, and host wrapper ownership safe across cancellation. Consolidate provider interfaces and typed MCP contracts. Normalize pending speech boundaries and preserve conversation identity, ordering, late results, and acknowledged checkpoints across overlapping voice runs. Extend deterministic regressions, storage observations, and lifecycle documentation. Validation: rebuilt extension; 2900 Python tests passed; formatting, lint, and type checks passed. Rust, binding, codegen, and deterministic simulation checks are recorded in the audit and lifecycle verification records.
livekit-plugins-keyframe
Agent Framework plugin for Keyframe Labs avatars.
Installation
pip install livekit-plugins-keyframe
Usage
from livekit.agents import VoiceSession
from livekit.plugins import keyframe
session = VoiceSession(stt=..., llm=..., tts=...)
avatar = keyframe.AvatarSession(
persona_id="ab85a2a0-0555-428d-87b2-ff3019a58b93", # or persona_slug="public:cosmo_persona-1.5-live"
api_key="keyframe_sk_live_...", # or set KEYFRAME_API_KEY env var
)
await avatar.start(session, room=ctx.room)
await session.start(room=ctx.room, agent=my_agent)
Authentication
Set the following environment variables:
KEYFRAME_API_KEY- Your Keyframe API keyLIVEKIT_URL- LiveKit server URLLIVEKIT_API_KEY- LiveKit API keyLIVEKIT_API_SECRET- LiveKit API secret