mirror of
https://github.com/livekit/agents.git
synced 2026-12-05 19:08:30 +00:00
A framework for agents that hold a conversation with a person by voice and by text, across days, and get real work done behind it. An agent is a fast brain facing the person and a slow brain doing the work, talking over A2A; the conversation lives in a durable thread on agent-db, a lane per agent, continued by any worker. Text mode (agent.run, the a2a_session door), HTTP routing on the node, delegation with progress and verbatim answers, tasks awaited in text, graphs, human in the loop, the start of the Rust core, three fast brain and slow brain examples with simulation scenarios, the console, docs per feature, and a migration skill. Co-authored-by: Long Chen <longch1024@gmail.com>
livekit-plugins-keyframe
Agent Framework plugin for Keyframe Labs avatars.
Installation
pip install livekit-plugins-keyframe
Usage
from livekit.agents import AgentSession
from livekit.plugins import keyframe
session = AgentSession(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