livekit-agents

A powerful framework for building realtime voice AI agents

207 个版本 Python <3.15,>=3.10
安装
pip install livekit-agents
poetry add livekit-agents
pipenv install livekit-agents
conda install livekit-agents
描述

LiveKit Agents for Python

Realtime framework for production-grade multimodal and voice AI agents.

See https://docs.livekit.io/agents/ for quickstarts, documentation, and examples.

from dotenv import load_dotenv

from livekit import agents
from livekit.agents import AgentSession, Agent, RoomInputOptions
from livekit.plugins import openai

load_dotenv()

async def entrypoint(ctx: agents.JobContext):
    await ctx.connect()

    session = AgentSession(
        llm=openai.realtime.RealtimeModel(
            voice="coral"
        )
    )

    await session.start(
        room=ctx.room,
        agent=Agent(instructions="You are a helpful voice AI assistant.")
    )

    await session.generate_reply(
        instructions="Greet the user and offer your assistance."
    )


if __name__ == "__main__":
    agents.cli.run_app(agents.WorkerOptions(entrypoint_fnc=entrypoint))
版本列表
1.6.3 2026-06-22
1.6.2 2026-06-19
1.6.1 2026-06-17
1.6.0 2026-06-11
1.6.0rc2 2026-05-29
1.6.0rc1 2026-05-27
1.5.18 2026-06-05
1.5.17 2026-06-03
1.5.16 2026-06-01
1.5.15 2026-05-29
1.5.14 2026-05-27
1.5.13 2026-05-25
1.5.12 2026-05-21
1.5.11 2026-05-19
1.5.10 2026-05-18
1.5.9 2026-05-13
1.5.8 2026-05-05
1.5.7 2026-04-30
1.5.6 2026-04-22
1.5.5 2026-04-20
1.5.4 2026-04-16
1.5.3 2026-04-15
1.5.2 2026-04-08
1.5.1 2026-03-23
1.5.0 2026-03-19
1.5.19rc1 2026-06-08
1.5.0rc2 2026-03-06
1.5.0rc1 2026-02-13
1.4.6 2026-03-16
1.4.5 2026-03-11
1.4.4 2026-03-03
1.4.3 2026-02-23
1.4.2 2026-02-17
1.4.1 2026-02-06
1.4.0 2026-02-06
1.4.0rc2 2026-01-23
1.4.0rc1 2025-12-23
1.3.12 2026-01-21
1.3.11 2026-01-14
1.3.10 2025-12-23
1.3.9 2025-12-19
1.3.8 2025-12-17
1.3.7 2025-12-16
1.3.6 2025-12-03
1.3.5 2025-11-25
1.3.4 2025-11-24
1.3.3 2025-11-19
1.3.2 2025-11-17
1.3.1 2025-11-17
1.3.0rc2 2025-11-15
1.3.0rc1 2025-11-06
1.2.18 2025-11-05
1.2.17 2025-10-29
1.2.16 2025-10-27
1.2.15 2025-10-15
1.2.14 2025-10-01
1.2.13 2025-10-01
1.2.12 2025-09-29
1.2.11 2025-09-18
1.2.10 2025-09-18
1.2.9 2025-09-15
1.2.8 2025-09-02
1.2.7 2025-08-28
1.2.6 2025-08-18
1.2.5 2025-08-10
1.2.4 2025-08-07
1.2.3 2025-08-04
1.2.2 2025-07-24
1.2.1 2025-07-17
1.2.0 2025-07-17
1.1.7 2025-07-15
1.1.6 2025-07-10
1.1.5 2025-06-30
1.1.4 2025-06-25
1.1.3 2025-06-21
1.1.2 2025-06-20
1.1.1 2025-06-10
1.1.0 2025-06-10
1.0.23 2025-05-29
1.0.22 2025-05-17
1.0.21 2025-05-15
1.0.20 2025-05-08
1.0.19 2025-05-03
1.0.18 2025-05-01
1.0.17 2025-04-24
1.0.16 2025-04-22
1.0.15 2025-04-22
1.0.14 2025-04-22
1.0.13 2025-04-15
1.0.12 2025-04-15
1.0.11 2025-04-10
1.0.2 2025-04-10
1.0.1 2025-04-10
1.0.0 2025-04-10
1.0.0.dev5 2025-03-19
1.0.0.dev4 2025-03-19
1.0.0.dev3 2025-03-04
1.0.0.dev2 2025-03-04
1.0.0.dev1 2025-03-04
1.0.0.dev0 2025-02-14
1.0.0rc9 2025-04-07
1.0.0rc8 2025-04-07
1.0.0rc7 2025-04-07
1.0.0rc6 2025-04-03
1.0.0rc5 2025-04-03
1.0.0rc4 2025-03-29
1.0.0rc3 2025-03-27
1.0.0rc2 2025-03-27
1.0.0rc1 2025-03-26
0.12.21 2025-05-19
0.12.20 2025-04-07
0.12.19 2025-04-01
0.12.18 2025-03-21
0.12.17 2025-03-06
0.12.16 2025-02-28
0.12.15 2025-02-20
0.12.14 2025-02-20
0.12.13 2025-02-14
0.12.12 2025-02-11
0.12.11 2025-01-31
0.12.10 2025-01-26
0.12.9 2025-01-22
0.12.8 2025-01-12
0.12.7 2025-01-02
0.12.6 2024-12-31
0.12.5 2024-12-23
0.12.4 2024-12-23
0.12.3 2024-12-21
0.12.2 2024-12-12
0.12.1 2024-12-04
0.12.0 2024-12-04
0.11.3 2024-11-16
0.11.2 2024-11-14
0.11.1 2024-11-02
0.11.0 2024-10-30
0.10.2 2024-10-15
0.10.1 2024-10-10
0.10.0 2024-10-01
0.9.1 2024-09-26
0.9.0 2024-09-22
0.8.12 2024-09-11
0.8.11 2024-09-09
0.8.10 2024-09-02
0.8.9 2024-09-02
0.8.8 2024-08-27
0.8.7 2024-08-22
0.8.6 2024-08-17
0.8.5 2024-08-07
0.8.4 2024-08-06
0.8.3 2024-08-01
0.8.2 2024-07-28
0.8.1 2024-07-26
0.8.0 2024-07-24
0.8.0.dev8 2024-07-24
0.8.0.dev3 2024-07-24
0.8.0.dev2 2024-07-23
0.8.dev0 2024-06-04
0.7.3.dev1 2024-07-23
0.7.3.dev0 2024-07-23
0.7.2 2024-06-12
0.7.1 2024-06-05
0.7.0 2024-05-29
0.7.dev0 2024-05-23
0.6.0 2024-05-14
0.6.dev1 2024-05-01
0.6.dev0 2024-05-01
0.5.1 2024-04-16
0.5.0 2024-04-15
0.5.dev3 2024-04-11
0.5.dev2 2024-04-11
0.5.dev1 2024-04-11
0.5.dev0 2024-04-11
0.4.1 2024-04-06
0.4.0 2024-02-20
0.3.1 2024-02-07
0.3.0 2024-01-17
0.2.0 2024-01-15
0.1.1 2024-01-13
0.1.0 2024-01-12
0.0.28 2024-01-12
0.0.27 2024-01-03
0.0.26 2023-12-22
0.0.25 2023-12-21
0.0.24 2023-12-06
0.0.23 2023-12-04
0.0.22 2023-12-04
0.0.21 2023-12-04
0.0.20 2023-12-04
0.0.19 2023-12-04
0.0.18 2023-12-04
0.0.17 2023-12-04
0.0.16 2023-12-04
0.0.15 2023-12-04
0.0.14 2023-12-04
0.0.13 2023-12-04
0.0.12 2023-12-04
0.0.11 2023-12-04
0.0.10 2023-12-04
0.0.9 2023-12-04
0.0.8 2023-12-04
0.0.7 2023-11-24
0.0.6 2023-11-23
0.0.5 2023-11-23
0.0.4 2023-11-20
0.0.3 2023-11-15
0.0.2 2023-11-15
0.0.1 2023-11-14