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.2.0.tar.gz (4.9 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.2.0-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: vent_livekit-0.2.0.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

Hashes for vent_livekit-0.2.0.tar.gz
Algorithm Hash digest
SHA256 61976e6d4a8c6c7cb5775a47ca42664f9c2bb0c4e4217cb1f66dcbb9cac4af67
MD5 9daad91c0fbced53ceef8cdcdbc0ca1c
BLAKE2b-256 dbcf039da07130de0887a331ccad4447e872c8ffb7132d381b38360bedb8b8fa

See more details on using hashes here.

File details

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

File metadata

  • Download URL: vent_livekit-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 5.5 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.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cdbe68e859456d7d6fb1c2f0990be35bd9e5e26f4e4eaa3b08c08841414702a0
MD5 f0af92ecaaa951f490fc3ad389882da9
BLAKE2b-256 dedf3c10b31d6e0887f7099be6b1a33858167cb248e9737ef86ab617d30e365e

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