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.4.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.4-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: vent_livekit-0.1.4.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.4.tar.gz
Algorithm Hash digest
SHA256 8db19f63a928acbd7b62f92e6248059e471af0d23573724ece4418688c74eeb3
MD5 69df5e51a6072821b2e2893d8c414f06
BLAKE2b-256 ee14565a82f0c2aa2ae10c21c08335be8d424b2175c9c7accefc6972293b044a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: vent_livekit-0.1.4-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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 39922a5520cfd23ec8627e5524ea96a0b11b315e84d50cda65b78d2ebae065a4
MD5 6025879fc62603d4f7038f6a7bce390d
BLAKE2b-256 b91e21094d6f40ab5a6727ca781d081e83e76b355f2042dc70c90e2b8458f6d9

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