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

Uploaded Python 3

File details

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

File metadata

  • Download URL: langchain_protocol-0.0.10.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.10.tar.gz
Algorithm Hash digest
SHA256 5bc530e0b350d3a15a3ab6889abb8132692a2c8a15eed536bce46624751acaaf
MD5 f44245a4a3f8d19e2207fe616ed8ae56
BLAKE2b-256 bfc30d3911d3274f097040e92133f18a425980cd4085e72b6cd65add1f25327c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for langchain_protocol-0.0.10-py3-none-any.whl
Algorithm Hash digest
SHA256 040bb2ae966a06ffcd0051a1d1ca7e4926f12e951e83b07440cb80e0e8e12268
MD5 5f2805798487d11aefa884ccd4732ec5
BLAKE2b-256 f8116c89bc86b5494cfe29ee23420c398406cc147a09b5cf756e323070e358d7

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