Skip to main content

Python bindings for the LangChain agent streaming protocol

Project description

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.

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

Project details


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.12.tar.gz (6.4 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.12-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: langchain_protocol-0.0.12.tar.gz
  • Upload date:
  • Size: 6.4 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.12.tar.gz
Algorithm Hash digest
SHA256 5e14c434290a705c9510fdb1a83ecf7561a5e6e0dfd053930ade80dba069269f
MD5 03af6abe1996247ab59e7974ca0fc031
BLAKE2b-256 5c511157009b6f94e6e58be58fa8b620187d657909a8b36a6bf5b0c52a2711f6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for langchain_protocol-0.0.12-py3-none-any.whl
Algorithm Hash digest
SHA256 402b61f42d4139692528cf37226c367bb6efc8ff8165b29380accb0abfece7b2
MD5 feb889574a31963f31c3ffbfa063cf5f
BLAKE2b-256 95823431e3061c917439589fa88a6b23c9bc0e154cba0f05d2e895a68c76ff74

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page