Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

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))

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

livekit_agents-1.6.11rc1.tar.gz (2.7 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

livekit_agents-1.6.11rc1-py3-none-any.whl (2.8 MB view details)

Uploaded Python 3

File details

Details for the file livekit_agents-1.6.11rc1.tar.gz.

File metadata

  • Download URL: livekit_agents-1.6.11rc1.tar.gz
  • Upload date:
  • Size: 2.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for livekit_agents-1.6.11rc1.tar.gz
Algorithm Hash digest
SHA256 46048cacd9ff5562bf8c2669ca4d3446c678d52bcdc2742cf9f642430d558ff2
MD5 ec507261d9dc975455eb20b7cff96529
BLAKE2b-256 c6e01639cca83ac7427ef9ac9bbd534c6eb09f0b9153d8b1f01a383fa6425a2b

See more details on using hashes here.

Provenance

The following attestation bundles were made for livekit_agents-1.6.11rc1.tar.gz:

Publisher: publish.yml on livekit/agents

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file livekit_agents-1.6.11rc1-py3-none-any.whl.

File metadata

File hashes

Hashes for livekit_agents-1.6.11rc1-py3-none-any.whl
Algorithm Hash digest
SHA256 8c4c9a4b093a1c25707b5e195fce67e3089cdebcb106a343de9f21d6621132bc
MD5 5e91acdcefc81dff50679301116f5aeb
BLAKE2b-256 447a4bafea948e9d8e8214e43ad7c3ec6b6205e9af27ba099d8230e0855fc54f

See more details on using hashes here.

Provenance

The following attestation bundles were made for livekit_agents-1.6.11rc1-py3-none-any.whl:

Publisher: publish.yml on livekit/agents

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page