{"_id":"@ank1015/llm-sdk","_rev":"8-94f6c39bcba2e7804f0571e0081e3692","name":"@ank1015/llm-sdk","dist-tags":{"latest":"0.0.8"},"versions":{"0.0.1":{"name":"@ank1015/llm-sdk","version":"0.0.1","keywords":["llm","sdk","ai","anthropic","openai","google","gemini"],"license":"MIT","_id":"@ank1015/llm-sdk@0.0.1","maintainers":[{"name":"ananya150","email":"ananyakhandelwal60@gmail.com"}],"dist":{"shasum":"59bb378ab01c20eb34c902185fed9ebc399eab01","tarball":"https://registry.npmjs.org/@ank1015/llm-sdk/-/llm-sdk-0.0.1.tgz","fileCount":81,"integrity":"sha512-RIMVbEyH8FgK51aTYq2mbQ4RKTk/bdA9DqbTLr2p2b1blBzEv+VM3bOLNGp8eQLHjSxAaqsDrXA0FgiwiCBcZQ==","signatures":[{"sig":"MEYCIQDMFUMUWEFTelxgocGbX1II2Wddu5EgWeyiSHaVetzcLwIhAO67JbTXXULxWFTCGy/2zBaztjHlEgpanXQ5QiGkzd6i","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":216166},"main":"./dist/index.js","type":"module","_from":"file:ank1015-llm-sdk-0.0.1.tgz","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"dev":"tsc --watch","lint":"echo 'No linter configured yet'","test":"vitest run","build":"tsc","clean":"rm -rf dist *.tsbuildinfo","test:unit":"vitest run tests/unit","typecheck":"tsc --noEmit","test:watch":"vitest","test:integration":"vitest run tests/integration"},"_npmUser":{"name":"ananya150","email":"ananyakhandelwal60@gmail.com"},"_resolved":"/private/var/folders/1n/t7lbn2t179zg_xjbmn62ypmr0000gn/T/99ff265898fbddc05b7739d76c1a32f8/ank1015-llm-sdk-0.0.1.tgz","_integrity":"sha512-RIMVbEyH8FgK51aTYq2mbQ4RKTk/bdA9DqbTLr2p2b1blBzEv+VM3bOLNGp8eQLHjSxAaqsDrXA0FgiwiCBcZQ==","_npmVersion":"11.6.2","description":"Unified SDK for LLM interactions with multiple providers","directories":{},"_nodeVersion":"25.2.1","dependencies":{"@ank1015/llm-core":"^0.0.1","@ank1015/llm-types":"^0.0.1"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^2.1.0","@sinclair/typebox":"^0.34.48","@ank1015/llm-sdk-adapters":"^0.0.1"},"_npmOperationalInternal":{"tmp":"tmp/llm-sdk_0.0.1_1772789894827_0.7627229619942364","host":"s3://npm-registry-packages-npm-production"}},"0.0.2":{"name":"@ank1015/llm-sdk","version":"0.0.2","keywords":["llm","sdk","ai","agents","conversations","sessions","adapters","typescript"],"license":"MIT","_id":"@ank1015/llm-sdk@0.0.2","maintainers":[{"name":"ananya150","email":"ananyakhandelwal60@gmail.com"}],"homepage":"https://github.com/ank1015/llm/tree/main/packages/sdk","bugs":{"url":"https://github.com/ank1015/llm/issues"},"dist":{"shasum":"00f9e485da8656a77204e9f4de5807da5fb0be86","tarball":"https://registry.npmjs.org/@ank1015/llm-sdk/-/llm-sdk-0.0.2.tgz","fileCount":44,"integrity":"sha512-TVIl7Y0U486Nd1jdT3nD+O10L10B8gZFR/hwUnkpsV6qVwIfAPywxrWNx+zVXlRDCqR4d4pUEFjTDWP5sOT+DQ==","signatures":[{"sig":"MEQCIFXcCK1mmG6UQhhQoa++2plu6FCTUaRphHMqgUqJkGncAiByt5sMeWqmWEnwO0bLF11r58VMuuL+JDgtm/nLKmSMXw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":80730},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"0b414a96ec123a049c57ee7f62193cf5a4bdb567","scripts":{"dev":"tsc --watch","lint":"eslint src tests vitest.config.ts","test":"pnpm run test:unit && pnpm run test:integration","build":"rm -rf dist *.tsbuildinfo && tsc","clean":"rm -rf dist coverage *.tsbuildinfo","prepack":"pnpm run build","test:unit":"vitest run tests/unit","typecheck":"tsc --noEmit","test:watch":"vitest","test:coverage":"vitest run tests/unit --coverage","test:integration":"vitest run tests/integration"},"_npmUser":{"name":"ananya150","email":"ananyakhandelwal60@gmail.com"},"repository":{"url":"git+https://github.com/ank1015/llm.git","type":"git","directory":"packages/sdk"},"_npmVersion":"11.6.2","description":"Opinionated SDK layer over @ank1015/llm-core with credential resolution, conversations, and session helpers","directories":{},"_nodeVersion":"25.2.1","dependencies":{"@ank1015/llm-core":"workspace:^","@ank1015/llm-types":"workspace:^"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^2.1.0","@sinclair/typebox":"^0.34.48"},"_npmOperationalInternal":{"tmp":"tmp/llm-sdk_0.0.2_1773555750182_0.8460033379585536","host":"s3://npm-registry-packages-npm-production"}},"0.0.3":{"name":"@ank1015/llm-sdk","version":"0.0.3","keywords":["llm","sdk","ai","agents","conversations","sessions","adapters","typescript"],"license":"MIT","_id":"@ank1015/llm-sdk@0.0.3","maintainers":[{"name":"ananya150","email":"ananyakhandelwal60@gmail.com"}],"homepage":"https://github.com/ank1015/llm/tree/main/packages/sdk","bugs":{"url":"https://github.com/ank1015/llm/issues"},"dist":{"shasum":"ebe530b42eb81b06099ee31c6490ef62593bd526","tarball":"https://registry.npmjs.org/@ank1015/llm-sdk/-/llm-sdk-0.0.3.tgz","fileCount":44,"integrity":"sha512-0ZozLIIKQMY9gjO2Wn/Pw+OcnkcFBid9qtd+2tfQADxhNA6n5OkPgYK0+1GA0yaghPYgXUpacheJq4I3BcTyKQ==","signatures":[{"sig":"MEYCIQCk/N+EaWxJfyHUm6bkR8xjcgWGKF3j/gVr5XZ6KtnmXwIhAKZN3vfl5rixXIpl/+FK0+VQzpih1ypnILknvqaRxZZU","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":83198},"main":"./dist/index.js","type":"module","_from":"file:ank1015-llm-sdk-0.0.3.tgz","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"dev":"tsc --watch","lint":"eslint src tests vitest.config.ts","test":"pnpm run test:unit && pnpm run test:integration","build":"rm -rf dist *.tsbuildinfo && tsc","clean":"rm -rf dist coverage *.tsbuildinfo","test:unit":"vitest run tests/unit","typecheck":"tsc --noEmit","test:watch":"vitest","test:coverage":"vitest run tests/unit --coverage","test:integration":"vitest run tests/integration"},"_npmUser":{"name":"ananya150","email":"ananyakhandelwal60@gmail.com"},"_resolved":"/private/var/folders/1n/t7lbn2t179zg_xjbmn62ypmr0000gn/T/02c0f4bc6eac11f726bbb2b09c5a3bbb/ank1015-llm-sdk-0.0.3.tgz","_integrity":"sha512-0ZozLIIKQMY9gjO2Wn/Pw+OcnkcFBid9qtd+2tfQADxhNA6n5OkPgYK0+1GA0yaghPYgXUpacheJq4I3BcTyKQ==","repository":{"url":"git+https://github.com/ank1015/llm.git","type":"git","directory":"packages/sdk"},"_npmVersion":"11.6.2","description":"Opinionated SDK layer over @ank1015/llm-core with credential resolution, conversations, and session helpers","directories":{},"_nodeVersion":"25.2.1","dependencies":{"@ank1015/llm-core":"^0.0.3","@ank1015/llm-types":"^0.0.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^2.1.0","@sinclair/typebox":"^0.34.48"},"_npmOperationalInternal":{"tmp":"tmp/llm-sdk_0.0.3_1774526973827_0.3616455259948428","host":"s3://npm-registry-packages-npm-production"}},"0.0.4":{"name":"@ank1015/llm-sdk","version":"0.0.4","keywords":["llm","sdk","ai","agents","conversations","sessions","adapters","typescript"],"license":"MIT","_id":"@ank1015/llm-sdk@0.0.4","maintainers":[{"name":"ananya150","email":"ananyakhandelwal60@gmail.com"}],"homepage":"https://github.com/ank1015/llm/tree/main/packages/sdk","bugs":{"url":"https://github.com/ank1015/llm/issues"},"dist":{"shasum":"22b10de96033af871c50884f5196cb162997fdb0","tarball":"https://registry.npmjs.org/@ank1015/llm-sdk/-/llm-sdk-0.0.4.tgz","fileCount":49,"integrity":"sha512-+eVrbS7g2W7csZJQ6U2v0Yg7uos61uQ0oncB1GDlfS7S/kJ6Og8uxLCc0L/CxdsHV7b7CPV2Q39H+73es51nOA==","signatures":[{"sig":"MEQCIHg/KlReW4AJjylCTcRfmcBtx5DD26/Hgekp8idlBJ11AiAqaoGt+6n8BGdhudEJ7NdZgewj/SXZiLbIynBDR+09WQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":209082},"main":"./dist/index.js","type":"module","_from":"file:ank1015-llm-sdk-0.0.4.tgz","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./llm":{"types":"./dist/llm.d.ts","import":"./dist/llm.js"},"./keys":{"types":"./dist/keys.d.ts","import":"./dist/keys.js"},"./tool":{"types":"./dist/tool.d.ts","import":"./dist/tool.js"},"./agent":{"types":"./dist/agent.d.ts","import":"./dist/agent.js"},"./config":{"types":"./dist/config.d.ts","import":"./dist/config.js"},"./session":{"types":"./dist/session.d.ts","import":"./dist/session.js"},"./messages":{"types":"./dist/messages.d.ts","import":"./dist/messages.js"},"./response":{"types":"./dist/response.d.ts","import":"./dist/response.js"},"./model-input":{"types":"./dist/model-input.d.ts","import":"./dist/model-input.js"}},"scripts":{"dev":"tsc --watch","lint":"eslint src tests vitest.config.ts","test":"pnpm run test:unit && pnpm run test:integration","build":"node ../../scripts/remove-paths.mjs dist --tsbuildinfo && tsc","clean":"node ../../scripts/remove-paths.mjs dist coverage --tsbuildinfo","test:unit":"vitest run tests/unit","typecheck":"tsc --noEmit","test:watch":"vitest","release:check":"pnpm run build && pnpm run typecheck && pnpm run lint && pnpm run test:unit && pnpm run test:coverage","test:coverage":"vitest run tests/unit --coverage","test:integration":"vitest run tests/integration"},"_npmUser":{"name":"ananya150","email":"ananyakhandelwal60@gmail.com"},"_resolved":"/private/var/folders/1n/t7lbn2t179zg_xjbmn62ypmr0000gn/T/31ccacd7f4ce4f8734111c30fa56d996/ank1015-llm-sdk-0.0.4.tgz","_integrity":"sha512-+eVrbS7g2W7csZJQ6U2v0Yg7uos61uQ0oncB1GDlfS7S/kJ6Og8uxLCc0L/CxdsHV7b7CPV2Q39H+73es51nOA==","repository":{"url":"git+https://github.com/ank1015/llm.git","type":"git","directory":"packages/sdk"},"_npmVersion":"11.6.2","description":"Opinionated SDK layer over @ank1015/llm-core with credential resolution, conversations, and session helpers","directories":{},"_nodeVersion":"25.2.1","dependencies":{"@ank1015/llm-core":"^0.0.5","@sinclair/typebox":"^0.34.48","@modelcontextprotocol/sdk":"^1.25.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^2.1.0","@types/node":"^24.6.0","@vitest/coverage-v8":"^2.1.0"},"_npmOperationalInternal":{"tmp":"tmp/llm-sdk_0.0.4_1775150786709_0.8417238638802287","host":"s3://npm-registry-packages-npm-production"}},"0.0.5":{"name":"@ank1015/llm-sdk","version":"0.0.5","keywords":["llm","sdk","ai","agents","conversations","sessions","adapters","typescript"],"license":"MIT","_id":"@ank1015/llm-sdk@0.0.5","maintainers":[{"name":"ananya150","email":"ananyakhandelwal60@gmail.com"}],"homepage":"https://github.com/ank1015/llm/tree/main/packages/sdk","bugs":{"url":"https://github.com/ank1015/llm/issues"},"dist":{"shasum":"13c19d40f2690085c3fd5ed6918cf608b6b31791","tarball":"https://registry.npmjs.org/@ank1015/llm-sdk/-/llm-sdk-0.0.5.tgz","fileCount":54,"integrity":"sha512-KL3mgU22t3kz88fdWiAlNNd3x8T4SQxPtOUicUrkROLq9NAtQvOdhXckYBDnVEsXL7Q9sskAyIvnmcdyIwoGFQ==","signatures":[{"sig":"MEUCICVrftms8FBYakUwdivv3YYJSsZwgQoPi4UzMZCXl/QQAiEA9fJPCSlq2vxtYJ62zj39cmqWyCvqGsDPH5wykNwD8ow=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":247968},"main":"./dist/index.js","type":"module","_from":"file:ank1015-llm-sdk-0.0.5.tgz","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./llm":{"types":"./dist/llm.d.ts","import":"./dist/llm.js"},"./keys":{"types":"./dist/keys.d.ts","import":"./dist/keys.js"},"./tool":{"types":"./dist/tool.d.ts","import":"./dist/tool.js"},"./agent":{"types":"./dist/agent.d.ts","import":"./dist/agent.js"},"./image":{"types":"./dist/image.d.ts","import":"./dist/image.js"},"./config":{"types":"./dist/config.d.ts","import":"./dist/config.js"},"./session":{"types":"./dist/session.d.ts","import":"./dist/session.js"},"./messages":{"types":"./dist/messages.d.ts","import":"./dist/messages.js"},"./response":{"types":"./dist/response.d.ts","import":"./dist/response.js"},"./model-input":{"types":"./dist/model-input.d.ts","import":"./dist/model-input.js"}},"scripts":{"dev":"tsc --watch","lint":"eslint src tests vitest.config.ts","test":"pnpm run test:unit && pnpm run test:integration","build":"node ../../scripts/remove-paths.mjs dist --tsbuildinfo && tsc","clean":"node ../../scripts/remove-paths.mjs dist coverage --tsbuildinfo","test:unit":"vitest run tests/unit","typecheck":"tsc --noEmit","test:watch":"vitest","release:check":"pnpm run build && pnpm run typecheck && pnpm run lint && pnpm run test:unit && pnpm run test:coverage","test:coverage":"vitest run tests/unit --coverage","test:integration":"vitest run tests/integration"},"_npmUser":{"name":"ananya150","email":"ananyakhandelwal60@gmail.com"},"_resolved":"/private/var/folders/1n/t7lbn2t179zg_xjbmn62ypmr0000gn/T/efa6c65e2a89f58b7557675e58ac36ad/ank1015-llm-sdk-0.0.5.tgz","_integrity":"sha512-KL3mgU22t3kz88fdWiAlNNd3x8T4SQxPtOUicUrkROLq9NAtQvOdhXckYBDnVEsXL7Q9sskAyIvnmcdyIwoGFQ==","repository":{"url":"git+https://github.com/ank1015/llm.git","type":"git","directory":"packages/sdk"},"_npmVersion":"11.6.2","description":"Opinionated SDK layer over @ank1015/llm-core with credential resolution, conversations, and session helpers","directories":{},"_nodeVersion":"25.2.1","dependencies":{"@ank1015/llm-core":"^0.0.6","@sinclair/typebox":"^0.34.48","@modelcontextprotocol/sdk":"^1.25.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^2.1.0","@types/node":"^24.6.0","@vitest/coverage-v8":"^2.1.0"},"_npmOperationalInternal":{"tmp":"tmp/llm-sdk_0.0.5_1776068819290_0.9018659403179576","host":"s3://npm-registry-packages-npm-production"}},"0.0.6":{"name":"@ank1015/llm-sdk","version":"0.0.6","keywords":["llm","sdk","ai","agents","conversations","sessions","adapters","typescript"],"license":"MIT","_id":"@ank1015/llm-sdk@0.0.6","maintainers":[{"name":"ananya150","email":"ananyakhandelwal60@gmail.com"}],"homepage":"https://github.com/ank1015/llm/tree/main/packages/sdk","bugs":{"url":"https://github.com/ank1015/llm/issues"},"dist":{"shasum":"593f4bda983061a54d32784e74627b7eb00b4a06","tarball":"https://registry.npmjs.org/@ank1015/llm-sdk/-/llm-sdk-0.0.6.tgz","fileCount":54,"integrity":"sha512-kD6pnL9zQBCFzKxY3fiJGqtlJVfrmDIWtV9RqPpMIKjaOpi47IPmFt5X3D9fy9/70QvMv6KIuyXCpP4Al7K5Aw==","signatures":[{"sig":"MEUCIDHaTb6tZRfifdAqW/bax3TUAACru3sm8jtPT5PIJuenAiEAzJ1w5QksGGyTVFcJjgREt3PgKhbtkBXJGYrkrL6eKqo=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":247968},"main":"./dist/index.js","type":"module","_from":"file:/tmp/llm-runtime-packs/ank1015-llm-sdk-0.0.6.tgz","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./llm":{"types":"./dist/llm.d.ts","import":"./dist/llm.js"},"./keys":{"types":"./dist/keys.d.ts","import":"./dist/keys.js"},"./tool":{"types":"./dist/tool.d.ts","import":"./dist/tool.js"},"./agent":{"types":"./dist/agent.d.ts","import":"./dist/agent.js"},"./image":{"types":"./dist/image.d.ts","import":"./dist/image.js"},"./config":{"types":"./dist/config.d.ts","import":"./dist/config.js"},"./session":{"types":"./dist/session.d.ts","import":"./dist/session.js"},"./messages":{"types":"./dist/messages.d.ts","import":"./dist/messages.js"},"./response":{"types":"./dist/response.d.ts","import":"./dist/response.js"},"./model-input":{"types":"./dist/model-input.d.ts","import":"./dist/model-input.js"}},"scripts":{"dev":"tsc --watch","lint":"eslint src tests vitest.config.ts","test":"pnpm run test:unit && pnpm run test:integration","build":"node ../../scripts/remove-paths.mjs dist --tsbuildinfo && tsc","clean":"node ../../scripts/remove-paths.mjs dist coverage --tsbuildinfo","test:unit":"vitest run tests/unit","typecheck":"tsc --noEmit","test:watch":"vitest","release:check":"pnpm run build && pnpm run typecheck && pnpm run lint && pnpm run test:unit && pnpm run test:coverage","test:coverage":"vitest run tests/unit --coverage","test:integration":"vitest run tests/integration"},"_npmUser":{"name":"ananya150","email":"ananyakhandelwal60@gmail.com"},"_resolved":"/tmp/llm-runtime-packs/ank1015-llm-sdk-0.0.6.tgz","_integrity":"sha512-kD6pnL9zQBCFzKxY3fiJGqtlJVfrmDIWtV9RqPpMIKjaOpi47IPmFt5X3D9fy9/70QvMv6KIuyXCpP4Al7K5Aw==","repository":{"url":"git+https://github.com/ank1015/llm.git","type":"git","directory":"packages/sdk"},"_npmVersion":"11.6.2","description":"Opinionated SDK layer over @ank1015/llm-core with credential resolution, conversations, and session helpers","directories":{},"_nodeVersion":"25.2.1","dependencies":{"@ank1015/llm-core":"^0.0.7","@sinclair/typebox":"^0.34.48","@modelcontextprotocol/sdk":"^1.25.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^2.1.0","@types/node":"^24.6.0","@vitest/coverage-v8":"^2.1.0"},"_npmOperationalInternal":{"tmp":"tmp/llm-sdk_0.0.6_1776280618427_0.060061932413733254","host":"s3://npm-registry-packages-npm-production"}},"0.0.7":{"name":"@ank1015/llm-sdk","version":"0.0.7","keywords":["llm","sdk","ai","agents","conversations","sessions","adapters","typescript"],"license":"MIT","_id":"@ank1015/llm-sdk@0.0.7","maintainers":[{"name":"ananya150","email":"ananyakhandelwal60@gmail.com"}],"homepage":"https://github.com/ank1015/llm/tree/main/packages/sdk","bugs":{"url":"https://github.com/ank1015/llm/issues"},"dist":{"shasum":"6c716699e2ffced1afe7e50239f716d15b72f234","tarball":"https://registry.npmjs.org/@ank1015/llm-sdk/-/llm-sdk-0.0.7.tgz","fileCount":58,"integrity":"sha512-TAdF1Ac5EwqXtTc/41dQ+5C1AwU4ow3cxPbAneiD/BqN/miJi1fHOnPrA0VnpWcEXYnqcVhpY91QhhO/Ekxdyg==","signatures":[{"sig":"MEYCIQD+HFE4p/0xYvL0fWOGrnsjOi+RJEmqwoyQXcRO+QiL2QIhAKeVq/TcPsYNRA4gAW5W1FYqXPkJOr3nfrgJPSZWK3tT","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":250804},"main":"./dist/index.js","type":"module","_from":"file:ank1015-llm-sdk-0.0.7.tgz","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./llm":{"types":"./dist/llm.d.ts","import":"./dist/llm.js"},"./keys":{"types":"./dist/keys.d.ts","import":"./dist/keys.js"},"./tool":{"types":"./dist/tool.d.ts","import":"./dist/tool.js"},"./agent":{"types":"./dist/agent.d.ts","import":"./dist/agent.js"},"./image":{"types":"./dist/image.d.ts","import":"./dist/image.js"},"./config":{"types":"./dist/config.d.ts","import":"./dist/config.js"},"./session":{"types":"./dist/session.d.ts","import":"./dist/session.js"},"./messages":{"types":"./dist/messages.d.ts","import":"./dist/messages.js"},"./response":{"types":"./dist/response.d.ts","import":"./dist/response.js"},"./model-input":{"types":"./dist/model-input.d.ts","import":"./dist/model-input.js"}},"scripts":{"dev":"tsc --watch","lint":"eslint src tests vitest.config.ts","test":"pnpm run test:unit && pnpm run test:integration","build":"node ../../scripts/remove-paths.mjs dist --tsbuildinfo && tsc","clean":"node ../../scripts/remove-paths.mjs dist coverage --tsbuildinfo","test:unit":"vitest run tests/unit","typecheck":"tsc --noEmit","test:watch":"vitest","release:check":"pnpm run build && pnpm run typecheck && pnpm run lint && pnpm run test:unit && pnpm run test:coverage","test:coverage":"vitest run tests/unit --coverage","test:integration":"vitest run tests/integration"},"_npmUser":{"name":"ananya150","email":"ananyakhandelwal60@gmail.com"},"_resolved":"/private/var/folders/1n/t7lbn2t179zg_xjbmn62ypmr0000gn/T/111e0cce5a0c05099ddc9ea97a3cbfdb/ank1015-llm-sdk-0.0.7.tgz","_integrity":"sha512-TAdF1Ac5EwqXtTc/41dQ+5C1AwU4ow3cxPbAneiD/BqN/miJi1fHOnPrA0VnpWcEXYnqcVhpY91QhhO/Ekxdyg==","repository":{"url":"git+https://github.com/ank1015/llm.git","type":"git","directory":"packages/sdk"},"_npmVersion":"11.6.2","description":"Opinionated SDK layer over @ank1015/llm-core with credential resolution, conversations, and session helpers","directories":{},"_nodeVersion":"25.2.1","dependencies":{"@ank1015/llm-core":"^0.0.8","@sinclair/typebox":"^0.34.48","@modelcontextprotocol/sdk":"^1.25.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^2.1.0","@types/node":"^24.6.0","@vitest/coverage-v8":"^2.1.0"},"_npmOperationalInternal":{"tmp":"tmp/llm-sdk_0.0.7_1776331424686_0.44185793870125956","host":"s3://npm-registry-packages-npm-production"}},"0.0.8":{"name":"@ank1015/llm-sdk","version":"0.0.8","description":"Opinionated SDK layer over @ank1015/llm-core with credential resolution, conversations, and session helpers","type":"module","main":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./agent":{"types":"./dist/agent.d.ts","import":"./dist/agent.js"},"./config":{"types":"./dist/config.d.ts","import":"./dist/config.js"},"./image":{"types":"./dist/image.d.ts","import":"./dist/image.js"},"./keys":{"types":"./dist/keys.d.ts","import":"./dist/keys.js"},"./llm":{"types":"./dist/llm.d.ts","import":"./dist/llm.js"},"./messages":{"types":"./dist/messages.d.ts","import":"./dist/messages.js"},"./model-input":{"types":"./dist/model-input.d.ts","import":"./dist/model-input.js"},"./response":{"types":"./dist/response.d.ts","import":"./dist/response.js"},"./session":{"types":"./dist/session.d.ts","import":"./dist/session.js"},"./tool":{"types":"./dist/tool.d.ts","import":"./dist/tool.js"}},"keywords":["llm","sdk","ai","agents","conversations","sessions","adapters","typescript"],"license":"MIT","repository":{"type":"git","url":"git+https://github.com/ank1015/llm.git","directory":"packages/sdk"},"homepage":"https://github.com/ank1015/llm/tree/main/packages/sdk","bugs":{"url":"https://github.com/ank1015/llm/issues"},"publishConfig":{"access":"public"},"dependencies":{"@modelcontextprotocol/sdk":"^1.25.2","@sinclair/typebox":"^0.34.48","@ank1015/llm-core":"^0.0.9"},"devDependencies":{"@types/node":"^24.6.0","@vitest/coverage-v8":"^2.1.0","vitest":"^2.1.0"},"scripts":{"build":"node ../../scripts/remove-paths.mjs dist --tsbuildinfo && tsc","dev":"tsc --watch","test":"pnpm run test:unit && pnpm run test:integration","test:watch":"vitest","test:unit":"vitest run tests/unit","test:integration":"vitest run tests/integration","test:coverage":"vitest run tests/unit --coverage","typecheck":"tsc --noEmit","lint":"eslint src tests vitest.config.ts","release:check":"pnpm run build && pnpm run typecheck && pnpm run lint && pnpm run test:unit && pnpm run test:coverage","clean":"node ../../scripts/remove-paths.mjs dist coverage --tsbuildinfo"},"_id":"@ank1015/llm-sdk@0.0.8","_integrity":"sha512-N7sbpA2IVr0TZ8EG7bIJbpEgoeRSIiEWR/Q3xlc+Mhtebtp3a32FXRWqGfQYSXzV11N7klr9txC4tej81AYxPQ==","_resolved":"/private/var/folders/1n/t7lbn2t179zg_xjbmn62ypmr0000gn/T/f127b15e09ef170bbdab9c5fdaa6b3f3/ank1015-llm-sdk-0.0.8.tgz","_from":"file:ank1015-llm-sdk-0.0.8.tgz","_nodeVersion":"25.2.1","_npmVersion":"11.6.2","dist":{"integrity":"sha512-N7sbpA2IVr0TZ8EG7bIJbpEgoeRSIiEWR/Q3xlc+Mhtebtp3a32FXRWqGfQYSXzV11N7klr9txC4tej81AYxPQ==","shasum":"b0844f69c32cd8b9f2517352f3c569a18d1a4795","tarball":"https://registry.npmjs.org/@ank1015/llm-sdk/-/llm-sdk-0.0.8.tgz","fileCount":62,"unpackedSize":288332,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCPzvkprfvC0/siP8KpWyo6LYCZ2lQ9alsLglDWy+p1AQIhAOwH0kvBgiuuRvVQBZ9DrvY7EtuSPOe0mpd2pJTXNu0I"}]},"_npmUser":{"name":"ananya150","email":"ananyakhandelwal60@gmail.com"},"directories":{},"maintainers":[{"name":"ananya150","email":"ananyakhandelwal60@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/llm-sdk_0.0.8_1778004686916_0.7001390000001835"},"_hasShrinkwrap":false}},"time":{"created":"2026-03-06T09:38:14.754Z","modified":"2026-05-05T18:11:27.273Z","0.0.1":"2026-03-06T09:38:15.025Z","0.0.2":"2026-03-15T06:22:30.353Z","0.0.3":"2026-03-26T12:09:33.995Z","0.0.4":"2026-04-02T17:26:26.886Z","0.0.5":"2026-04-13T08:26:59.454Z","0.0.6":"2026-04-15T19:16:58.571Z","0.0.7":"2026-04-16T09:23:44.839Z","0.0.8":"2026-05-05T18:11:27.090Z"},"bugs":{"url":"https://github.com/ank1015/llm/issues"},"license":"MIT","homepage":"https://github.com/ank1015/llm/tree/main/packages/sdk","keywords":["llm","sdk","ai","agents","conversations","sessions","adapters","typescript"],"repository":{"type":"git","url":"git+https://github.com/ank1015/llm.git","directory":"packages/sdk"},"description":"Opinionated SDK layer over @ank1015/llm-core with credential resolution, conversations, and session helpers","maintainers":[{"name":"ananya150","email":"ananyakhandelwal60@gmail.com"}],"readme":"# @ank1015/llm-sdk\n\nOpinionated SDK over `@ank1015/llm-core` with curated chat model IDs, gateway-backed `llm()`/`agent()`/`image()` helpers, direct-key opt-out for chat models, and JSONL session tooling.\n\n## What You Get\n\n- `llm()` for one-off model calls through the configured gateway and curated `modelId` strings\n- `agent()` for multi-turn runs with tool execution and persisted session history\n- `image()` for generation and editing with saved output files\n- Helpers like `userMessage()`, `toolResultMessage()`, `getText()`, `getThinking()`, and `getToolCalls()`\n- Subpath modules for runtime config, keys-file management, and session inspection\n\n## Installation\n\n```bash\npnpm add @ank1015/llm-sdk\n```\n\nIf your app defines tool schemas with `Type.Object(...)`, also add `@sinclair/typebox` to your project so you can import `Type` directly.\n\n## Quick Start\n\nBy default the SDK uses gateway credentials from `~/.llm/gateway.json`:\n\n```json\n{\n  \"gatewayBaseUrl\": \"https://gateway.example\",\n  \"accessToken\": \"...\",\n  \"refreshToken\": \"...\",\n  \"accessTokenExpiresAt\": 1777542373000,\n  \"refreshTokenExpiresAt\": 1780133473000\n}\n```\n\nThen make a simple call:\n\n```ts\nimport { getText, llm, userMessage } from '@ank1015/llm-sdk';\n\nconst message = await llm({\n  modelId: 'openai/gpt-5.4-mini',\n  messages: [userMessage('Explain event loops in two sentences.')],\n});\n\nconsole.log(getText(message));\n```\n\nFor chat models, the prefix selects the provider: `openai/...` routes through the OpenAI provider, while `azure-openai/...` routes through the Azure OpenAI provider.\n\n## Agent Runs\n\n```ts\nimport { agent, getText, userMessage } from '@ank1015/llm-sdk';\n\nconst result = await agent({\n  modelId: 'anthropic/claude-sonnet-4-6',\n  system: 'You are a careful debugging assistant.',\n  inputMessages: [userMessage('Summarize the latest session state.')],\n});\n\nif (!result.ok) {\n  throw new Error(result.error.message);\n}\n\nconsole.log(result.sessionPath);\nconsole.log(getText(result.finalAssistantMessage));\n```\n\n## Image Generation\n\n```ts\nimport { image } from '@ank1015/llm-sdk';\n\nconst result = await image({\n  prompt: 'Create a polished travel sticker of a floating tea cart.',\n  output: './artifacts/tea-cart.png',\n  size: '1024x1024',\n  quality: 'low',\n});\n\nconsole.log(result.path);\nconsole.log(result.paths);\n```\n\n## Config, Keys, And Sessions\n\nUse subpath imports for the operational helpers:\n\n```ts\nimport { getSdkConfig, setSdkConfig } from '@ank1015/llm-sdk/config';\nimport { setProviderCredentials } from '@ank1015/llm-sdk/keys';\nimport { loadSessionMessages } from '@ank1015/llm-sdk/session';\n```\n\nDefaults:\n\n- keys file: `~/.llm-sdk/keys.env`\n- gateway credentials file: `~/.llm/gateway.json`\n- session directory: `~/.llm-sdk/sessions`\n\nSee [docs/setup.md](./docs/setup.md) for the full setup, keys-file, and session-helper guide.\n\n## Docs\n\n- [docs/image.md](./docs/image.md) - `image()` usage, saved output paths, editing inputs, and output options\n- [docs/llm.md](./docs/llm.md) - `llm()` usage, streaming, and response handling\n- [docs/agent.md](./docs/agent.md) - `agent()` runs, tools, and failure modes\n- [docs/types.md](./docs/types.md) - exported message, tool, and runtime types\n- [docs/setup.md](./docs/setup.md) - config, credential files, and session helpers\n- [docs/testing-and-release.md](./docs/testing-and-release.md) - local validation and packaging checklist\n\n## Publish Surface\n\nPublic subpath exports:\n\n- `@ank1015/llm-sdk/agent`\n- `@ank1015/llm-sdk/config`\n- `@ank1015/llm-sdk/image`\n- `@ank1015/llm-sdk/keys`\n- `@ank1015/llm-sdk/llm`\n- `@ank1015/llm-sdk/messages`\n- `@ank1015/llm-sdk/model-input`\n- `@ank1015/llm-sdk/response`\n- `@ank1015/llm-sdk/session`\n- `@ank1015/llm-sdk/tool`\n","readmeFilename":"README.md"}