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.1.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.1.tar.gz.
File metadata
- Download URL: livekit_agents-1.5.1.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 |
3bc3faa2ac588b0f5f7e698f614eb7163bd3e0f548d10fff62a94f162ac33af8
|
|
| MD5 |
cce66e5784a12ef46ef838ecd2f927f2
|
|
| BLAKE2b-256 |
643efbf49f6fa2b771d71135f9cbea00ab07c498e00e5ea639a9026a4ba3c5a5
|
File details
Details for the file livekit_agents-1.5.1-py3-none-any.whl.
File metadata
- Download URL: livekit_agents-1.5.1-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 |
51da84d1c1571b8ba9bdfa8c3f55b3296d0db0df6c306945b915747d18a13491
|
|
| MD5 |
8a7830d3d2280ca581b5b3ff5b2e98fd
|
|
| BLAKE2b-256 |
91598a58348e778c0921fa2eaf338fcca82ef826f2e79c881ed48c2455880a0e
|