Skip to main content

langchain-protocol

Python bindings for the LangChain agent streaming protocol.

This package provides generated TypedDict and Literal definitions for the protocol's commands, events, results, and payload shapes. It does not include a runtime client, transport, or helper APIs — it is intended as a source of typing primitives only.

The types are generated from protocol.cddl, the source of truth for the wire format. See the streaming protocol overview for the full design, channel model, and transport details.

Installation

pip install langchain-protocol

Usage

from langchain_protocol import Command, SubscribeParams

params: SubscribeParams = {
    "channels": ["messages", "lifecycle"],
}

subscribe: Command = {
    "id": 1,
    "method": "subscription.subscribe",
    "params": params,
}

What this package includes

  • TypedDict definitions for commands, events, results, and payload shapes
  • Literal and union aliases for protocol enums and tagged unions
  • A py.typed marker so type checkers pick up the bundled annotations

Metadata

Release files for langchain-protocol 0.0.22

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

Source distribution (sdist)

Source distribution for langchain-protocol 0.0.22
File Size Uploaded Provenance Actions
langchain_protocol-0.0.22.tar.gz 6.5 kB Without provenance Details for langchain_protocol-0.0.22.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for langchain-protocol 0.0.22
File Interpreter ABI Platform Actions
langchain_protocol-0.0.22-py3-none-any.whl Python 3 none any Details for langchain_protocol-0.0.22-py3-none-any.whl

Total release size: 14.1 kB

Release files / langchain_protocol-0.0.22.tar.gz

Download URL langchain_protocol-0.0.22.tar.gz
Size 6.5 kB
Tags Source
SHA-256 checksum
How to use checksums
61267bc9f478c9df35ccdafd9fdf556b2698435232d59def54b3809bb02585bb
BLAKE2b-256 checksum
How to use checksums
a25c94ffa0c0b9445ac284bf7c0aebf2fa3a32bdf27c20aaf2f061746375b670
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / langchain_protocol-0.0.22-py3-none-any.whl

Download URL langchain_protocol-0.0.22-py3-none-any.whl
Size 7.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d264998a507b735320c15a7b366051cbf41e21f771bea1b03a911f2c58af02e7
BLAKE2b-256 checksum
How to use checksums
710ae96b6ca3b5a7d91af31fd82aee42e65beb6bbe884587e27df5460feee486
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Security for langchain-protocol 0.0.22

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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