Skip to main content

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.5.tar.gz (2.6 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.5-py3-none-any.whl (2.7 MB view details)

Uploaded Python 3

File details

Details for the file livekit_agents-1.6.5.tar.gz.

File metadata

  • Download URL: livekit_agents-1.6.5.tar.gz
  • Upload date:
  • Size: 2.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for livekit_agents-1.6.5.tar.gz
Algorithm Hash digest
SHA256 151b1e93b192a7934c012827b912a2ba10e67f9c545938dc1d7c758cd7ca70b0
MD5 2fb7d1292ba2bf1be1301635e204ff06
BLAKE2b-256 9b6e3067d2e47dcf7234084b2da6e5223fd2efa0788f60f058a869f69051863b

See more details on using hashes here.

Provenance

The following attestation bundles were made for livekit_agents-1.6.5.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.5-py3-none-any.whl.

File metadata

  • Download URL: livekit_agents-1.6.5-py3-none-any.whl
  • Upload date:
  • Size: 2.7 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for livekit_agents-1.6.5-py3-none-any.whl
Algorithm Hash digest
SHA256 b591eb7dde1b58241d0ef333b8484a33cce8061c1ee4f1e39bf30bd31c25f2f0
MD5 815491343487a0da90683a401900413a
BLAKE2b-256 2c84fc1a467bf97378187bfb29f17f96541b767dea353a3a668ede698fce4830

See more details on using hashes here.

Provenance

The following attestation bundles were made for livekit_agents-1.6.5-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

This release

1.6.5

Supported by

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