Skip to main content

A powerful framework for building realtime voice AI agents

Project description

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

Project details


Release history Release notifications | RSS feed

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.4.6.tar.gz (2.4 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.4.6-py3-none-any.whl (2.5 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: livekit_agents-1.4.6.tar.gz
  • Upload date:
  • Size: 2.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.12

File hashes

Hashes for livekit_agents-1.4.6.tar.gz
Algorithm Hash digest
SHA256 2162c295e5e53808d3dae6887a131e0b9cc22f9cb9f57fc4014004ba57dd52c1
MD5 9858725997e8119b989cb387dd4ce7b8
BLAKE2b-256 f177f0fee1970d900fed1c2708ba5cd47ab1ab0af0e54d98199365867b3284e4

See more details on using hashes here.

File details

Details for the file livekit_agents-1.4.6-py3-none-any.whl.

File metadata

File hashes

Hashes for livekit_agents-1.4.6-py3-none-any.whl
Algorithm Hash digest
SHA256 e98afa121fbe3e41331a554c41912fad58b7e64948e26c7e72b2cc26d8627c45
MD5 576eb6d2fa612bc522ff052e41090eb1
BLAKE2b-256 8c4f5498ea28e6be4469acea0ec7f3aec199c67937c01f4913922e78cc50dcf4

See more details on using hashes here.

Supported by

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