{"name":"@langchain/protocol","version":"0.0.17","keywords":["langchain","langgraph","protocol","streaming","agents","typescript"],"license":"MIT","_id":"@langchain/protocol@0.0.17","maintainers":[{"name":"lc-oss-admin","email":"oss-admin@langchain.dev"},{"name":"langchain-security","email":"infra@langchain.dev"}],"dist":{"shasum":"77a0b7c0e0b6736cb9c6e0fd5822160fa511d246","tarball":"http://registry-npm.ywwl.com/@langchain/protocol/download/@langchain/protocol-0.0.17.tgz","fileCount":4,"integrity":"sha512-6ohP4hectAil/FYFE10DSMnhOzVzDxbRp4RvCmzXDcUhisTseGbvwOi7hHIscONdUoxGNcDIsymaofPPkLZTPQ==","signatures":[{"sig":"MEUCIE+a07uawtSCGnH6RGevfuzZ4Uw+bXnRL54BjOJlp+D+AiEAhSmHyn9ynQE5i1QuAYnbASCyuVAx9JNs+zk53CsMp6w=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":41183,"size":11900,"noattachment":false,"key":"/@langchain/protocol/-/@langchain/protocol-0.0.17.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.17_1781802230587_0.3782701233686656","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":1781802230729,"_cnpm_publish_time":1781802230729,"dist-tags":{"dev":"0.0.14-alpha.1","latest":"0.0.21"}}