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.0.tar.gz
(2.5 MB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file livekit_agents-1.5.0.tar.gz.
File metadata
- Download URL: livekit_agents-1.5.0.tar.gz
- Upload date:
- Size: 2.5 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c5ee6401b9a799d99546d19de72c6b68d9b235a1856fe6a6e4b35351b477b182
|
|
| MD5 |
0d05f0f7a9908da9a895a3a292a294bd
|
|
| BLAKE2b-256 |
68345c0719692b6b21fc7584cba8529d45d559e4fc4994f86d5534add12cfd19
|
File details
Details for the file livekit_agents-1.5.0-py3-none-any.whl.
File metadata
- Download URL: livekit_agents-1.5.0-py3-none-any.whl
- Upload date:
- Size: 2.5 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
69fc0f1c91e3ee7a63be978e50eb4694863679eca1de647ae3ed731f51c18f47
|
|
| MD5 |
7a978d3276ea43d20c88ad4b1fae6f0b
|
|
| BLAKE2b-256 |
f9c9cbc96d7f7e73bdfec4583bfb79af5925a890eb9131edac58ce9af1f5f04b
|