Metadata-Version: 2.4
Name: langchain-protocol
Version: 0.0.9
Summary: Python bindings for the LangChain agent streaming protocol
Project-URL: Repository, https://github.com/langchain-ai/protocol
License: MIT
License-File: LICENSE
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Python: <4.0.0,>=3.10.0
Requires-Dist: typing-extensions<5.0.0,>=4.7.0
Description-Content-Type: text/markdown

# langchain-protocol

Python bindings for the LangChain agent streaming protocol.

The canonical schema lives in [`../protocol.cddl`](../protocol.cddl), and the
definitions in [`langchain_protocol/protocol.py`](./langchain_protocol/protocol.py)
are generated from that schema.

## Installation

```bash
pip install langchain-protocol
```

## Usage

```python
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.
