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.2.tar.gz (5.2 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.2-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: vent_livekit-0.1.2.tar.gz
  • Upload date:
  • Size: 5.2 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.2.tar.gz
Algorithm Hash digest
SHA256 a4c61b7ce7b11d91e2dda118f8882c37d6a017be6dd255cb0dee2bc6e57b7d4c
MD5 3e16c3abe112610b85ec7b4795752db3
BLAKE2b-256 039789463d7831d48e8b944a4f4955eb0e4294eae83150236bc8fa28ab31db0e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: vent_livekit-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 5.9 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 33eeef06229a4b5415e18f40abe15a6773d7eedec420bd088f104e1c12e10f5a
MD5 7c5816de6d9f1bf8a7f2cf1be0cc07b4
BLAKE2b-256 0efb155966df2bc733831f83477c1844706cb78b5999d566060621fb51978b96

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