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 Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

aiyou_livekit_agent-1.8.1-py3-none-any.whl (2.9 MB view details)

Uploaded Python 3

File details

Details for the file aiyou_livekit_agent-1.8.1-py3-none-any.whl.

File metadata

  • Download URL: aiyou_livekit_agent-1.8.1-py3-none-any.whl
  • Upload date:
  • Size: 2.9 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.12.1 {"installer":{"name":"uv","version":"0.12.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for aiyou_livekit_agent-1.8.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a3c533a412370704aa805e23505edaf2b7f91d0f611a27f76ae6d632f4def600
MD5 b3819a1e4badbbc07858f3c26ad7e5f2
BLAKE2b-256 fc6ac0a8f208b83cf0324fc856e60d6d12056c20f044192cc1d02b8c3aeb57c0

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.8.1 This release

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page