{"name":"@langchain/protocol","version":"0.0.6","keywords":["langchain","langgraph","protocol","streaming","agents","typescript"],"license":"MIT","_id":"@langchain/protocol@0.0.6","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":"9b0b2e2d4e9cda9299909f433c78a23923bdbedf","tarball":"http://registry-npm.ywwl.com/@langchain/protocol/download/@langchain/protocol-0.0.6.tgz","fileCount":4,"integrity":"sha512-ZvsupLT7uwh7bAbcU5manrsPM+DIoSwDlUi1MrCSl5oxYnzQWoDNnaW0meEPEItfRLJSgjQ5iHT2KMxXAqqGxQ==","signatures":[{"sig":"MEUCIHJh22gsY22QCJf3ypUjiPoy2jvezq4P2blC+fP24/AKAiEA5x62ilTQGWCmbSGlnnNDt+iFBQDIW7n4NKtbEAVQE+E=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":40866,"size":11095,"noattachment":false,"key":"/@langchain/protocol/-/@langchain/protocol-0.0.6.tgz"},"types":"./protocol.ts","exports":{".":{"types":"./protocol.ts","default":"./protocol.ts"}},"gitHead":"12623c3927a8d49003bbbd7904a6b1705865bca7","_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.6_1775864182799_0.8270485162829535","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":1775864182921,"_cnpm_publish_time":1775864182921,"dist-tags":{"dev":"0.0.14-alpha.1","latest":"0.0.21"}}