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

Uploaded Python 3

File details

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

File metadata

  • Download URL: livekit_agents-1.5.10.tar.gz
  • Upload date:
  • Size: 2.5 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.5.10.tar.gz
Algorithm Hash digest
SHA256 eb9c18594290a978874b1e8b818f788e17ec69a3116fc65e9c2a0349ee591d02
MD5 84cac303e3e7af1139eb4d13d51406af
BLAKE2b-256 e6411442e7e2581da7519fbc8f4dee1d8777b2b155a19ade7930d13064b92d88

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for livekit_agents-1.5.10-py3-none-any.whl
Algorithm Hash digest
SHA256 bc70c188d78877ae9080534837ecc9ce5658aa4e0fc6abfc49cf3ddb11948c8c
MD5 e813ab4145853b35e60ad8620f2e2614
BLAKE2b-256 d0057f0ea9817a0d7196e990cf498aa2b90926f7d9c1693423d2ecf11d606c46

See more details on using hashes here.

Provenance

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

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