generated from kgod/ai-review-template
提交
This commit is contained in:
@@ -0,0 +1 @@
|
||||
pip
|
||||
@@ -0,0 +1,67 @@
|
||||
Metadata-Version: 2.4
|
||||
Name: langchain-protocol
|
||||
Version: 0.0.15
|
||||
Summary: Python bindings for the LangChain agent streaming protocol
|
||||
Project-URL: Homepage, https://github.com/langchain-ai/agent-protocol/tree/main/streaming
|
||||
Project-URL: Repository, https://github.com/langchain-ai/agent-protocol
|
||||
Project-URL: Issues, https://github.com/langchain-ai/agent-protocol/issues
|
||||
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][streaming].
|
||||
|
||||
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`][cddl], the source of truth for
|
||||
the wire format. See the [streaming protocol overview][streaming] for the
|
||||
full design, channel model, and transport details.
|
||||
|
||||
[streaming]: https://github.com/langchain-ai/agent-protocol/tree/main/streaming
|
||||
[cddl]: https://github.com/langchain-ai/agent-protocol/blob/main/streaming/protocol.cddl
|
||||
|
||||
## Installation
|
||||
|
||||
```bash
|
||||
pip install langchain-protocol
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
```python
|
||||
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
|
||||
@@ -0,0 +1,10 @@
|
||||
langchain_protocol-0.0.15.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
|
||||
langchain_protocol-0.0.15.dist-info/METADATA,sha256=5rQYngggOty8si_FDkbBsxhRUb-bHewYXvbQ1_33IpQ,2405
|
||||
langchain_protocol-0.0.15.dist-info/RECORD,,
|
||||
langchain_protocol-0.0.15.dist-info/WHEEL,sha256=QccIxa26bgl1E6uMy58deGWi-0aeIkkangHcxk2kWfw,87
|
||||
langchain_protocol-0.0.15.dist-info/licenses/LICENSE,sha256=iT5uMCdYlpEsIcd_n3wRKrqF_ZhdBbJqKUJM9-UR0Xc,1072
|
||||
langchain_protocol/__init__.py,sha256=wg507LjA9xPpxi5lGE4cs8neiRUB6UKfMqYfr1sVhNo,123
|
||||
langchain_protocol/__pycache__/__init__.cpython-312.pyc,,
|
||||
langchain_protocol/__pycache__/protocol.cpython-312.pyc,,
|
||||
langchain_protocol/protocol.py,sha256=3sEwk5CTk8FE95e3kfuB2kFU760RhTrZhWbmdePWqew,17330
|
||||
langchain_protocol/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
||||
@@ -0,0 +1,4 @@
|
||||
Wheel-Version: 1.0
|
||||
Generator: hatchling 1.29.0
|
||||
Root-Is-Purelib: true
|
||||
Tag: py3-none-any
|
||||
@@ -0,0 +1,21 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2026 LangChain, Inc.
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
Reference in New Issue
Block a user