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.11.tar.gz (6.6 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.11-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: langchain_protocol-0.0.11.tar.gz
  • Upload date:
  • Size: 6.6 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.11.tar.gz
Algorithm Hash digest
SHA256 c276e2373b5ac691fc7ac9a72019d55182444ce8e89385c3f7e9f0185d0aace7
MD5 a222c593902d53e076a75b15cd62d3a5
BLAKE2b-256 d0bb38b5eaefa41c67735eedd9f9a2568b11c9eb376fa129a5edd7cc3dcde071

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for langchain_protocol-0.0.11-py3-none-any.whl
Algorithm Hash digest
SHA256 364da1faf6f5d3001413bede792c1a822c0f23ae55d1ce1266ca7d8e80e79011
MD5 9b8ec04eafc4d37ea6670fe94c033851
BLAKE2b-256 0bfa6a8ecad8472b182f2caf9d83fd89f40fc1590cb96546d90089b7869b7f5e

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