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
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.5.tar.gz.
File metadata
- Download URL: livekit_agents-1.5.5.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d3471c56d6bee20015d655095cf6472d9b676f8283e2bd7fce80fb978c12b0cb
|
|
| MD5 |
b252f92a0ead62eb0c3bb279689bb2c1
|
|
| BLAKE2b-256 |
65d51ad7369fe85237db2ef7db72d68be54f79d378d4405b4e671058631cf0ff
|
Provenance
The following attestation bundles were made for livekit_agents-1.5.5.tar.gz:
Publisher:
publish.yml on livekit/agents
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
livekit_agents-1.5.5.tar.gz -
Subject digest:
d3471c56d6bee20015d655095cf6472d9b676f8283e2bd7fce80fb978c12b0cb - Sigstore transparency entry: 1343166972
- Sigstore integration time:
-
Permalink:
livekit/agents@2bb75bea346b350940e103f1100ad978dd5bc70f -
Branch / Tag:
refs/heads/main - Owner: https://github.com/livekit
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@2bb75bea346b350940e103f1100ad978dd5bc70f -
Trigger Event:
pull_request
-
Statement type:
File details
Details for the file livekit_agents-1.5.5-py3-none-any.whl.
File metadata
- Download URL: livekit_agents-1.5.5-py3-none-any.whl
- Upload date:
- Size: 2.6 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c0c0e50a8ac69946c1689fd6b72b02a875478db1dc3dd26c0a0bc0ed2e84aded
|
|
| MD5 |
f8480997c924d730acc0ad0640507e3d
|
|
| BLAKE2b-256 |
afb46b498578b850c9bf7b275bcea431b530a7bd3bed8c856ae9098f32c857e7
|
Provenance
The following attestation bundles were made for livekit_agents-1.5.5-py3-none-any.whl:
Publisher:
publish.yml on livekit/agents
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
livekit_agents-1.5.5-py3-none-any.whl -
Subject digest:
c0c0e50a8ac69946c1689fd6b72b02a875478db1dc3dd26c0a0bc0ed2e84aded - Sigstore transparency entry: 1343166997
- Sigstore integration time:
-
Permalink:
livekit/agents@2bb75bea346b350940e103f1100ad978dd5bc70f -
Branch / Tag:
refs/heads/main - Owner: https://github.com/livekit
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@2bb75bea346b350940e103f1100ad978dd5bc70f -
Trigger Event:
pull_request
-
Statement type: