{"_id":"@dialogai/ydb-chat-history","_rev":"13-1da64b5d9c3e865116d9c6f984d16879","name":"@dialogai/ydb-chat-history","dist-tags":{"latest":"2.0.2"},"versions":{"1.0.0":{"name":"@dialogai/ydb-chat-history","version":"1.0.0","author":{"name":"Eugene Ditkovsky"},"license":"ISC","_id":"@dialogai/ydb-chat-history@1.0.0","maintainers":[{"name":"di.eugene","email":"ditkovsky.eugene@gmail.com"}],"dist":{"shasum":"a578e5a9a9cd1c28e8e40c58d96d46bfb0850c7a","tarball":"https://registry.npmjs.org/@dialogai/ydb-chat-history/-/ydb-chat-history-1.0.0.tgz","fileCount":4,"integrity":"sha512-aI4wD7w7lLdsn1U6MeRc0mkGIGY5+bnw+m+UOCwwuClfOLbT/C4nyJKL+zW2bUCy47+A8fPqkXM0M/Y7KI6Kqg==","signatures":[{"sig":"MEQCIF1w7xI8YeZ8mFBVOFe2TsvjkWzilWG+RuL8ZNJDvPl7AiBObSYW9X1siDuaJzuF0ErJCCzgXpkyedh/yhjesWoI3Q==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":2539},"main":"main.js","gitHead":"22a5952bc509326d095161521236dc4785e784f4","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"di.eugene","email":"ditkovsky.eugene@gmail.com"},"_npmVersion":"10.8.1","description":"","directories":{},"_nodeVersion":"20.16.0","dependencies":{"@langchain/core":"^0.2.28","@dieugene/logger":"^1.0.3","@dieugene/key-object-db":"^1.1.2"},"_hasShrinkwrap":false,"devDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/ydb-chat-history_1.0.0_1725801305609_0.9779449352726814","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"@dialogai/ydb-chat-history","version":"1.0.1","author":{"name":"Eugene Ditkovsky"},"license":"ISC","_id":"@dialogai/ydb-chat-history@1.0.1","maintainers":[{"name":"di.eugene","email":"ditkovsky.eugene@gmail.com"}],"dist":{"shasum":"c64cf24c89c92ef298768c2465c5484cb90d2fe5","tarball":"https://registry.npmjs.org/@dialogai/ydb-chat-history/-/ydb-chat-history-1.0.1.tgz","fileCount":4,"integrity":"sha512-CR+8lIfpn+QNGh7z/zSA5QwQht2h4NawxWkvXEwEyK8ROzqHVml+IJDRfrN+shL4KcmyB4d4GwA2yjVcMM4mkg==","signatures":[{"sig":"MEQCICgP7qCVE2yy6Sm68UABEnReenIadMXisSvvfYkaK3kyAiAoF8F9kJ2rmolR5eLRXzy2XHlD0eh42GOx8cf1Nt1PJA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":2574},"main":"main.js","gitHead":"22a5952bc509326d095161521236dc4785e784f4","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"di.eugene","email":"ditkovsky.eugene@gmail.com"},"_npmVersion":"10.8.1","description":"","directories":{},"_nodeVersion":"20.16.0","dependencies":{"@langchain/core":"^0.2.28","@dieugene/logger":"^1.0.3","@dieugene/key-object-db":"^1.1.2"},"_hasShrinkwrap":false,"devDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/ydb-chat-history_1.0.1_1725801600707_0.7336532924507542","host":"s3://npm-registry-packages"}},"1.0.2":{"name":"@dialogai/ydb-chat-history","version":"1.0.2","author":{"name":"Eugene Ditkovsky"},"license":"ISC","_id":"@dialogai/ydb-chat-history@1.0.2","maintainers":[{"name":"di.eugene","email":"ditkovsky.eugene@gmail.com"}],"dist":{"shasum":"9f65533cc22a33e0fbdbe09393f8879b108d1c6e","tarball":"https://registry.npmjs.org/@dialogai/ydb-chat-history/-/ydb-chat-history-1.0.2.tgz","fileCount":4,"integrity":"sha512-kJNY5F4wluK3nJ47TgPfqQk21D25gJX/biOpI4c37i/dEjRDNd59+RFpcL75hHcHYr93y770a+xMhaOfN5u6Sg==","signatures":[{"sig":"MEUCIQDa6ZB3QAuUfh54cNzJyWLDPzpWrKRJ7UamjWER4NHcDgIgTmr4z40ecU3p93mt46Peb+iqzgDT602IUEqsDL5g08o=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":2767},"main":"main.js","gitHead":"0411283eca16c77632964988ea82986645cc0a56","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"di.eugene","email":"ditkovsky.eugene@gmail.com"},"_npmVersion":"10.8.1","description":"","directories":{},"_nodeVersion":"20.16.0","dependencies":{"@langchain/core":"^0.2.28","@dieugene/logger":"^1.0.3","@dieugene/key-object-db":"^1.1.2"},"_hasShrinkwrap":false,"devDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/ydb-chat-history_1.0.2_1726516386291_0.2550951583017227","host":"s3://npm-registry-packages"}},"1.0.3":{"name":"@dialogai/ydb-chat-history","version":"1.0.3","author":{"name":"Eugene Ditkovsky"},"license":"ISC","_id":"@dialogai/ydb-chat-history@1.0.3","maintainers":[{"name":"di.eugene","email":"ditkovsky.eugene@gmail.com"}],"dist":{"shasum":"c9fcfa41b4fd765ad5bf4b040fd284cb0cf3a102","tarball":"https://registry.npmjs.org/@dialogai/ydb-chat-history/-/ydb-chat-history-1.0.3.tgz","fileCount":4,"integrity":"sha512-oGkmthPP1es6usn/JEXohhR5+m+5tLecXEPzSQSvOYU1OaUF8kxDntLRu2fgUvAEnBa0qfVfN49+MBfVnYzdhg==","signatures":[{"sig":"MEQCIEhq2czr+V1yF92NCKxcUUVdEW4c7Ouia9Dy7UtC+la/AiANa/LPafXvaQ6zv6HiAzuQ0k7EWeSGnwQSDgiGYYIuwA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":2786},"main":"main.js","gitHead":"0411283eca16c77632964988ea82986645cc0a56","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"di.eugene","email":"ditkovsky.eugene@gmail.com"},"_npmVersion":"10.8.1","description":"","directories":{},"_nodeVersion":"20.16.0","dependencies":{"@langchain/core":"^0.2.28","@dieugene/logger":"^1.0.3","@dieugene/key-object-db":"^1.1.2"},"_hasShrinkwrap":false,"devDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/ydb-chat-history_1.0.3_1726595094077_0.4760807359583177","host":"s3://npm-registry-packages"}},"1.0.4":{"name":"@dialogai/ydb-chat-history","version":"1.0.4","author":{"name":"Eugene Ditkovsky"},"license":"ISC","_id":"@dialogai/ydb-chat-history@1.0.4","maintainers":[{"name":"di.eugene","email":"ditkovsky.eugene@gmail.com"}],"dist":{"shasum":"c0d4a41cf3f8feab379083fda401db86ea1bb9cd","tarball":"https://registry.npmjs.org/@dialogai/ydb-chat-history/-/ydb-chat-history-1.0.4.tgz","fileCount":4,"integrity":"sha512-21RfMzj1w5N82HCikvOcR0P6yCuBy5Q/3GW0Rhqv8bFALhp3cdeTozuRN2Xwwsqsetwlwd7tKeyLvnIDNAhNow==","signatures":[{"sig":"MEYCIQDbF/QJPEsz8LBjxIdeP5BveZh85JcGxkLb+5hPmYJXxgIhAJ2vKZgVPH/QprOYdGSfTyuDhKaKEcLutPEyrAG8MqWL","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":3082},"main":"main.js","gitHead":"0411283eca16c77632964988ea82986645cc0a56","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"di.eugene","email":"ditkovsky.eugene@gmail.com"},"_npmVersion":"10.8.1","description":"","directories":{},"_nodeVersion":"20.16.0","dependencies":{"@langchain/core":"^0.2.28","@dieugene/logger":"^1.0.3","@dieugene/key-object-db":"^1.1.2"},"_hasShrinkwrap":false,"devDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/ydb-chat-history_1.0.4_1727169432862_0.09794296711993411","host":"s3://npm-registry-packages"}},"1.0.5":{"name":"@dialogai/ydb-chat-history","version":"1.0.5","author":{"name":"Eugene Ditkovsky"},"license":"ISC","_id":"@dialogai/ydb-chat-history@1.0.5","maintainers":[{"name":"di.eugene","email":"ditkovsky.eugene@gmail.com"}],"dist":{"shasum":"70e977f625a1a28e5d27a607c5c70435cd9c9f9b","tarball":"https://registry.npmjs.org/@dialogai/ydb-chat-history/-/ydb-chat-history-1.0.5.tgz","fileCount":4,"integrity":"sha512-LvB7a5iWAdpGsiRs+w/QJ2QzVRJNzaB/C1e+p0w0QwGX9GW1/3/z40kfUMZxZBLdbdHffz39N6eykPe6swva8A==","signatures":[{"sig":"MEUCIDsVbwd05p7KXMQvzPdYWPI6hWYIhZcl0wDMx9NIFrvyAiEA/+eTGQhl8uy4FRxyq2zM7T9qZdgtceOCaLlp8xdVsBk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":3048},"main":"main.js","gitHead":"0411283eca16c77632964988ea82986645cc0a56","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"di.eugene","email":"ditkovsky.eugene@gmail.com"},"_npmVersion":"10.8.1","description":"","directories":{},"_nodeVersion":"20.16.0","dependencies":{"@dieugene/logger":"^1.0.3","@dieugene/key-object-db":"^1.1.2"},"_hasShrinkwrap":false,"devDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/ydb-chat-history_1.0.5_1728819603921_0.48309013102081644","host":"s3://npm-registry-packages"}},"1.0.6":{"name":"@dialogai/ydb-chat-history","version":"1.0.6","author":{"name":"Eugene Ditkovsky"},"license":"ISC","_id":"@dialogai/ydb-chat-history@1.0.6","maintainers":[{"name":"di.eugene","email":"ditkovsky.eugene@gmail.com"}],"dist":{"shasum":"824da15bd15203c15ff5fb3b21ca83fa075791a2","tarball":"https://registry.npmjs.org/@dialogai/ydb-chat-history/-/ydb-chat-history-1.0.6.tgz","fileCount":4,"integrity":"sha512-vIj5aVHnoI2sBF84BgDGAr1lhlFDY5zj+x/rA4LKEkNgsNX+4cODWvJTRJFC7oKxw74NH/nkgWQZ0qHpWjdcAg==","signatures":[{"sig":"MEUCIHvH9FwtOuSxOAjuozPnuhVdzArRyFTd8RVQNEszLA+UAiEAl0BSxyLmwHkegr31aPNOOyWfivuDqtHb2/OC8x7dI5o=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":3137},"main":"main.js","gitHead":"0411283eca16c77632964988ea82986645cc0a56","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"di.eugene","email":"ditkovsky.eugene@gmail.com"},"_npmVersion":"10.8.1","description":"","directories":{},"_nodeVersion":"20.16.0","dependencies":{"@dieugene/logger":"^1.0.3","@dieugene/key-object-db":"^1.1.2"},"_hasShrinkwrap":false,"devDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/ydb-chat-history_1.0.6_1730369293449_0.053303871216474175","host":"s3://npm-registry-packages"}},"1.0.7":{"name":"@dialogai/ydb-chat-history","version":"1.0.7","author":{"name":"Eugene Ditkovsky"},"license":"ISC","_id":"@dialogai/ydb-chat-history@1.0.7","maintainers":[{"name":"di.eugene","email":"ditkovsky.eugene@gmail.com"}],"dist":{"shasum":"684517cbcc1c0aaa62dc53c55c2dbf6d90b70762","tarball":"https://registry.npmjs.org/@dialogai/ydb-chat-history/-/ydb-chat-history-1.0.7.tgz","fileCount":4,"integrity":"sha512-x6/k06/dEmc4qiXKSiJmZtfEZA+1EQMPXKJ/00nSPFpUmW8OQeOD8VQouHPe5XbKsGeeU7YF9wsAfPkg0MQ5Qw==","signatures":[{"sig":"MEUCIQDxhGhiyigPeNZd0msLrhnnC6MU9p2oViwSIdj+OMxrPAIgP2r7HynVrPjgaZL+h7VXmn3zFpuPSBoNt0kyDJ/quI8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":3137},"main":"main.js","gitHead":"0411283eca16c77632964988ea82986645cc0a56","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"di.eugene","email":"ditkovsky.eugene@gmail.com"},"_npmVersion":"10.8.1","description":"","directories":{},"_nodeVersion":"20.16.0","dependencies":{"@dieugene/logger":"^1.0.3","@dieugene/key-object-db":"^1.1.2"},"_hasShrinkwrap":false,"devDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/ydb-chat-history_1.0.7_1730370210818_0.32391170169064454","host":"s3://npm-registry-packages"}},"1.0.8":{"name":"@dialogai/ydb-chat-history","version":"1.0.8","author":{"name":"Eugene Ditkovsky"},"license":"ISC","_id":"@dialogai/ydb-chat-history@1.0.8","maintainers":[{"name":"di.eugene","email":"ditkovsky.eugene@gmail.com"}],"dist":{"shasum":"32f8ace981ed93290fdb6e384f0c7ae3295d7d55","tarball":"https://registry.npmjs.org/@dialogai/ydb-chat-history/-/ydb-chat-history-1.0.8.tgz","fileCount":4,"integrity":"sha512-2HsZgIJ4pCO9N4dp6w8TtQi3bWO5QwtEqz53Prj6euA+RWgB3zVaEME8jTfnbp26X5EsVVVpDLus9KpMdep8kg==","signatures":[{"sig":"MEUCIH8CbSLJR5jxxcSXECpIxHRa5OfX32xwvOxOZEGBVyflAiEAqdGWlzXZqJJAnghCRUUhRQuK6mafRbannbyJfTZaCbM=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":3476},"main":"main.js","gitHead":"0411283eca16c77632964988ea82986645cc0a56","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"di.eugene","email":"ditkovsky.eugene@gmail.com"},"_npmVersion":"10.8.1","description":"","directories":{},"_nodeVersion":"20.16.0","dependencies":{"@dieugene/logger":"^1.0.3","@dieugene/key-object-db":"^1.1.2"},"_hasShrinkwrap":false,"devDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/ydb-chat-history_1.0.8_1739869574205_0.2896193115695367","host":"s3://npm-registry-packages-npm-production"}},"1.0.9":{"name":"@dialogai/ydb-chat-history","version":"1.0.9","author":{"name":"Eugene Ditkovsky"},"license":"ISC","_id":"@dialogai/ydb-chat-history@1.0.9","maintainers":[{"name":"di.eugene","email":"ditkovsky.eugene@gmail.com"}],"dist":{"shasum":"2f65729b4ee38e9a0fefcbd4da34681f80286293","tarball":"https://registry.npmjs.org/@dialogai/ydb-chat-history/-/ydb-chat-history-1.0.9.tgz","fileCount":4,"integrity":"sha512-lvvj2m9fU9nMfDAg2bE+Fz76iON29uoFDL3lkIRRDxhnjYZAQ4G+SvadDWzVW/oLtYPjSZKE9cV0Ta8Nhiat4g==","signatures":[{"sig":"MEQCIEkGJCKvus13rVShxTDRQOi/Ivd/5JlRXIgUnK1c0mLrAiAVFuI94PIe2WaZ5nwqi5RClG3Pj+amrYgoE7op8osrng==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":3398},"main":"main.js","gitHead":"0411283eca16c77632964988ea82986645cc0a56","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"di.eugene","email":"ditkovsky.eugene@gmail.com"},"_npmVersion":"10.8.1","description":"","directories":{},"_nodeVersion":"20.16.0","dependencies":{"@dieugene/logger":"^1.0.3","@dieugene/key-object-db":"^1.1.2"},"_hasShrinkwrap":false,"devDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/ydb-chat-history_1.0.9_1739871339866_0.08955514324603531","host":"s3://npm-registry-packages-npm-production"}},"2.0.0":{"name":"@dialogai/ydb-chat-history","version":"2.0.0","keywords":["ydb","yandex-database","langchain","chat-history","message-history","database","chat","ai","machine-learning","nlp"],"author":{"name":"Eugene Ditkovsky","email":"eugene@dialogai.com"},"license":"ISC","_id":"@dialogai/ydb-chat-history@2.0.0","maintainers":[{"name":"di.eugene","email":"ditkovsky.eugene@gmail.com"}],"homepage":"https://github.com/niviron-ai/ydb-chat-history#readme","bugs":{"url":"https://github.com/niviron-ai/ydb-chat-history/issues"},"dist":{"shasum":"05e201e4fb5756330daaed8d3f75b7170f1e12f4","tarball":"https://registry.npmjs.org/@dialogai/ydb-chat-history/-/ydb-chat-history-2.0.0.tgz","fileCount":4,"integrity":"sha512-/ChMdRQmu3rEvSmynojw2KTzO5jpJUiZl2EVlPbsjhBYqUAyB7dsK2Ub2M/9fgzxWg2i8hRwT4OqCcJ34kgQuA==","signatures":[{"sig":"MEUCIQDeLWsuj96oj4lwMauWUAvibRMGdq5YWWHJ9Tpg/6tXggIgPqrkQ5jyIyzYG7c1VQzCtCAAjPdHi+UpS+GusSq/Q/M=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":9331},"main":"main.js","types":"types.d.ts","engines":{"node":">=16.0.0"},"gitHead":"6395d2ac35dc5e52449b89cfea1d63414c3a095a","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"di.eugene","actor":{"name":"di.eugene","type":"user","email":"ditkovsky.eugene@gmail.com"},"email":"ditkovsky.eugene@gmail.com"},"repository":{"url":"git+https://github.com/niviron-ai/ydb-chat-history.git","type":"git"},"_npmVersion":"10.8.1","description":"YDB (Yandex Database) chat message history implementation for LangChain applications","directories":{},"_nodeVersion":"20.16.0","dependencies":{"@dieugene/logger":"^1.0.3","@dieugene/key-value-db":"^1.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{},"peerDependencies":{"@langchain/core":">=0.1.0"},"_npmOperationalInternal":{"tmp":"tmp/ydb-chat-history_2.0.0_1750417082901_0.10492147947970176","host":"s3://npm-registry-packages-npm-production"}},"2.0.1":{"name":"@dialogai/ydb-chat-history","version":"2.0.1","keywords":["ydb","yandex-database","langchain","chat-history","message-history","database","chat","ai","machine-learning","nlp"],"author":{"name":"Eugene Ditkovsky","email":"eugene@dialogai.com"},"license":"ISC","_id":"@dialogai/ydb-chat-history@2.0.1","maintainers":[{"name":"di.eugene","email":"ditkovsky.eugene@gmail.com"}],"homepage":"https://github.com/niviron-ai/ydb-chat-history#readme","bugs":{"url":"https://github.com/niviron-ai/ydb-chat-history/issues"},"dist":{"shasum":"61e64c7a39093bde818e9fa5bae8510b43601896","tarball":"https://registry.npmjs.org/@dialogai/ydb-chat-history/-/ydb-chat-history-2.0.1.tgz","fileCount":4,"integrity":"sha512-RG2mMdyn5pqE090TBhEkLf3CnddXaZxyN0juzG1INMJJgcmvl80fAPHCpcZogtWL3VJpTJ/XJc+cBDmDHb2otA==","signatures":[{"sig":"MEQCICIpIf8HH7MdYaGCnPAHIIGIB4lpM34vqEvXm3aVXCy9AiARwieiMUiFwOpWtwtPOPT2bpbx44N6UUehhaFAedqxTA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":9278},"main":"main.js","types":"types.d.ts","engines":{"node":">=16.0.0"},"gitHead":"b74172bc7939f3198fb8b0f18435cd07cc845027","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"di.eugene","actor":{"name":"di.eugene","type":"user","email":"ditkovsky.eugene@gmail.com"},"email":"ditkovsky.eugene@gmail.com"},"repository":{"url":"git+https://github.com/niviron-ai/ydb-chat-history.git","type":"git"},"_npmVersion":"10.8.1","description":"YDB (Yandex Database) chat message history implementation for LangChain applications","directories":{},"_nodeVersion":"20.16.0","dependencies":{"@langchain/core":"^0.3.61","@dieugene/logger":"^1.0.3","@dieugene/key-value-db":"^1.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/ydb-chat-history_2.0.1_1750775100117_0.205861042323928","host":"s3://npm-registry-packages-npm-production"}},"2.0.2":{"name":"@dialogai/ydb-chat-history","version":"2.0.2","description":"YDB (Yandex Database) chat message history implementation for LangChain applications","main":"main.js","types":"types.d.ts","keywords":["ydb","yandex-database","langchain","chat-history","message-history","database","chat","ai","machine-learning","nlp"],"author":{"name":"Eugene Ditkovsky","email":"eugene@dialogai.com"},"license":"ISC","repository":{"type":"git","url":"git+https://github.com/niviron-ai/ydb-chat-history.git"},"homepage":"https://github.com/niviron-ai/ydb-chat-history#readme","bugs":{"url":"https://github.com/niviron-ai/ydb-chat-history/issues"},"engines":{"node":">=16.0.0"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"dependencies":{"@dieugene/key-value-db":"^1.0.0","@dieugene/logger":"^1.0.3","@langchain/core":"^0.3.61"},"publishConfig":{"access":"public"},"_id":"@dialogai/ydb-chat-history@2.0.2","gitHead":"a1444fa74fa8ead7baea35a9eb49cc20d9b3d3f9","_nodeVersion":"20.16.0","_npmVersion":"10.8.1","dist":{"integrity":"sha512-gfvqqvA+AoERX8fXaH9Tfx3+ePQxN7siQOMiUc/PetIEl//3vYi3ioDT6PEG3bxxTGXF/UWPTTklneVNpP+Y9g==","shasum":"161154636c07df2f055379dc9b2e5e2aee5b7f50","tarball":"https://registry.npmjs.org/@dialogai/ydb-chat-history/-/ydb-chat-history-2.0.2.tgz","fileCount":4,"unpackedSize":12324,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCICBhMLRtJYiHchDYXyRkNb+rFjoNs9h6OgcAAlJHNUXzAiEAzH49nuK5IIrVG3oKd3M6VeoLSjgVa+Jd8SnSiPppNlM="}]},"_npmUser":{"name":"di.eugene","email":"ditkovsky.eugene@gmail.com","actor":{"name":"di.eugene","email":"ditkovsky.eugene@gmail.com","type":"user"}},"directories":{},"maintainers":[{"name":"di.eugene","email":"ditkovsky.eugene@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/ydb-chat-history_2.0.2_1750776799928_0.25809633620462535"},"_hasShrinkwrap":false}},"time":{"created":"2024-09-08T13:15:05.525Z","modified":"2025-06-24T14:53:20.289Z","1.0.0":"2024-09-08T13:15:05.798Z","1.0.1":"2024-09-08T13:20:00.842Z","1.0.2":"2024-09-16T19:53:06.419Z","1.0.3":"2024-09-17T17:44:54.228Z","1.0.4":"2024-09-24T09:17:13.025Z","1.0.5":"2024-10-13T11:40:04.184Z","1.0.6":"2024-10-31T10:08:13.648Z","1.0.7":"2024-10-31T10:23:30.994Z","1.0.8":"2025-02-18T09:06:14.385Z","1.0.9":"2025-02-18T09:35:40.022Z","2.0.0":"2025-06-20T10:58:03.072Z","2.0.1":"2025-06-24T14:25:00.328Z","2.0.2":"2025-06-24T14:53:20.100Z"},"bugs":{"url":"https://github.com/niviron-ai/ydb-chat-history/issues"},"author":{"name":"Eugene Ditkovsky","email":"eugene@dialogai.com"},"license":"ISC","homepage":"https://github.com/niviron-ai/ydb-chat-history#readme","keywords":["ydb","yandex-database","langchain","chat-history","message-history","database","chat","ai","machine-learning","nlp"],"repository":{"type":"git","url":"git+https://github.com/niviron-ai/ydb-chat-history.git"},"description":"YDB (Yandex Database) chat message history implementation for LangChain applications","maintainers":[{"name":"di.eugene","email":"ditkovsky.eugene@gmail.com"}],"readme":"# @dialogai/ydb-chat-history\n\nYDB (Yandex Database) chat message history implementation for LangChain applications.\n\n## Installation\n\n```bash\nnpm install @dialogai/ydb-chat-history\n```\n\n## Description\n\nThis module provides a chat message history implementation for LangChain that uses YDB (Yandex Database) as the storage backend. It extends the `BaseListChatMessageHistory` class from `@langchain/core/chat_history` and provides methods for storing, retrieving, and managing chat messages in YDB.\n\n## Features\n\n- 🗂️ Store and retrieve chat messages in YDB\n- 🔒 Read-only mode support\n- 💾 Backup and restore functionality\n- 🔄 Compatible with LangChain ecosystem\n- 📝 TypeScript support\n- ⚡ Efficient message handling\n\n## Usage\n\n```javascript\nconst { YdbChatMessageHistory } = require('@dialogai/ydb-chat-history');\nconst { HumanMessage, AIMessage } = require('@langchain/core/messages');\n\n// Option 1: Direct database path specification\nconst chatHistory1 = new YdbChatMessageHistory({\n  sessionId: 'user-session-123',\n  database: '/ru-central1/b1g..../etn...', // YDB database path\n  table_name: 'chat_history_db', // optional, defaults to 'chat_history_db'\n  readOnly: false // optional, defaults to false\n});\n\n// Option 2: Using environment variables\n// Set CHAT_HISTORY_DB_ADDRESS or YDB_ADDRESS environment variable\nconst chatHistory2 = new YdbChatMessageHistory({\n  sessionId: 'user-session-456'\n  // database path will be taken from environment variables\n});\n\n// Add a message using LangChain BaseMessage objects\nawait chatHistory1.addMessage(new HumanMessage('Hello, how are you?'));\n\n// Add AI response\nawait chatHistory1.addMessage(new AIMessage('I am doing well, thank you!'));\n\n// Get all messages (returns BaseMessage[] array)\nconst messages = await chatHistory1.getMessages();\nconsole.log(messages);\n\n// Add multiple messages\nawait chatHistory1.addMessages([\n  new HumanMessage('First message'),\n  new AIMessage('Second message')\n]);\n\n// Create backup\nawait chatHistory1.backup();\n\n// Restore from backup\nawait chatHistory1.restore();\n\n// Clear all messages\nawait chatHistory1.clear();\n```\n\n## Configuration\n\nThe constructor accepts the following options:\n\n- `sessionId` (required): Unique identifier for the chat session\n- `database` (optional): YDB database path (e.g., `/ru-central1/b1g..../etn...`). See database connection priority below\n- `table_name` (optional): Name of the table to store chat history. Defaults to `chat_history_db`\n- `readOnly` (optional): If true, prevents adding new messages. Defaults to false\n\n### Database Connection Priority\n\nThe YDB database address is determined in the following priority order:\n\n1. **Constructor `database` field** - Direct specification in the constructor\n2. **`CHAT_HISTORY_DB_ADDRESS` environment variable** - Fallback environment variable\n3. **`YDB_ADDRESS` environment variable** - Global YDB address environment variable\n4. **Error** - If none of the above are specified, an error will occur\n\n### Database Requirements\n\nThe target YDB database must contain a table for storing chat message history. By default, the table name is `chat_history_db`, but it can be customized using the `table_name` parameter in the constructor.\n\n## Environment Variables\n\n- `CHAT_HISTORY_DB_ADDRESS`: YDB database address (higher priority)\n- `YDB_ADDRESS`: Global YDB database address (lower priority)\n\n## Dependencies\n\n- `@dieugene/key-value-db`: YDB key-value database client\n- `@langchain/core`: LangChain core library (peer dependency)\n\n## License\n\nISC\n\n## Author\n\nEugene Ditkovsky\n\n## Contributing\n\nIssues and pull requests are welcome on [GitHub](https://github.com/niviron-ai/ydb-chat-history).\n \n","readmeFilename":"README.md"}