langchain-protocol-0.0.9


توضیحات

Python bindings for the LangChain agent streaming protocol
ویژگی مقدار
سیستم عامل -
نام فایل langchain-protocol-0.0.9
نام langchain-protocol
نسخه کتابخانه 0.0.9
نگهدارنده []
ایمیل نگهدارنده []
نویسنده -
ایمیل نویسنده -
آدرس صفحه اصلی -
آدرس اینترنتی https://pypi.org/project/langchain-protocol/
مجوز MIT
# 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


نیازمندی

مقدار نام
- typing-extensions<5.0.0,>=4.7.0


زبان مورد نیاز

مقدار نام
<4.0.0,>=3.10.0 Python


نحوه نصب


نصب پکیج whl langchain-protocol-0.0.9:

    pip install langchain-protocol-0.0.9.whl


نصب پکیج tar.gz langchain-protocol-0.0.9:

    pip install langchain-protocol-0.0.9.tar.gz