Skip to main content

Python bindings for the LangChain agent streaming protocol

Project description

langchain-protocol

Python bindings for the LangChain agent streaming protocol.

The canonical schema lives in ../protocol.cddl, and the definitions in langchain_protocol/protocol.py are generated from that schema.

Installation

pip install langchain-protocol

Usage

from langchain_protocol import Command, SessionOpenParams

params: SessionOpenParams = {
    "protocol_version": "0.3.0",
}

open_command: Command = {
    "id": 1,
    "method": "session.open",
    "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

This package does not include a runtime client, transport, or helper APIs. It is intended as a source of generated typing primitives only.

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: langchain_protocol-0.0.9.tar.gz
  • Upload date:
  • Size: 6.5 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.9.tar.gz
Algorithm Hash digest
SHA256 8019ae5997f1ef6626552fee872abb1a10ead26d667449bc7ce41501515b3edd
MD5 4a5da1b3a782567154f40f260ee7b7fb
BLAKE2b-256 72f1eefe54349d50ecbb70d88b6bdf7afba625972e7678cbbb218bc19f13d3e2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for langchain_protocol-0.0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 5976f9a9e93b98ff76eed70b3e5c4d937b7aabf2eff32b8d3e5893963483e7d3
MD5 04b3b48319a237d2246ef413f43cdf68
BLAKE2b-256 7fcdcd74a3b19f9bcc90571e41e4116d26481337bfb436e2f0fc987527b6e670

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