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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

langchain_protocol-0.0.19.tar.gz (6.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

langchain_protocol-0.0.19-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

Details for the file langchain_protocol-0.0.19.tar.gz.

File metadata

  • Download URL: langchain_protocol-0.0.19.tar.gz
  • Upload date:
  • Size: 6.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for langchain_protocol-0.0.19.tar.gz
Algorithm Hash digest
SHA256 79d90a1425122ac87e8052e2ec054fbd09c3edbf341bdfb6397112a495c7bf8c
MD5 500dafd4bc3e7069801ba0cee192aa6c
BLAKE2b-256 1456913599f2f9cec8524868929f12d72b2ede377a6056ca8a40a32bdadfa535

See more details on using hashes here.

File details

Details for the file langchain_protocol-0.0.19-py3-none-any.whl.

File metadata

File hashes

Hashes for langchain_protocol-0.0.19-py3-none-any.whl
Algorithm Hash digest
SHA256 4cdf879a492a35980fd859ae792d3c65458ccaae504e183c9a10d7eac1f0720f
MD5 ac53e82d2fa08ec7cec5d3b12eb0677c
BLAKE2b-256 80c9f6cbf357d48ccbd18bb394433b1fd7ad9be004eed9377ad08bb85777e5e6

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.0.19 This release

2 files

0.0.18

2 files

0.0.17

2 files

0.0.16

2 files

0.0.15

2 files

0.0.14

2 files

0.0.13

2 files

0.0.12

2 files

0.0.11

2 files

0.0.10

2 files

0.0.9

2 files

0.0.8

2 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