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.8.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.8-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: langchain_protocol-0.0.8.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.8.tar.gz
Algorithm Hash digest
SHA256 28fc94f3278cf0da6b9b2e8cc4cd40cafc9e79b6f2de8dc2d06879327af0762c
MD5 35d8abf8d151e83583435f82368f8840
BLAKE2b-256 400b34d23ad37c4ef14f96cf6990b619e2e7c4f9e58c7f1089f044f963af3b32

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for langchain_protocol-0.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 39c7b28f1f7a98317ca5353d2ddb111cbbab9d295d15246ffd34449417c0b614
MD5 d98ef5917ba35aaf23ff363846113835
BLAKE2b-256 a7022bd9075e6f7fb75155b1e8208535ca78be0f4f16c03994295c74c01cbc04

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