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.19rc1.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.19rc1-py3-none-any.whl (2.6 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: livekit_agents-1.5.19rc1.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.19rc1.tar.gz
Algorithm Hash digest
SHA256 96546e34413fdd3dd499e4d6144de99142d0cec24aebf99b2457e67d36e618d5
MD5 ee4d60480c4f04192c7999ed920e2059
BLAKE2b-256 9b805a612a74b26383aad2a1a6089b6919e51d4634a8ea50d1d14938c509d88a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for livekit_agents-1.5.19rc1-py3-none-any.whl
Algorithm Hash digest
SHA256 7276a3ebd051a852a7acf19fd6b9e8995af436091b69aba27830412018e49a40
MD5 be33627b9df4a0f49c192737b64d17dc
BLAKE2b-256 9efccaed00772e1b36f9dfd67b8ea3109ff2a7e131a00dfc6265b8d136eae997

See more details on using hashes here.

Provenance

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