{"_id":"@add-mesh/langchain","name":"@add-mesh/langchain","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@add-mesh/langchain","version":"0.1.0","description":"ADD Protocol client-side adapter: give any LangChain tool a budget cap, bounded authority, and an audit trail","keywords":["add-protocol","langchain","agents","capabilities"],"license":"Apache-2.0","author":{"name":"das-subha123"},"homepage":"https://github.com/das-subha123/agent-mesh-protocol#readme","repository":{"type":"git","url":"git+https://github.com/das-subha123/agent-mesh-protocol.git","directory":"packages/adapters/langchain"},"bugs":{"url":"https://github.com/das-subha123/agent-mesh-protocol/issues"},"type":"module","main":"./dist/src/index.js","types":"./dist/src/index.d.ts","exports":{".":{"types":"./dist/src/index.d.ts","default":"./dist/src/index.js"}},"engines":{"node":">=20"},"publishConfig":{"access":"public"},"scripts":{"prepublishOnly":"npm --prefix ../../.. run build"},"dependencies":{"@add-mesh/core":"0.1.0","@add-mesh/delegation":"0.1.0","@add-mesh/trust":"0.1.0"},"devDependencies":{"@langchain/core":"^1.2.3","zod":"^4.4.3"},"peerDependencies":{"@langchain/core":">=0.3"},"peerDependenciesMeta":{"@langchain/core":{"optional":true}},"gitHead":"6b938a6c0d7d742a1d81b5cdc90172d2c468dc8f","_id":"@add-mesh/langchain@0.1.0","_nodeVersion":"22.14.0","_npmVersion":"11.18.0","dist":{"integrity":"sha512-qonjg/ejOGINYHhjOJw60sqJVkWNHMJJJN9UafGj/xClgQ9l5Ka75spOPm33uHXLIm+3ZMF98r/UBgngN6QyRQ==","shasum":"b3c3a11287adbdc99befb304e14ce5fdc13ed96e","tarball":"https://registry.npmjs.org/@add-mesh/langchain/-/langchain-0.1.0.tgz","fileCount":19,"unpackedSize":59371,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIDw6ecigg0Y4xfhd2Di/DzvWpUxuqJKDCTuqC6GsDyh0AiBOgqfhjX04u7KH8U7Qjnft4q1y5jvpevpVvXkaMyDWlg=="}]},"_npmUser":{"name":"das-subha123","email":"subhodeepds@gmail.com"},"directories":{},"maintainers":[{"name":"das-subha123","email":"subhodeepds@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/langchain_0.1.0_1785007969284_0.8328582706641126"},"_hasShrinkwrap":false}},"time":{"created":"2026-07-25T19:32:49.081Z","0.1.0":"2026-07-25T19:32:49.472Z","modified":"2026-07-25T19:32:49.689Z"},"maintainers":[{"name":"das-subha123","email":"subhodeepds@gmail.com"}],"description":"ADD Protocol client-side adapter: give any LangChain tool a budget cap, bounded authority, and an audit trail","homepage":"https://github.com/das-subha123/agent-mesh-protocol#readme","keywords":["add-protocol","langchain","agents","capabilities"],"repository":{"type":"git","url":"git+https://github.com/das-subha123/agent-mesh-protocol.git","directory":"packages/adapters/langchain"},"author":{"name":"das-subha123"},"bugs":{"url":"https://github.com/das-subha123/agent-mesh-protocol/issues"},"license":"Apache-2.0","readme":"# @add-mesh/langchain\r\n\r\nClient-side adapter for LangChain — part of the **ADD Protocol** (Agent Discovery, Delegation & Trust),\r\nan open overlay for the Agentic Web that sits above A2A and MCP.\r\n\r\n## Install\r\n\r\n```bash\r\nnpm install @add-mesh/langchain\r\n```\r\n\r\n## Usage\r\n\r\n```ts\r\nconst guarded = wrapAddTool(invoiceTool, {\r\n  signer, chain, provider: acme.did,\r\n  ability: 'invoice/read',\r\n  resource: (input) => `https://api.example.com/invoices/${input.id}`,\r\n  budget: { currency: 'USD', amountMinor: 40 },   // integer minor units\r\n});\r\n```\r\n\r\nImports nothing from LangChain at runtime, so it adds no dependency and does\r\nnot churn with releases. Enforces narrowing, budgets, and receipts **locally**;\r\nmaking a service honour them requires the provider to verify.\r\n\r\n## Documentation\r\n\r\nFull documentation, specifications, and runnable examples: [https://github.com/das-subha123/agent-mesh-protocol](https://github.com/das-subha123/agent-mesh-protocol)\r\n\r\nTwo implementations — TypeScript and Python — are developed together and\r\nvalidated against the same normative test vectors, so envelopes produced by one\r\nare byte-identical to the other.\r\n\r\n## License\r\n\r\nApache-2.0\r\n","readmeFilename":"README.md","_rev":"1-b750fdab46f2ad602686719b75779a43"}