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.21

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.21
File Size Uploaded Provenance Actions
langchain_protocol-0.0.21.tar.gz 6.3 kB Without provenance Details for langchain_protocol-0.0.21.tar.gz

Built distribution (wheel)

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

Total release size: 13.8 kB

Release files / langchain_protocol-0.0.21.tar.gz

Download URL langchain_protocol-0.0.21.tar.gz
Size 6.3 kB
Tags Source
SHA-256 checksum
How to use checksums
04b3e80852233a8db39b39d3ad2438d892531dc0ecd41459e857a139ee0e601c
BLAKE2b-256 checksum
How to use checksums
bedb7f9195371c824e706231365b4c6c85573b12c4375286e7471d6a488e8091
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.21-py3-none-any.whl

Download URL langchain_protocol-0.0.21-py3-none-any.whl
Size 7.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7f42f9eae7c08bb9d74850057da50b5483970a3df91b7a8a5aadec6a3dfa4d12
BLAKE2b-256 checksum
How to use checksums
3ff625232abfce5cc696c21f7947e6ae11cc6b124e5099783408ff8552c545a3
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.21

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