{"name":"@langchain/protocol","version":"0.0.13","keywords":["langchain","langgraph","protocol","streaming","agents","typescript"],"license":"MIT","_id":"@langchain/protocol@0.0.13","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":"9ee699933d47266b96c62bf8bf786d03eb3a660c","tarball":"http://registry-npm.ywwl.com/@langchain/protocol/download/@langchain/protocol-0.0.13.tgz","fileCount":4,"integrity":"sha512-DDBmP5XEJEtt9lHXUVCuaSqRo5Vqz5hQbsTIkcB5ILgK+ymrv4d9k5fxLinap/uewWnMDUbyYCeh3jid5NBRVA==","signatures":[{"sig":"MEQCICwNb5Fj1JKD5fF67MqLFItNFNvE9MOplOMx1imaEsHfAiBerTtU2B0rCuYDokEI+6TaoRMHM/kjP0zd2rnink8sYQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":37299,"size":10960,"noattachment":false,"key":"/@langchain/protocol/-/@langchain/protocol-0.0.13.tgz"},"types":"./protocol.ts","exports":{".":{"types":"./protocol.ts","default":"./protocol.ts"}},"gitHead":"d72a7572578bc2ba19debacd6d0d4dd98169c432","_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.13_1777070394151_0.5447120361249382","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":1777070394281,"_cnpm_publish_time":1777070394281,"dist-tags":{"dev":"0.0.14-alpha.1","latest":"0.0.21"}}