Skip to main content

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:metrics
  • vent:function-tools-executed
  • vent:conversation-item
  • vent:user-input-transcribed
  • vent:session-usage
  • vent:session-report

It subscribes to:

  • metrics_collected
  • function_tools_executed
  • conversation_item_added
  • user_input_transcribed
  • session_usage_updated
  • close

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

vent_livekit-0.1.3.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

vent_livekit-0.1.3-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

Details for the file vent_livekit-0.1.3.tar.gz.

File metadata

  • Download URL: vent_livekit-0.1.3.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for vent_livekit-0.1.3.tar.gz
Algorithm Hash digest
SHA256 e3ab19d142da02f2d47f770e3d76eb6d2bead03d1c14ff48d3848e0f0f69c563
MD5 5bf6911001c844cbe84ae9a65b2516d2
BLAKE2b-256 d59778085bf7ec750d9f28aa90699cc6d60372c162a3ba7849c042b1d66071cc

See more details on using hashes here.

File details

Details for the file vent_livekit-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: vent_livekit-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 6.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for vent_livekit-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 0f2096d4c1bb2ad9d3afb476ac4ac424df1ac4b05518cb1d13209d3dc925fe97
MD5 3bafa1169cf29b27de010bb5f93997fe
BLAKE2b-256 3b4287c9eebb57f58dbeec87dfaf58383cd4c3df40b1df4b1f2fc0f25a196ceb

See more details on using hashes here.

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