{"name":"@langchain/protocol","version":"0.0.7","keywords":["langchain","langgraph","protocol","streaming","agents","typescript"],"license":"MIT","_id":"@langchain/protocol@0.0.7","maintainers":[{"name":"hwchase17","email":"hw.chase.17@gmail.com"},{"name":"jacoblee93","email":"jacoblee93@gmail.com"},{"name":"basproul","email":"braceasproul@gmail.com"},{"name":"eric_langchain","email":"eric@langchain.dev"},{"name":"andrewnguonly","email":"andrewnguonly@gmail.com"},{"name":"davidduong","email":"david@duong.cz"},{"name":"maddyadams","email":"madelyn.adams1@gmail.com"},{"name":"sam_noyes","email":"sam@langchain.dev"},{"name":"langchain-security","email":"infra@langchain.dev"},{"name":"andy-langchain","email":"andy@langchain.dev"},{"name":"rcasup","email":"ryan.l.casupanan@gmail.com"},{"name":"hntrl","email":"hunter@hntrl.io"},{"name":"christian-bromann","email":"mail@bromann.dev"}],"dist":{"shasum":"d9e80fdd25399c4916cbafc1e251584d8288bd1d","tarball":"http://registry-npm.ywwl.com/@langchain/protocol/download/@langchain/protocol-0.0.7.tgz","fileCount":4,"integrity":"sha512-IHByVwH3sYiCWUDPj+/JWeZ4Pzl5tHRDNUchkddJb/4L5Z2ZI9sCdSJM6vkeMVF+Owj/75Id7AP0Fk6e/S6XMw==","signatures":[{"sig":"MEUCIED3mbLTFVPl4mNAZkOLDHvNOOe5ahYu1UbzFOxi2N4tAiEAoOF8d4ZqxYUuMytnC2FwokiQIQS1oqg62IhI2VMSAJE=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":40900,"size":11111,"noattachment":false,"key":"/@langchain/protocol/-/@langchain/protocol-0.0.7.tgz"},"types":"./protocol.ts","exports":{".":{"types":"./protocol.ts","default":"./protocol.ts"}},"gitHead":"87741af15e3ce210c1c65357b1fe60df3a26cc2f","_npmUser":{"name":"christian-bromann","email":"mail@bromann.dev"},"_npmVersion":"10.8.2","description":"TypeScript bindings for the LangChain agent streaming protocol","directories":{},"sideEffects":false,"_nodeVersion":"20.19.4","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/protocol_0.0.7_1776113167576_0.342297743133706","host":"s3://npm-registry-packages-npm-production"},"readme":"# `@langchain/protocol`\n\nTypeScript bindings for the LangChain agent streaming protocol.\n\nThis package publishes the generated TypeScript schema bindings from\n`protocol.cddl` so TypeScript applications can type protocol commands, events,\nresults, and content blocks consistently.\n\n## What this package includes\n\n- Generated TypeScript protocol bindings in `protocol.ts`\n- Types for top-level messages such as `Command`, `Message`, and protocol events\n- Types for protocol modules including run, subscription, agent, input, state,\n  and usage\n\n## What this package does not include\n\nThis package does not currently ship a runtime client, transport, or helper APIs.\nIt is intended for typing protocol payloads and generated bindings only.\n\n## Installation\n\n```bash\nnpm install @langchain/protocol\n```\n\n## Usage\n\nUse type-only imports when consuming the protocol schema:\n\n```ts\nimport type {\n  Command,\n  Message,\n  SubscribeParams,\n  MessagesEvent,\n} from \"@langchain/protocol\";\n```\n\nYou can then use the exported types to model protocol payloads in your own\ntransport or client implementation:\n\n```ts\nimport type { Command, SubscribeParams } from \"@langchain/protocol\";\n\nconst params: SubscribeParams = {\n  channels: [\"messages\", \"lifecycle\"],\n};\n\nconst subscribeCommand: Command = {\n  id: 1,\n  method: \"subscription.subscribe\",\n  params,\n};\n```\n\n## Source of truth\n\nThe canonical protocol definition lives at [`protocol.cddl`]([https://](https://github.com/langchain-ai/agent-protocol/blob/main/streaming/protocol.cddl)). The TypeScript\nbindings in this package are generated from that schema.\n","publish_time":1776113167732,"_cnpm_publish_time":1776113167732,"dist-tags":{"dev":"0.0.14-alpha.1","latest":"0.0.21"}}