{"_id":"@agentegrity/langchain","_rev":"9-d94d82aab21e7caddc2fd66ab0a74800","name":"@agentegrity/langchain","dist-tags":{"latest":"0.10.0"},"versions":{"0.5.0":{"name":"@agentegrity/langchain","version":"0.5.0","keywords":["agentegrity","langchain","langgraph","agent","security","observability"],"license":"Apache-2.0","_id":"@agentegrity/langchain@0.5.0","maintainers":[{"name":"cogensec","email":"tarique@cogensec.com"}],"homepage":"https://github.com/requie/agentegrity-framework/tree/main/clients/typescript/packages/langchain","bugs":{"url":"https://github.com/requie/agentegrity-framework/issues"},"dist":{"shasum":"a2442bb40d79d83c389bbe28973226d95d65ef31","tarball":"https://registry.npmjs.org/@agentegrity/langchain/-/langchain-0.5.0.tgz","fileCount":13,"integrity":"sha512-Ija8p3lmUFFALdLQf4siWWKT2/eAQqI2KTNiPotxhQYIEm92OTyxG2HgDTcNcJqIZ2yxYwCgu8gCprLa2Scjjg==","signatures":[{"sig":"MEYCIQDugQP5RpWuN8WWC34S3UlrArMVmGChqTgVjgEb+ik2ewIhAOqQlE68dQgHT0URkvxAUn7TS46/Cg9Dddb6ZXyTv3x1","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":25160},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","module":"dist/index.js","engines":{"node":">=18"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"test":"AGENTEGRITY_OFFLINE=1 node --test --import tsx src/*.test.ts","build":"tsc","clean":"rm -rf dist","typecheck":"tsc --noEmit"},"_npmUser":{"name":"cogensec","email":"tarique@cogensec.com"},"repository":{"url":"git+https://github.com/requie/agentegrity-framework.git","type":"git","directory":"clients/typescript/packages/langchain"},"_npmVersion":"10.8.2","description":"Zero-config agentegrity adapter for LangChain JS and LangGraph JS. Mirrors the Python agentegrity.langchain module.","directories":{},"_nodeVersion":"20.20.2","dependencies":{"@agentegrity/client":"workspace:*"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.7.0","typescript":"^5.4.0","@types/node":"^20.0.0"},"peerDependencies":{"@langchain/core":">=0.3.0"},"peerDependenciesMeta":{"@langchain/core":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/langchain_0.5.0_1776813099197_0.5370064683407918","host":"s3://npm-registry-packages-npm-production"}},"0.5.1":{"name":"@agentegrity/langchain","version":"0.5.1","keywords":["agentegrity","langchain","langgraph","agent","security","observability"],"license":"Apache-2.0","_id":"@agentegrity/langchain@0.5.1","maintainers":[{"name":"cogensec","email":"tarique@cogensec.com"}],"homepage":"https://github.com/requie/agentegrity-framework/tree/main/clients/typescript/packages/langchain","bugs":{"url":"https://github.com/requie/agentegrity-framework/issues"},"dist":{"shasum":"08db60bd27bbb1573ee519cc4bf762dd161147b8","tarball":"https://registry.npmjs.org/@agentegrity/langchain/-/langchain-0.5.1.tgz","fileCount":13,"integrity":"sha512-0yI35oSUMcov9E/ZttpQWnswLK7T7vWtCtb2VYFV2yQN4lcSabcrJwpkt24IkDcQlyxx6V1/JU5VcKajK4OMUA==","signatures":[{"sig":"MEUCIQDwLV8wutXgZskIA0b4Qpdm6bd5IvqL9N/KuPJWTXSG9AIgD/686GWNKsqCTK4ZNGqri/6ZTXdTRR68Om9SzBdndrQ=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":25160},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","module":"dist/index.js","engines":{"node":">=18"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"test":"AGENTEGRITY_OFFLINE=1 node --test --import tsx src/*.test.ts","build":"tsc","clean":"rm -rf dist","typecheck":"tsc --noEmit"},"_npmUser":{"name":"cogensec","email":"tarique@cogensec.com"},"repository":{"url":"git+https://github.com/requie/agentegrity-framework.git","type":"git","directory":"clients/typescript/packages/langchain"},"_npmVersion":"10.8.2","description":"Zero-config agentegrity adapter for LangChain JS and LangGraph JS. Mirrors the Python agentegrity.langchain module.","directories":{},"_nodeVersion":"20.20.2","dependencies":{"@agentegrity/client":"workspace:*"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.7.0","typescript":"^5.4.0","@types/node":"^20.0.0"},"peerDependencies":{"@langchain/core":">=0.3.0"},"peerDependenciesMeta":{"@langchain/core":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/langchain_0.5.1_1776813621882_0.3732101434501278","host":"s3://npm-registry-packages-npm-production"}},"0.5.2":{"name":"@agentegrity/langchain","version":"0.5.2","keywords":["agentegrity","langchain","langgraph","agent","security","observability"],"license":"Apache-2.0","_id":"@agentegrity/langchain@0.5.2","maintainers":[{"name":"cogensec","email":"tarique@cogensec.com"}],"homepage":"https://github.com/requie/agentegrity-framework/tree/main/clients/typescript/packages/langchain","bugs":{"url":"https://github.com/requie/agentegrity-framework/issues"},"dist":{"shasum":"4702d3e5be2851973520743629aa99b6ca978966","tarball":"https://registry.npmjs.org/@agentegrity/langchain/-/langchain-0.5.2.tgz","fileCount":13,"integrity":"sha512-/n1tDLjtJuQ0BO+4YHtYbkAuMCn+Tyvr/8yEvWX72SLZaFdwgFr+S3h7zmTgbb1h/fpvGkxvTWZL1ytAnqFfqQ==","signatures":[{"sig":"MEQCIDhv6MY3Igft1tG9GzDh4a26ZUJ+mGtGgj9pHIAzaF4dAiB0d57feV3buSJuJbUpU94rOQI+2NyK9dxM0Yf58nV+AQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":25154},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","module":"dist/index.js","engines":{"node":">=18"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"test":"AGENTEGRITY_OFFLINE=1 node --test --import tsx src/*.test.ts","build":"tsc","clean":"rm -rf dist","typecheck":"tsc --noEmit"},"_npmUser":{"name":"cogensec","email":"tarique@cogensec.com"},"repository":{"url":"git+https://github.com/requie/agentegrity-framework.git","type":"git","directory":"clients/typescript/packages/langchain"},"_npmVersion":"10.8.2","description":"Zero-config agentegrity adapter for LangChain JS and LangGraph JS. Mirrors the Python agentegrity.langchain module.","directories":{},"_nodeVersion":"20.20.2","dependencies":{"@agentegrity/client":"0.5.2"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.7.0","typescript":"^5.4.0","@types/node":"^20.0.0"},"peerDependencies":{"@langchain/core":">=0.3.0"},"peerDependenciesMeta":{"@langchain/core":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/langchain_0.5.2_1776890394740_0.962607420335843","host":"s3://npm-registry-packages-npm-production"}},"0.6.0":{"name":"@agentegrity/langchain","version":"0.6.0","keywords":["agentegrity","langchain","langgraph","agent","security","observability"],"license":"Apache-2.0","_id":"@agentegrity/langchain@0.6.0","maintainers":[{"name":"cogensec","email":"tarique@cogensec.com"}],"homepage":"https://github.com/cogensec/agentegrity-framework/tree/main/clients/typescript/packages/langchain","bugs":{"url":"https://github.com/cogensec/agentegrity-framework/issues"},"dist":{"shasum":"c33c8f7580604e8c588f572ab4ec020e926735d6","tarball":"https://registry.npmjs.org/@agentegrity/langchain/-/langchain-0.6.0.tgz","fileCount":13,"integrity":"sha512-8MSgA7ukIpSxJO7puz7VSoxu451eYTGNjyf/Wi5jbSziklQUhF/e/2F9qH4V9eZDnafPpAXYFOlPuBLL28faUQ==","signatures":[{"sig":"MEYCIQD3zamDtgLj2tr8K7r0XgTyd1ngXeogySCh8a9dJ6jQlQIhAKEhkpUx1EtTuDi3T/0k8jxfhPX9LiWobZV90W+scm5Z","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":25162},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","module":"dist/index.js","engines":{"node":">=18"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"test":"AGENTEGRITY_OFFLINE=1 node --test --import tsx src/*.test.ts","build":"tsc","clean":"rm -rf dist","typecheck":"tsc --noEmit"},"_npmUser":{"name":"cogensec","email":"tarique@cogensec.com"},"repository":{"url":"git+https://github.com/cogensec/agentegrity-framework.git","type":"git","directory":"clients/typescript/packages/langchain"},"_npmVersion":"10.8.2","description":"Zero-config agentegrity adapter for LangChain JS and LangGraph JS. Mirrors the Python agentegrity.langchain module.","directories":{},"_nodeVersion":"20.20.2","dependencies":{"@agentegrity/client":"0.6.0"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.7.0","typescript":"^5.4.0","@types/node":"^20.0.0"},"peerDependencies":{"@langchain/core":">=0.3.0"},"peerDependenciesMeta":{"@langchain/core":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/langchain_0.6.0_1778082971083_0.8007367667415364","host":"s3://npm-registry-packages-npm-production"}},"0.7.0":{"name":"@agentegrity/langchain","version":"0.7.0","keywords":["agentegrity","langchain","langgraph","agent","security","observability"],"license":"Apache-2.0","_id":"@agentegrity/langchain@0.7.0","maintainers":[{"name":"cogensec","email":"tarique@cogensec.com"}],"homepage":"https://github.com/cogensec/agentegrity/tree/main/clients/typescript/packages/langchain","bugs":{"url":"https://github.com/cogensec/agentegrity/issues"},"dist":{"shasum":"b863fec1e6eb1a715e701043cb13cc53e485757e","tarball":"https://registry.npmjs.org/@agentegrity/langchain/-/langchain-0.7.0.tgz","fileCount":13,"integrity":"sha512-48zdOk7OawUEsXxDqOJkLVsO9tXBff+G7YqDMxjQNvdPhpbh1Bn5rDSkXuHfePqOpqQ5xl/8+MdBVDDcqcf+fA==","signatures":[{"sig":"MEUCIAWBkrNYowgcfS6WOxt1fPY7CYt9/gKQUVyJXyWrnOTAAiEAjyhqQaFVkIZzcnlnrSDAJhWPq+EZmLihHu/kw7nql7g=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":25122},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","module":"dist/index.js","engines":{"node":">=18"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"test":"AGENTEGRITY_OFFLINE=1 node --test --import tsx src/*.test.ts","build":"tsc","clean":"rm -rf dist","typecheck":"tsc --noEmit"},"_npmUser":{"name":"cogensec","email":"tarique@cogensec.com"},"repository":{"url":"git+https://github.com/cogensec/agentegrity.git","type":"git","directory":"clients/typescript/packages/langchain"},"_npmVersion":"10.8.2","description":"Zero-config agentegrity adapter for LangChain JS and LangGraph JS. Mirrors the Python agentegrity.langchain module.","directories":{},"_nodeVersion":"20.20.2","dependencies":{"@agentegrity/client":"0.7.0"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.7.0","typescript":"^5.4.0","@types/node":"^20.0.0"},"peerDependencies":{"@langchain/core":">=0.3.0"},"peerDependenciesMeta":{"@langchain/core":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/langchain_0.7.0_1780950081872_0.8176925515495781","host":"s3://npm-registry-packages-npm-production"}},"0.8.0":{"name":"@agentegrity/langchain","version":"0.8.0","keywords":["agentegrity","langchain","langgraph","agent","security","observability"],"license":"Apache-2.0","_id":"@agentegrity/langchain@0.8.0","maintainers":[{"name":"cogensec","email":"tarique@cogensec.com"}],"homepage":"https://github.com/cogensec/agentegrity/tree/main/clients/typescript/packages/langchain","bugs":{"url":"https://github.com/cogensec/agentegrity/issues"},"dist":{"shasum":"5f648cfe8c4521aa119a0383b3d54fb6d07e5201","tarball":"https://registry.npmjs.org/@agentegrity/langchain/-/langchain-0.8.0.tgz","fileCount":14,"integrity":"sha512-EBzHK7rCAMBMqne6EtimmTF2z4MixcFKH0VPDJpaFk5IykUYLAcb2V8gHbxXM1umaO/2q66cchkqdxO0jZFDag==","signatures":[{"sig":"MEUCIQCZO47tnHTlkklmU3W2pdwnXqPr+5VKhXNKyvhIBmpiLgIgHAMZzZfejzrKrIJL7gzI0420LcbLdxMHESLvfuF+bqg=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":37144},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","module":"dist/index.js","engines":{"node":">=18"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"test":"AGENTEGRITY_OFFLINE=1 node --test --import tsx src/*.test.ts","build":"tsc","clean":"rm -rf dist","typecheck":"tsc --noEmit"},"_npmUser":{"name":"cogensec","email":"tarique@cogensec.com"},"repository":{"url":"git+https://github.com/cogensec/agentegrity.git","type":"git","directory":"clients/typescript/packages/langchain"},"_npmVersion":"10.8.2","description":"Zero-config agentegrity adapter for LangChain JS and LangGraph JS. Mirrors the Python agentegrity.langchain module.","directories":{},"_nodeVersion":"20.20.2","dependencies":{"@agentegrity/client":"0.8.0"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.7.0","typescript":"^5.4.0","@types/node":"^20.0.0"},"peerDependencies":{"@langchain/core":">=0.3.0"},"peerDependenciesMeta":{"@langchain/core":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/langchain_0.8.0_1782237247248_0.6156880714139819","host":"s3://npm-registry-packages-npm-production"}},"0.8.1":{"name":"@agentegrity/langchain","version":"0.8.1","keywords":["agentegrity","langchain","langgraph","agent","security","observability"],"license":"Apache-2.0","_id":"@agentegrity/langchain@0.8.1","maintainers":[{"name":"cogensec","email":"tarique@cogensec.com"}],"homepage":"https://github.com/cogensec/agentegrity/tree/main/clients/typescript/packages/langchain","bugs":{"url":"https://github.com/cogensec/agentegrity/issues"},"dist":{"shasum":"544b3fb3952d60932bb63f9663e9c01f6d390a94","tarball":"https://registry.npmjs.org/@agentegrity/langchain/-/langchain-0.8.1.tgz","fileCount":14,"integrity":"sha512-tEcKYsPOC9ADnsERTIjNelkf+OdkVu40oAm4Dedqlr1YKfxn+gtcvwp8pZpGCHMZZdwowg+DXSGISyrvgrbAMQ==","signatures":[{"sig":"MEYCIQCCkKivHhuM/04GX6+pYpVqZgtmpqkI2PNj1n3M6fr+5gIhALc6cUdY1KjkIMZ5upFyg5dJ0Ea0uC0McpJ/lFps5Gke","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":37158},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","module":"dist/index.js","engines":{"node":">=18"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"test":"AGENTEGRITY_OFFLINE=1 node --test --import tsx src/*.test.ts","build":"tsc","clean":"rm -rf dist","typecheck":"tsc --noEmit"},"_npmUser":{"name":"cogensec","email":"tarique@cogensec.com"},"repository":{"url":"git+https://github.com/cogensec/agentegrity.git","type":"git","directory":"clients/typescript/packages/langchain"},"_npmVersion":"10.8.2","description":"Zero-config agentegrity adapter for LangChain JS and LangGraph JS. Mirrors the Python agentegrity.langchain module.","directories":{},"_nodeVersion":"20.20.2","dependencies":{"@agentegrity/client":"0.8.1"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.7.0","typescript":"^5.4.0","@types/node":"^20.0.0"},"peerDependencies":{"@langchain/core":">=0.3.0"},"peerDependenciesMeta":{"@langchain/core":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/langchain_0.8.1_1783015724163_0.28727428474861716","host":"s3://npm-registry-packages-npm-production"}},"0.9.0":{"name":"@agentegrity/langchain","version":"0.9.0","keywords":["agentegrity","langchain","langgraph","agent","security","observability"],"license":"Apache-2.0","_id":"@agentegrity/langchain@0.9.0","maintainers":[{"name":"cogensec","email":"tarique@cogensec.com"}],"homepage":"https://github.com/cogensec/agentegrity/tree/main/clients/typescript/packages/langchain","bugs":{"url":"https://github.com/cogensec/agentegrity/issues"},"dist":{"shasum":"7b23c6a109bd2c0e788e21296e53d6d86b5b532b","tarball":"https://registry.npmjs.org/@agentegrity/langchain/-/langchain-0.9.0.tgz","fileCount":14,"integrity":"sha512-oebnYBnvvJs4Wl36C2d565Z/bMx9bg4hdnTI+X+45XdY3zVLCW5JL5uXlf+VtIghQ7Kw1nh+gRB1bWRFy+rzdg==","signatures":[{"sig":"MEUCIFko0ELcdzqCFp5K0UziSQGZiW5gCUyrRdp+DegIp4BtAiEAlj0nBYoB4nN+z16N9AVAQzdKc+jdS/BbE+rfuOA9Tu8=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":37158},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","module":"dist/index.js","engines":{"node":">=18"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"test":"AGENTEGRITY_OFFLINE=1 node --test --import tsx src/*.test.ts","build":"tsc","clean":"rm -rf dist","typecheck":"tsc --noEmit"},"_npmUser":{"name":"cogensec","email":"tarique@cogensec.com"},"repository":{"url":"git+https://github.com/cogensec/agentegrity.git","type":"git","directory":"clients/typescript/packages/langchain"},"_npmVersion":"10.8.2","description":"Zero-config agentegrity adapter for LangChain JS and LangGraph JS. Mirrors the Python agentegrity.langchain module.","directories":{},"_nodeVersion":"20.20.2","dependencies":{"@agentegrity/client":"0.9.0"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.7.0","typescript":"^5.4.0","@types/node":"^20.0.0"},"peerDependencies":{"@langchain/core":">=0.3.0"},"peerDependenciesMeta":{"@langchain/core":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/langchain_0.9.0_1785033003899_0.2964107032334582","host":"s3://npm-registry-packages-npm-production"}},"0.10.0":{"name":"@agentegrity/langchain","version":"0.10.0","description":"Zero-config agentegrity adapter for LangChain JS and LangGraph JS. Mirrors the Python agentegrity.langchain module.","license":"Apache-2.0","type":"module","main":"dist/index.js","module":"dist/index.js","types":"dist/index.d.ts","exports":{".":{"import":"./dist/index.js","types":"./dist/index.d.ts"}},"scripts":{"build":"tsc","typecheck":"tsc --noEmit","test":"AGENTEGRITY_OFFLINE=1 node --test --import tsx src/*.test.ts","clean":"rm -rf dist"},"keywords":["agentegrity","langchain","langgraph","agent","security","observability"],"dependencies":{"@agentegrity/client":"0.10.0"},"peerDependencies":{"@langchain/core":">=0.3.0"},"peerDependenciesMeta":{"@langchain/core":{"optional":true}},"devDependencies":{"typescript":"^5.4.0","tsx":"^4.7.0","@types/node":"^20.0.0"},"engines":{"node":">=18"},"homepage":"https://github.com/cogensec/agentegrity/tree/main/clients/typescript/packages/langchain","repository":{"type":"git","url":"git+https://github.com/cogensec/agentegrity.git","directory":"clients/typescript/packages/langchain"},"bugs":{"url":"https://github.com/cogensec/agentegrity/issues"},"_id":"@agentegrity/langchain@0.10.0","_nodeVersion":"20.20.2","_npmVersion":"10.8.2","dist":{"integrity":"sha512-x+XhGemS0JdAPSAeSw4Zhg+zDVPHGisNWWJlQrjxXaT60234CFapnq3Bx0PJ9hq8Eda1T3IICuNzuR7+O+sGgg==","shasum":"337ab6c85954ea0fe36bbe84d448b5b7859069d3","tarball":"https://registry.npmjs.org/@agentegrity/langchain/-/langchain-0.10.0.tgz","fileCount":14,"unpackedSize":37160,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCKA1TgofFEJEvrdjjIA25pzZGvZOeqXYAho7j/jJ+9WwIhANLxYPQe1wJxH6tJojl8NoI2H8MKfyX0FJE5uY6+yeSM"}]},"_npmUser":{"name":"cogensec","email":"tarique@cogensec.com"},"directories":{},"maintainers":[{"name":"cogensec","email":"tarique@cogensec.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/langchain_0.10.0_1785723341932_0.5607218971550114"},"_hasShrinkwrap":false}},"time":{"created":"2026-04-21T23:11:39.115Z","modified":"2026-08-03T02:15:42.287Z","0.5.0":"2026-04-21T23:11:39.333Z","0.5.1":"2026-04-21T23:20:22.030Z","0.5.2":"2026-04-22T20:39:54.870Z","0.6.0":"2026-05-06T15:56:11.252Z","0.7.0":"2026-06-08T20:21:22.001Z","0.8.0":"2026-06-23T17:54:07.382Z","0.8.1":"2026-07-02T18:08:44.324Z","0.9.0":"2026-07-26T02:30:04.041Z","0.10.0":"2026-08-03T02:15:42.084Z"},"bugs":{"url":"https://github.com/cogensec/agentegrity/issues"},"license":"Apache-2.0","homepage":"https://github.com/cogensec/agentegrity/tree/main/clients/typescript/packages/langchain","keywords":["agentegrity","langchain","langgraph","agent","security","observability"],"repository":{"type":"git","url":"git+https://github.com/cogensec/agentegrity.git","directory":"clients/typescript/packages/langchain"},"description":"Zero-config agentegrity adapter for LangChain JS and LangGraph JS. Mirrors the Python agentegrity.langchain module.","maintainers":[{"name":"cogensec","email":"tarique@cogensec.com"}],"readme":"# @agentegrity/langchain\n\nZero-config [agentegrity](https://github.com/cogensec/agentegrity) adapter for **LangChain JS** and **LangGraph JS**. Mirrors the Python `agentegrity.langchain` module 1:1.\n\n## Install\n\n```bash\nnpm i @agentegrity/langchain @langchain/core\n# or: bun add @agentegrity/langchain @langchain/core\n```\n\n## Use\n\n```ts\nimport { ChatAnthropic } from \"@langchain/anthropic\";\nimport { instrument, report } from \"@agentegrity/langchain\";\n\nconst llm = new ChatAnthropic({ callbacks: [instrument()] });\n// ... run chain / graph — callbacks propagate to every child runnable ...\nconsole.log(await report());\n```\n\nWorks with **every LangChain JS runnable** — chains, tools, graphs, LLMs — because LangChain's callback system automatically propagates handlers down.\n\n## Config\n\nOverride the default profile:\n\n```ts\nconst cb = instrument({ profile: { name: \"my-agent\", risk_tier: \"high\" } });\n```\n\nEnvironment variables:\n\n| Var | Default | What |\n|---|---|---|\n| `AGENTEGRITY_URL` | `http://localhost:8787` | Exporter backend URL |\n| `AGENTEGRITY_TOKEN` | _(none)_ | Bearer token |\n| `AGENTEGRITY_DISABLED` | _(unset)_ | Set to `1` to no-op the handler |\n\n## API\n\n| Function | Returns |\n|---|---|\n| `instrument(options?)` | A LangChain-compatible callback handler |\n| `report()` | Session summary snapshot |\n| `reset()` | Discard the module-global adapter |\n| `registerExporter(exporter)` | Subscribe an additional `SessionExporter` |\n| `adapter()` | Escape hatch — returns the underlying `DefaultAdapter` |\n\n## License\n\nApache-2.0\n","readmeFilename":"README.md"}