Skip to main content

Respan LiveKit Instrumentation

Respan instrumentation plugin for LiveKit Agents. It translates LiveKit's native livekit-agents LLM spans into canonical Respan chat spans and emits Respan tool spans for execute_function_call.

Installation

pip install respan-ai respan-instrumentation-livekit livekit-agents

Usage

import os

from livekit.agents import llm
from respan import Respan, workflow
from respan_instrumentation_livekit import LiveKitInstrumentor

respan = Respan(
    api_key=os.environ["RESPAN_API_KEY"],
    app_name="livekit-example",
    instrumentations=[LiveKitInstrumentor()],
)


@workflow(name="livekit_chat.workflow")
async def run_chat(model: llm.LLM) -> str:
    chat_ctx = llm.ChatContext.empty()
    chat_ctx.add_message(role="user", content="Say hello in one sentence.")
    response = await model.chat(chat_ctx=chat_ctx).collect()
    return response.text

Captured Spans

  • LiveKit LLMStream requests become Respan chat spans with request messages, completions, tool calls, tool definitions when available, model, provider, and token usage.
  • LiveKit execute_function_call executions become Respan tool spans.

Use Respan(..., customer_identifier=..., thread_identifier=..., metadata=...) or respan.propagate_attributes(...) to attach Respan attributes to LiveKit spans.

Metadata

Release files for respan-instrumentation-livekit 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for respan-instrumentation-livekit 0.1.2
File Size Uploaded
respan_instrumentation_livekit-0.1.2.tar.gz 9.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for respan-instrumentation-livekit 0.1.2
File Interpreter ABI Platform
respan_instrumentation_livekit-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 23.3 kB

Release files / respan_instrumentation_livekit-0.1.2.tar.gz

Download URL respan_instrumentation_livekit-0.1.2.tar.gz
Size 9.9 kB
Tags Source
SHA-256 checksum
How to use checksums
8a4cf44994a7bccb82e092af01b66fbddd40b0f8cd381e62d35c9b6c3e6a4989
BLAKE2b-256 checksum
How to use checksums
1e0a6da91ad22668b341c5c0ced811095373b939a6cc0e33414551aa3b909079
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 28, 2026.

Transparency log

Release files / respan_instrumentation_livekit-0.1.2-py3-none-any.whl

Download URL respan_instrumentation_livekit-0.1.2-py3-none-any.whl
Size 13.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9804ae64ddee7b5ded6075393b18da6efa66d41bc59b572ac990c8956702e19f
BLAKE2b-256 checksum
How to use checksums
38704ad808ea0a081bd289f57868a5723919677fca9ba49e60ef046c5fb04cfc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 28, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page