{"name":"@langchain/protocol","version":"0.0.18","keywords":["langchain","langgraph","protocol","streaming","agents","typescript"],"license":"MIT","_id":"@langchain/protocol@0.0.18","maintainers":[{"name":"lc-oss-admin","email":"oss-admin@langchain.dev"},{"name":"langchain-security","email":"infra@langchain.dev"}],"dist":{"shasum":"6d96155e7263c958fbce6d4b7241b4725b72fbad","tarball":"http://registry-npm.ywwl.com/@langchain/protocol/download/@langchain/protocol-0.0.18.tgz","fileCount":4,"integrity":"sha512-XW1egQtPfsGI41w2AMZNFZrUIwFSQHTjVMZs0OaTpCAvht/QLoaPN8FQcsysMVypOhupG28J29yOorrc70otBQ==","signatures":[{"sig":"MEYCIQDK+kO0W8h97fYU96QNeoorUFzD8fSX1xJVxeg5oxD81gIhAMS0SXWnp160Gi0/pmqJAeZxa7eOlZ1y2GcVC43J0A3z","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":41183,"size":11900,"noattachment":false,"key":"/@langchain/protocol/-/@langchain/protocol-0.0.18.tgz"},"types":"./protocol.ts","exports":{".":{"types":"./protocol.ts","default":"./protocol.ts"}},"_npmUser":{"name":"lc-oss-admin","email":"oss-admin@langchain.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.18_1781802503675_0.47917284556948836","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":1781802503818,"_cnpm_publish_time":1781802503818,"dist-tags":{"dev":"0.0.14-alpha.1","latest":"0.0.21"}}