Skip to main content

parlot-instrumentation-langgraph

MIT OpenTelemetry instrumentation for LangGraph / LangChain agents — the text/webchat path into Parlot.

Parlot’s lead product is production voice AI observability on LiveKit. Use this package when you already run voice and want the same debugger for LangGraph / LangChain sessions (same turn model — not a separate observability product). Prefer parlot-instrumentation-livekit for voice agents.

pip install parlot-instrumentation-langgraph
# or: uv add parlot-instrumentation-langgraph
# or: pip install "parlot[langgraph]"
from parlot.instrumentation.langgraph import parlotize

parlotize(agent_id="support-bot", version="0.1.0", channel="webchat")

# Normal LangGraph usage — no per-call callbacks required
graph.invoke(
    {"messages": [("user", "Hello")]},
    config={"configurable": {"thread_id": "demo-1"}},
)

If thread_id is not provided, Parlot mints one automatically (anon-…) so contract spans still attach to a session.

Pass channel (e.g. webchat, sms) when LangGraph owns the session so ingest does not assume voice. Optional modality overrides the default derived from channel (webchat/sms/whatsapp → text, voice → voice).

Set PARLOT_ENDPOINT and PARLOT_API_KEY. Generative AI content capture (message bodies / tool payloads; default on) is documented in Concepts. Override with parlotize(capture_genai_content=False).

Session application logs (Python logging, default on) follow Settings → Logs / parlotize(capture_logs=…, log_level=…). Not print(). Treat content like stdout for PII.

When used inside a LiveKit voice agent that already called parlot.instrumentation.livekit.parlotize(), this package nests GenAI operational spans under the active LiveKit session and does not emit duplicate parlot.session / parlot.turn spans — LiveKit owns channel and modality.

Docs: LangGraph guide · Concepts · parlot.ai

Metadata

Release files for parlot-instrumentation-langgraph 0.3.1

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

Source distribution (sdist)

Source distribution for parlot-instrumentation-langgraph 0.3.1
File Size Uploaded Provenance
parlot_instrumentation_langgraph-0.3.1.tar.gz 11.9 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for parlot-instrumentation-langgraph 0.3.1
File Interpreter ABI Platform
parlot_instrumentation_langgraph-0.3.1-py3-none-any.whl Python 3 none any Details

Total release size: 26.8 kB

Release files / parlot_instrumentation_langgraph-0.3.1.tar.gz

Download URL parlot_instrumentation_langgraph-0.3.1.tar.gz
Size 11.9 kB
Tags Source
SHA-256 checksum
How to use checksums
4130eafb2ca422cb49bef80f0d400c37841d844c074a276b66b76b1e8e1345c8
BLAKE2b-256 checksum
How to use checksums
cbe070b760b2b54e45f13bf3ab0aa3a9f9cabc0fb41161c87a3746b4751ec10a
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 13, 2026.

Transparency log

Release files / parlot_instrumentation_langgraph-0.3.1-py3-none-any.whl

Download URL parlot_instrumentation_langgraph-0.3.1-py3-none-any.whl
Size 14.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bee4fe06a4b37e36d435419eb29e51e040900da1d1f28d88f169985f4e0591dd
BLAKE2b-256 checksum
How to use checksums
61dc14ded165ea6205f821939e73c9893d589ddc2e7a424ea2e830cdfbe598e6
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 13, 2026.

Transparency log

Security for parlot-instrumentation-langgraph 0.3.1

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.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for parlot_instrumentation_langgraph-0.3.1.tar.gz

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 13, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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