Vent helper for forwarding LiveKit Agents SDK observability
Project description
vent-livekit
Thin helper for forwarding LiveKit Agents SDK observability into Vent.
Install
pip install vent-livekit
What it does
instrument_livekit_agent() automatically publishes the existing vent:* topics that the Vent LiveKit adapter already understands:
vent:metricsvent:function-tools-executedvent:conversation-itemvent:user-input-transcribedvent:session-usagevent:session-report
It subscribes to:
metrics_collectedfunction_tools_executedconversation_item_addeduser_input_transcribedsession_usage_updatedclose
And, when ctx.add_shutdown_callback() / ctx.make_session_report() are available, it flushes a session report on shutdown.
Example
from vent_livekit import instrument_livekit_agent
vent = instrument_livekit_agent(ctx=ctx, session=session)
If you have extra metadata that the outside room observer cannot already see, you can pass it explicitly:
vent = instrument_livekit_agent(
ctx=ctx,
session=session,
session_metadata={
"provider_call_id": "pstn-call-123",
},
debug_urls={"insight": "https://..."},
)
Notes
- This keeps
vent:*as the internal wire format, but the user no longer needs to hand-author those messages. - Transcript, room/session identity, and timing should still come from native LiveKit room signals (
lk.transcription,lk.agent.state, room name/sid). - For the Node.js equivalent, use
@vent-hq/livekit(npm install @vent-hq/livekit).
Project details
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 vent_livekit-0.1.1.tar.gz.
File metadata
- Download URL: vent_livekit-0.1.1.tar.gz
- Upload date:
- Size: 4.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ea61bddf5f64d43b258ae22ecceed1bb9c1e12d2e15f06aa0a2e223f4e05a54f
|
|
| MD5 |
0a5dc01d19dde87c082f894a9601cafd
|
|
| BLAKE2b-256 |
c5983bf0ff673897792cd94c104f16943b1db8e479f5705f18a82b214aea45a2
|
File details
Details for the file vent_livekit-0.1.1-py3-none-any.whl.
File metadata
- Download URL: vent_livekit-0.1.1-py3-none-any.whl
- Upload date:
- Size: 5.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fff3c5fb16006447318132e1e90fcfb8e9710f85e7c19cd5bf8a9970f9f0f0ec
|
|
| MD5 |
fe97a21b771c38304afadbaa416ef594
|
|
| BLAKE2b-256 |
b1494760d9cef39143ed75dc4be2f02e56b49b8d2b3ade057219089227d48ff2
|