{"_id":"@thirdweb-dev/ai-sdk-provider","_rev":"10-4e356ce6a4b60df368f43757ed137f23","name":"@thirdweb-dev/ai-sdk-provider","dist-tags":{"nightly":"0.1.3-nightly-bb89561a1b6ccee68b80c0fa45dd706df463a1ca-20250905000341","latest":"0.1.4"},"versions":{"0.1.0":{"name":"@thirdweb-dev/ai-sdk-provider","version":"0.1.0","author":{"name":"thirdweb eng","email":"eng@thirdweb.com"},"license":"Apache-2.0","_id":"@thirdweb-dev/ai-sdk-provider@0.1.0","maintainers":[{"name":"furqantw","email":"furqan@thirdweb.com"},{"name":"jnsdls","email":"jonas@thirdweb.com"},{"name":"joaquim-verges","email":"joaquim@thirdweb.com"},{"name":"jakeloo","email":"jake@thirdweb.com"},{"name":"thirdweb-bot","email":"bot@thirdweb.com"}],"homepage":"https://github.com/thirdweb-dev/js/tree/main#readme","bugs":{"url":"https://github.com/thirdweb-dev/js/issues"},"dist":{"shasum":"2a2d1eb7467f2d00fe6d9b48dd95346fcf24ff29","tarball":"https://registry.npmjs.org/@thirdweb-dev/ai-sdk-provider/-/ai-sdk-provider-0.1.0.tgz","fileCount":33,"integrity":"sha512-gZLJUD23o51aNB8t29PvCF1n8k7midfqv8Zy8F3yI0lay+A6utzS1teHZKWjSmq3Xd6xgmkDRQi3/A0h3AmHhw==","signatures":[{"sig":"MEQCIGuFEHOdLrDxZGdiz8JghQcPn4SE+iIPYBr5tAaTNUk5AiAI36ll4MkHlUjZHi5L6l8Exvz+prw0EWWw1WXgBWY/cw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":134168},"main":"./dist/cjs/exports/thirdweb.js","type":"module","_from":"file:thirdweb-dev-ai-sdk-provider-0.1.0.tgz","types":"./dist/types/exports/thirdweb.d.ts","module":"./dist/esm/exports/thirdweb.js","engines":{"node":">=18"},"exports":{".":{"types":"./dist/types/exports/thirdweb.d.ts","import":"./dist/esm/exports/thirdweb.js","default":"./dist/cjs/exports/thirdweb.js"},"./package.json":"./package.json"},"scripts":{"dev":"tsc --project ./tsconfig.build.json --module nodenext --moduleResolution nodenext --outDir ./dist/esm --watch","fix":"biome check ./src --fix","lint":"biome check ./src","build":"pnpm clean && pnpm build:cjs && pnpm build:esm && pnpm build:types","clean":"rimraf dist","format":"biome format ./src --write","build:cjs":"tsc --project ./tsconfig.build.json --module commonjs --outDir ./dist/cjs --verbatimModuleSyntax false && printf '{\"type\":\"commonjs\"}' > ./dist/cjs/package.json","build:esm":"tsc --project ./tsconfig.build.json --module es2020 --outDir ./dist/esm && printf '{\"type\": \"module\",\"sideEffects\":false}' > ./dist/esm/package.json","build:types":"tsc --project ./tsconfig.build.json --module esnext --declarationDir ./dist/types --emitDeclarationOnly --declaration --declarationMap"},"typings":"./dist/types/exports/thirdweb.d.ts","_npmUser":{"name":"thirdweb-bot","email":"bot@thirdweb.com"},"_resolved":"/tmp/56838b465c0d9d7fd7baf91d3bdc065a/thirdweb-dev-ai-sdk-provider-0.1.0.tgz","_integrity":"sha512-gZLJUD23o51aNB8t29PvCF1n8k7midfqv8Zy8F3yI0lay+A6utzS1teHZKWjSmq3Xd6xgmkDRQi3/A0h3AmHhw==","repository":{"url":"git+https://github.com/thirdweb-dev/js.git#main","type":"git"},"_npmVersion":"10.8.2","description":"A [Vercel AI SDK](https://ai-sdk.dev/docs/introduction) provider that integrates thirdweb's blockchain AI capabilities into your applications. Build AI agents and chat UIs that can interact with smart contracts, execute transactions, and perform swaps dir","directories":{},"_nodeVersion":"20.19.4","_hasShrinkwrap":false,"devDependencies":{"rimraf":"6.0.1","@biomejs/biome":"2.0.6","@ai-sdk/provider":"2.0.0","@ai-sdk/provider-utils":"3.0.7"},"peerDependencies":{"ai":"^5","zod":"^3.25.75 || ^4","typescript":">=5.0.4"},"peerDependenciesMeta":{"typescript":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/ai-sdk-provider_0.1.0_1756419466154_0.3786805341781434","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"@thirdweb-dev/ai-sdk-provider","version":"0.1.1","author":{"name":"thirdweb eng","email":"eng@thirdweb.com"},"license":"Apache-2.0","_id":"@thirdweb-dev/ai-sdk-provider@0.1.1","maintainers":[{"name":"furqantw","email":"furqan@thirdweb.com"},{"name":"jnsdls","email":"jonas@thirdweb.com"},{"name":"joaquim-verges","email":"joaquim@thirdweb.com"},{"name":"jakeloo","email":"jake@thirdweb.com"},{"name":"thirdweb-bot","email":"bot@thirdweb.com"}],"homepage":"https://github.com/thirdweb-dev/js/tree/main#readme","bugs":{"url":"https://github.com/thirdweb-dev/js/issues"},"dist":{"shasum":"2ed5b179f8cfc7d80e93fbbafb073753bf58a1dc","tarball":"https://registry.npmjs.org/@thirdweb-dev/ai-sdk-provider/-/ai-sdk-provider-0.1.1.tgz","fileCount":33,"integrity":"sha512-cosTm1Je3GMClL9igtOMz3vPaJhareH0Zw+fUOtEslMkiOuo0BsoC7dmSxYHZX17tFlrqpe0Ni1KBS8cpOFn7A==","signatures":[{"sig":"MEYCIQDknxXMdY5aAha+7nSF6Bzq8NAmSS04AfBc4S5VB81W/AIhAJrJnS5ZV4gtqtYmml/k/qo95KA8UUvUBltbQ+G9LJJi","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":140037},"main":"./dist/cjs/exports/thirdweb.js","type":"module","_from":"file:thirdweb-dev-ai-sdk-provider-0.1.1.tgz","types":"./dist/types/exports/thirdweb.d.ts","module":"./dist/esm/exports/thirdweb.js","engines":{"node":">=18"},"exports":{".":{"types":"./dist/types/exports/thirdweb.d.ts","import":"./dist/esm/exports/thirdweb.js","default":"./dist/cjs/exports/thirdweb.js"},"./package.json":"./package.json"},"scripts":{"dev":"tsc --project ./tsconfig.build.json --module nodenext --moduleResolution nodenext --outDir ./dist/esm --watch","fix":"biome check ./src --fix","lint":"biome check ./src","build":"pnpm clean && pnpm build:cjs && pnpm build:esm && pnpm build:types","clean":"rimraf dist","format":"biome format ./src --write","build:cjs":"tsc --project ./tsconfig.build.json --module commonjs --outDir ./dist/cjs --verbatimModuleSyntax false && printf '{\"type\":\"commonjs\"}' > ./dist/cjs/package.json","build:esm":"tsc --project ./tsconfig.build.json --module es2020 --outDir ./dist/esm && printf '{\"type\": \"module\",\"sideEffects\":false}' > ./dist/esm/package.json","build:types":"tsc --project ./tsconfig.build.json --module esnext --declarationDir ./dist/types --emitDeclarationOnly --declaration --declarationMap"},"typings":"./dist/types/exports/thirdweb.d.ts","_npmUser":{"name":"thirdweb-bot","email":"bot@thirdweb.com"},"_resolved":"/tmp/b1f8ede7a4d1fd5020f323b3e7f171c7/thirdweb-dev-ai-sdk-provider-0.1.1.tgz","_integrity":"sha512-cosTm1Je3GMClL9igtOMz3vPaJhareH0Zw+fUOtEslMkiOuo0BsoC7dmSxYHZX17tFlrqpe0Ni1KBS8cpOFn7A==","repository":{"url":"git+https://github.com/thirdweb-dev/js.git#main","type":"git"},"_npmVersion":"10.8.2","description":"A [Vercel AI SDK](https://ai-sdk.dev/docs/introduction) provider that integrates thirdweb's blockchain AI capabilities into your applications. Build AI agents and chat UIs that can interact with smart contracts, execute transactions, and perform swaps dir","directories":{},"_nodeVersion":"20.19.4","_hasShrinkwrap":false,"devDependencies":{"rimraf":"6.0.1","@biomejs/biome":"2.0.6","@ai-sdk/provider":"2.0.0","@ai-sdk/provider-utils":"3.0.7"},"peerDependencies":{"ai":"^5","zod":"^3.25.75 || ^4","typescript":">=5.0.4"},"peerDependenciesMeta":{"typescript":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/ai-sdk-provider_0.1.1_1756430330536_0.9196658744966189","host":"s3://npm-registry-packages-npm-production"}},"0.1.2":{"name":"@thirdweb-dev/ai-sdk-provider","version":"0.1.2","author":{"name":"thirdweb eng","email":"eng@thirdweb.com"},"license":"Apache-2.0","_id":"@thirdweb-dev/ai-sdk-provider@0.1.2","maintainers":[{"name":"furqantw","email":"furqan@thirdweb.com"},{"name":"jnsdls","email":"jonas@thirdweb.com"},{"name":"joaquim-verges","email":"joaquim@thirdweb.com"},{"name":"jakeloo","email":"jake@thirdweb.com"},{"name":"thirdweb-bot","email":"bot@thirdweb.com"}],"homepage":"https://github.com/thirdweb-dev/js/tree/main#readme","bugs":{"url":"https://github.com/thirdweb-dev/js/issues"},"dist":{"shasum":"1c02958ecbb887afa092fd5d9f24e8c845625bc0","tarball":"https://registry.npmjs.org/@thirdweb-dev/ai-sdk-provider/-/ai-sdk-provider-0.1.2.tgz","fileCount":33,"integrity":"sha512-T9xPkn3SbTKa3JuCSuhc7HKOMEdErDHm/HD47XWB2BHQlQFGMqjxYKch6rG/ID4TEh3GWOs4pXPjLsY577j0lg==","signatures":[{"sig":"MEUCIH28iv0J9MC6ep7AF4YtXOsV6fesQKEPEJm9xblV5rboAiEAifTl3F5m6F1rNTaVgHT1SIzgR+tq0nnbSiJxQzi9dPA=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":151019},"main":"./dist/cjs/exports/thirdweb.js","type":"module","_from":"file:thirdweb-dev-ai-sdk-provider-0.1.2.tgz","types":"./dist/types/exports/thirdweb.d.ts","module":"./dist/esm/exports/thirdweb.js","engines":{"node":">=18"},"exports":{".":{"types":"./dist/types/exports/thirdweb.d.ts","import":"./dist/esm/exports/thirdweb.js","default":"./dist/cjs/exports/thirdweb.js"},"./package.json":"./package.json"},"scripts":{"dev":"tsc --project ./tsconfig.build.json --module nodenext --moduleResolution nodenext --outDir ./dist/esm --watch","fix":"biome check ./src --fix","lint":"biome check ./src","build":"pnpm clean && pnpm build:cjs && pnpm build:esm && pnpm build:types","clean":"rimraf dist","format":"biome format ./src --write","build:cjs":"tsc --project ./tsconfig.build.json --module commonjs --outDir ./dist/cjs --verbatimModuleSyntax false && printf '{\"type\":\"commonjs\"}' > ./dist/cjs/package.json","build:esm":"tsc --project ./tsconfig.build.json --module es2020 --outDir ./dist/esm && printf '{\"type\": \"module\",\"sideEffects\":false}' > ./dist/esm/package.json","build:types":"tsc --project ./tsconfig.build.json --module esnext --declarationDir ./dist/types --emitDeclarationOnly --declaration --declarationMap"},"typings":"./dist/types/exports/thirdweb.d.ts","_npmUser":{"name":"thirdweb-bot","email":"bot@thirdweb.com"},"_resolved":"/tmp/c0a20d646a15a1594051a0ce93ea9fcf/thirdweb-dev-ai-sdk-provider-0.1.2.tgz","_integrity":"sha512-T9xPkn3SbTKa3JuCSuhc7HKOMEdErDHm/HD47XWB2BHQlQFGMqjxYKch6rG/ID4TEh3GWOs4pXPjLsY577j0lg==","repository":{"url":"git+https://github.com/thirdweb-dev/js.git#main","type":"git"},"_npmVersion":"10.8.2","description":"A [Vercel AI SDK](https://ai-sdk.dev/docs/introduction) provider that integrates thirdweb's blockchain AI capabilities into your applications. Build AI agents and chat UIs that can interact with smart contracts, execute transactions, and perform swaps dir","directories":{},"_nodeVersion":"20.19.4","_hasShrinkwrap":false,"devDependencies":{"rimraf":"6.0.1","@biomejs/biome":"2.0.6","@ai-sdk/provider":"2.0.0","@ai-sdk/provider-utils":"3.0.7"},"peerDependencies":{"ai":"^5","zod":"^3.25.75 || ^4","typescript":">=5.0.4"},"peerDependenciesMeta":{"typescript":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/ai-sdk-provider_0.1.2_1756710540886_0.024877285298581686","host":"s3://npm-registry-packages-npm-production"}},"0.1.3-nightly-bb89561a1b6ccee68b80c0fa45dd706df463a1ca-20250905000341":{"name":"@thirdweb-dev/ai-sdk-provider","version":"0.1.3-nightly-bb89561a1b6ccee68b80c0fa45dd706df463a1ca-20250905000341","author":{"name":"thirdweb eng","email":"eng@thirdweb.com"},"license":"Apache-2.0","_id":"@thirdweb-dev/ai-sdk-provider@0.1.3-nightly-bb89561a1b6ccee68b80c0fa45dd706df463a1ca-20250905000341","maintainers":[{"name":"furqantw","email":"furqan@thirdweb.com"},{"name":"jnsdls","email":"jonas@thirdweb.com"},{"name":"joaquim-verges","email":"joaquim@thirdweb.com"},{"name":"jakeloo","email":"jake@thirdweb.com"},{"name":"thirdweb-bot","email":"bot@thirdweb.com"}],"homepage":"https://github.com/thirdweb-dev/js/tree/main#readme","bugs":{"url":"https://github.com/thirdweb-dev/js/issues"},"dist":{"shasum":"9cfcff49b551cbda7e646e55929741b8527ef209","tarball":"https://registry.npmjs.org/@thirdweb-dev/ai-sdk-provider/-/ai-sdk-provider-0.1.3-nightly-bb89561a1b6ccee68b80c0fa45dd706df463a1ca-20250905000341.tgz","fileCount":33,"integrity":"sha512-LOevN2AYlTAv0fycgFxtvZQLYj7qD+KxkX3yA0UOmrFE9IMYH0fTBKWh7mCpuQtB12pcll15S5gDMjgGA+kz4w==","signatures":[{"sig":"MEUCIQCGXyD8egKiP+114dJ3+qsRvxVUfN0R/5BdzQDzDIfdsgIgNPnaiRxxp6FKKr15ziw5xUk5UHzkpBW9q55oFYS2v4U=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":155643},"main":"./dist/cjs/exports/thirdweb.js","type":"module","_from":"file:thirdweb-dev-ai-sdk-provider-0.1.3-nightly-bb89561a1b6ccee68b80c0fa45dd706df463a1ca-20250905000341.tgz","types":"./dist/types/exports/thirdweb.d.ts","module":"./dist/esm/exports/thirdweb.js","engines":{"node":">=18"},"exports":{".":{"types":"./dist/types/exports/thirdweb.d.ts","import":"./dist/esm/exports/thirdweb.js","default":"./dist/cjs/exports/thirdweb.js"},"./package.json":"./package.json"},"scripts":{"dev":"tsc --project ./tsconfig.build.json --module nodenext --moduleResolution nodenext --outDir ./dist/esm --watch","fix":"biome check ./src --fix","lint":"biome check ./src","build":"pnpm clean && pnpm build:cjs && pnpm build:esm && pnpm build:types","clean":"rimraf dist","format":"biome format ./src --write","build:cjs":"tsc --project ./tsconfig.build.json --module commonjs --outDir ./dist/cjs --verbatimModuleSyntax false && printf '{\"type\":\"commonjs\"}' > ./dist/cjs/package.json","build:esm":"tsc --project ./tsconfig.build.json --module es2020 --outDir ./dist/esm && printf '{\"type\": \"module\",\"sideEffects\":false}' > ./dist/esm/package.json","build:types":"tsc --project ./tsconfig.build.json --module esnext --declarationDir ./dist/types --emitDeclarationOnly --declaration --declarationMap"},"typings":"./dist/types/exports/thirdweb.d.ts","_npmUser":{"name":"thirdweb-bot","email":"bot@thirdweb.com"},"_resolved":"/tmp/b6c9aa219a8cb3e34de038a1258c42df/thirdweb-dev-ai-sdk-provider-0.1.3-nightly-bb89561a1b6ccee68b80c0fa45dd706df463a1ca-20250905000341.tgz","_integrity":"sha512-LOevN2AYlTAv0fycgFxtvZQLYj7qD+KxkX3yA0UOmrFE9IMYH0fTBKWh7mCpuQtB12pcll15S5gDMjgGA+kz4w==","repository":{"url":"git+https://github.com/thirdweb-dev/js.git#main","type":"git"},"_npmVersion":"10.8.2","description":"A [Vercel AI SDK](https://ai-sdk.dev/docs/introduction) provider that integrates thirdweb's blockchain AI capabilities into your applications. Build AI agents and chat UIs that can interact with smart contracts, execute transactions, and perform swaps dir","directories":{},"_nodeVersion":"20.19.5","_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"rimraf":"6.0.1","@biomejs/biome":"2.0.6","@ai-sdk/provider":"2.0.0","@ai-sdk/provider-utils":"3.0.7"},"peerDependencies":{"ai":"^5","zod":"^3.25.75 || ^4","typescript":">=5.0.4"},"peerDependenciesMeta":{"typescript":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/ai-sdk-provider_0.1.3-nightly-bb89561a1b6ccee68b80c0fa45dd706df463a1ca-20250905000341_1757030703323_0.5976217545445806","host":"s3://npm-registry-packages-npm-production"}},"0.1.3":{"name":"@thirdweb-dev/ai-sdk-provider","version":"0.1.3","author":{"name":"thirdweb eng","email":"eng@thirdweb.com"},"license":"Apache-2.0","_id":"@thirdweb-dev/ai-sdk-provider@0.1.3","maintainers":[{"name":"furqantw","email":"furqan@thirdweb.com"},{"name":"jnsdls","email":"jonas@thirdweb.com"},{"name":"joaquim-verges","email":"joaquim@thirdweb.com"},{"name":"jakeloo","email":"jake@thirdweb.com"},{"name":"thirdweb-bot","email":"bot@thirdweb.com"}],"homepage":"https://github.com/thirdweb-dev/js/tree/main#readme","bugs":{"url":"https://github.com/thirdweb-dev/js/issues"},"dist":{"shasum":"efddf72bff8be71f0d0fff0967ad8b36a83d329b","tarball":"https://registry.npmjs.org/@thirdweb-dev/ai-sdk-provider/-/ai-sdk-provider-0.1.3.tgz","fileCount":33,"integrity":"sha512-tFVlpsMb1lfrZmdCq9qYGTQvhVQqy0DoTDZVd7d8xjtQ/gLhAgh/ZCnNto53trGdRNlDr3L4dRJcdsJmpbEnEw==","signatures":[{"sig":"MEQCIEA9C4All+xP+6RrByjQfDD50+bam8CReAFeWSuOIENvAiBXwpU6htg261+dUwl8dvtcqzShPem3apj0LXIZV1ywow==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":155579},"main":"./dist/cjs/exports/thirdweb.js","type":"module","_from":"file:thirdweb-dev-ai-sdk-provider-0.1.3.tgz","types":"./dist/types/exports/thirdweb.d.ts","module":"./dist/esm/exports/thirdweb.js","engines":{"node":">=18"},"exports":{".":{"types":"./dist/types/exports/thirdweb.d.ts","import":"./dist/esm/exports/thirdweb.js","default":"./dist/cjs/exports/thirdweb.js"},"./package.json":"./package.json"},"scripts":{"dev":"tsc --project ./tsconfig.build.json --module nodenext --moduleResolution nodenext --outDir ./dist/esm --watch","fix":"biome check ./src --fix","lint":"biome check ./src","build":"pnpm clean && pnpm build:cjs && pnpm build:esm && pnpm build:types","clean":"rimraf dist","format":"biome format ./src --write","build:cjs":"tsc --project ./tsconfig.build.json --module commonjs --outDir ./dist/cjs --verbatimModuleSyntax false && printf '{\"type\":\"commonjs\"}' > ./dist/cjs/package.json","build:esm":"tsc --project ./tsconfig.build.json --module es2020 --outDir ./dist/esm && printf '{\"type\": \"module\",\"sideEffects\":false}' > ./dist/esm/package.json","build:types":"tsc --project ./tsconfig.build.json --module esnext --declarationDir ./dist/types --emitDeclarationOnly --declaration --declarationMap"},"typings":"./dist/types/exports/thirdweb.d.ts","_npmUser":{"name":"thirdweb-bot","email":"bot@thirdweb.com"},"_resolved":"/tmp/56f72f4afb7fa08d85ce6b1d63ed9985/thirdweb-dev-ai-sdk-provider-0.1.3.tgz","_integrity":"sha512-tFVlpsMb1lfrZmdCq9qYGTQvhVQqy0DoTDZVd7d8xjtQ/gLhAgh/ZCnNto53trGdRNlDr3L4dRJcdsJmpbEnEw==","repository":{"url":"git+https://github.com/thirdweb-dev/js.git#main","type":"git"},"_npmVersion":"10.8.2","description":"A [Vercel AI SDK](https://ai-sdk.dev/docs/introduction) provider that integrates thirdweb's blockchain AI capabilities into your applications. Build AI agents and chat UIs that can interact with smart contracts, execute transactions, and perform swaps dir","directories":{},"_nodeVersion":"20.19.5","_hasShrinkwrap":false,"devDependencies":{"rimraf":"6.0.1","@biomejs/biome":"2.0.6","@ai-sdk/provider":"2.0.0","@ai-sdk/provider-utils":"3.0.7"},"peerDependencies":{"ai":"^5","zod":"^3.25.75 || ^4","typescript":">=5.0.4"},"peerDependenciesMeta":{"typescript":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/ai-sdk-provider_0.1.3_1757036335736_0.14664077163395017","host":"s3://npm-registry-packages-npm-production"}},"0.1.4":{"name":"@thirdweb-dev/ai-sdk-provider","version":"0.1.4","author":{"name":"thirdweb eng","email":"eng@thirdweb.com"},"license":"Apache-2.0","_id":"@thirdweb-dev/ai-sdk-provider@0.1.4","maintainers":[{"name":"furqantw","email":"furqan@thirdweb.com"},{"name":"jnsdls","email":"jonas@thirdweb.com"},{"name":"joaquim-verges","email":"joaquim@thirdweb.com"},{"name":"jakeloo","email":"jake@thirdweb.com"},{"name":"thirdweb-bot","email":"bot@thirdweb.com"}],"homepage":"https://github.com/thirdweb-dev/js/tree/main#readme","bugs":{"url":"https://github.com/thirdweb-dev/js/issues"},"dist":{"shasum":"813b43a46605165d869e5165f039256328672184","tarball":"https://registry.npmjs.org/@thirdweb-dev/ai-sdk-provider/-/ai-sdk-provider-0.1.4.tgz","fileCount":33,"integrity":"sha512-mxEwLSvPkI4GJuYeR3DKq9+nLgB1T0DCtH5O1W/anxrKdTygG+tp3b2MsMKUUXwFZ8ZcqwJeStIUz7tIlrL4tQ==","signatures":[{"sig":"MEQCICNiMH2iaqNBftb0JiVIQ8/GCOMQ5Flc/G0qrR4NZghvAiAQ2DspVqDHYYP+Z+5VBe5XwtwZA2PAq8zGVE9yO6WpIw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":157167},"main":"./dist/cjs/exports/thirdweb.js","type":"module","_from":"file:thirdweb-dev-ai-sdk-provider-0.1.4.tgz","types":"./dist/types/exports/thirdweb.d.ts","module":"./dist/esm/exports/thirdweb.js","engines":{"node":">=18"},"exports":{".":{"types":"./dist/types/exports/thirdweb.d.ts","import":"./dist/esm/exports/thirdweb.js","default":"./dist/cjs/exports/thirdweb.js"},"./package.json":"./package.json"},"scripts":{"dev":"tsc --project ./tsconfig.build.json --module nodenext --moduleResolution nodenext --outDir ./dist/esm --watch","fix":"biome check ./src --fix","lint":"biome check ./src","build":"pnpm clean && pnpm build:cjs && pnpm build:esm && pnpm build:types","clean":"rimraf dist","format":"biome format ./src --write","build:cjs":"tsc --project ./tsconfig.build.json --module commonjs --outDir ./dist/cjs --verbatimModuleSyntax false && printf '{\"type\":\"commonjs\"}' > ./dist/cjs/package.json","build:esm":"tsc --project ./tsconfig.build.json --module es2020 --outDir ./dist/esm && printf '{\"type\": \"module\",\"sideEffects\":false}' > ./dist/esm/package.json","build:types":"tsc --project ./tsconfig.build.json --module esnext --declarationDir ./dist/types --emitDeclarationOnly --declaration --declarationMap"},"typings":"./dist/types/exports/thirdweb.d.ts","_npmUser":{"name":"thirdweb-bot","email":"bot@thirdweb.com"},"_resolved":"/tmp/fccc05fa28aaecae6d484a519bc54077/thirdweb-dev-ai-sdk-provider-0.1.4.tgz","_integrity":"sha512-mxEwLSvPkI4GJuYeR3DKq9+nLgB1T0DCtH5O1W/anxrKdTygG+tp3b2MsMKUUXwFZ8ZcqwJeStIUz7tIlrL4tQ==","repository":{"url":"git+https://github.com/thirdweb-dev/js.git#main","type":"git"},"_npmVersion":"10.8.2","description":"A [Vercel AI SDK](https://ai-sdk.dev/docs/introduction) provider that integrates thirdweb's blockchain AI capabilities into your applications. Build AI agents and chat UIs that can interact with smart contracts, execute transactions, and perform swaps dir","directories":{},"_nodeVersion":"20.19.5","_hasShrinkwrap":false,"devDependencies":{"rimraf":"6.0.1","@biomejs/biome":"2.0.6","@ai-sdk/provider":"2.0.0","@ai-sdk/provider-utils":"3.0.7"},"peerDependencies":{"ai":"^5","zod":"^3.25.75 || ^4","typescript":">=5.0.4"},"peerDependenciesMeta":{"typescript":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/ai-sdk-provider_0.1.4_1759828147668_0.31739602566573333","host":"s3://npm-registry-packages-npm-production"}}},"time":{"created":"2025-08-28T22:17:46.051Z","modified":"2026-03-26T09:13:18.971Z","0.1.0":"2025-08-28T22:17:46.353Z","0.1.1":"2025-08-29T01:18:50.740Z","0.1.2":"2025-09-01T07:09:01.083Z","0.1.3-nightly-bb89561a1b6ccee68b80c0fa45dd706df463a1ca-20250905000341":"2025-09-05T00:05:03.550Z","0.1.3":"2025-09-05T01:38:55.913Z","0.1.4":"2025-10-07T09:09:07.853Z"},"bugs":{"url":"https://github.com/thirdweb-dev/js/issues"},"author":{"name":"thirdweb eng","email":"eng@thirdweb.com"},"license":"Apache-2.0","homepage":"https://github.com/thirdweb-dev/js/tree/main#readme","repository":{"url":"git+https://github.com/thirdweb-dev/js.git#main","type":"git"},"description":"A [Vercel AI SDK](https://ai-sdk.dev/docs/introduction) provider that integrates thirdweb's blockchain AI capabilities into your applications. Build AI agents and chat UIs that can interact with smart contracts, execute transactions, and perform swaps dir","maintainers":[{"email":"furqan@thirdweb.com","name":"furqantw"},{"email":"jonas@thirdweb.com","name":"jnsdls"},{"email":"joaquim@thirdweb.com","name":"joaquim-verges"},{"email":"bot@thirdweb.com","name":"thirdweb-bot"},{"email":"0xfirekeeper@gmail.com","name":"0xfirekeeper"}],"readme":"# thirdweb AI SDK Provider\n\nA [Vercel AI SDK](https://ai-sdk.dev/docs/introduction) provider that integrates thirdweb's blockchain AI capabilities into your applications. Build AI agents and chat UIs that can interact with smart contracts, execute transactions, and perform swaps directly from AI responses.\n\n## Features\n\n- **Blockchain-aware AI**: AI models that understand and can interact with blockchain data\n- **Transaction execution**: Sign and execute transactions directly from AI responses\n- **Token swaps**: Perform token swaps through AI-generated actions\n- **Transaction monitoring**: Track transaction status and confirmations\n- **Session continuity**: Maintain conversation context across interactions\n- **Type safety**: Full TypeScript support with typed tool results\n- **Streaming support**: Real-time AI responses with reasoning steps\n\n## Installation\n\n```bash\nnpm install @thirdweb-dev/ai-sdk-provider ai @ai-sdk/react\n```\n\n## Usage\n\n### Server Setup (Next.js App Router)\n\nCreate an API route to handle AI chat requests:\n\n```ts\n// app/api/chat/route.ts\nimport { convertToModelMessages, streamText } from \"ai\";\nimport { createThirdwebAI } from \"@thirdweb-dev/ai-sdk-provider\";\n\n// Allow streaming responses up to 5 minutes\nexport const maxDuration = 300;\n\nconst thirdwebAI = createThirdwebAI({\n  secretKey: process.env.THIRDWEB_SECRET_KEY,\n});\n\nexport async function POST(req: Request) {\n  const { messages, sessionId } = await req.json();\n\n  const result = streamText({\n    model: thirdwebAI.chat({\n      context: {\n        session_id: sessionId, // session id for continuity\n        chain_ids: [8453], // optional chain ids\n        from: \"0x...\", // optional from address\n        auto_execute_transactions: false, // optional, defaults to false\n      },\n    }),\n    messages: convertToModelMessages(messages),\n    tools: thirdwebAI.tools(), // optional, enables transaction and swap tools\n  });\n\n  return result.toUIMessageStreamResponse({\n    sendReasoning: true, // optional, sends reasoning steps to client\n    messageMetadata({ part }) {\n      // record session id for continuity\n      if (part.type === \"finish-step\") {\n        return {\n          session_id: part.response.id,\n        };\n      }\n    },\n  });\n}\n```\n\n### Client Setup (React)\n\nUse the `useChat` hook with thirdweb message types:\n\n```tsx\n\"use client\";\n\nimport { useState } from \"react\";\nimport { useChat, DefaultChatTransport } from \"@ai-sdk/react\";\nimport type { ThirdwebAiMessage } from \"@thirdweb-dev/ai-sdk-provider\";\n\nexport function Chat() {\n  const [sessionId, setSessionId] = useState(\"\");\n\n  const { messages, sendMessage, addToolResult, status } =\n    useChat<ThirdwebAiMessage>({\n      transport: new DefaultChatTransport({ api: \"/api/chat\" }),\n      onFinish: ({ message }) => {\n        // save session id for continuity\n        setSessionId(message.metadata?.session_id ?? \"\");\n      },\n    });\n\n  const send = (message: string) => {\n    sendMessage(\n      { text: message },\n      {\n        body: {\n          // send session id for continuity\n          sessionId,\n        },\n      }\n    );\n  };\n\n  return (\n    <>\n      {messages.map((message) => (\n        <RenderMessage\n          key={message.id}\n          message={message}\n          sessionId={sessionId}\n          addToolResult={addToolResult}\n          send={send}\n        />\n      ))}\n      <ChatInputBox send={send} />\n    </>\n  );\n}\n```\n\n### Handling Tool Results\n\nRender different message types and handle blockchain actions:\n\n```tsx\nimport { TransactionButton } from \"thirdweb/react\";\nimport { prepareTransaction } from \"thirdweb\";\nimport type { ThirdwebAiMessage } from \"@thirdweb-dev/ai-sdk-provider\";\n\nexport function RenderMessage(props: {\n  message: ThirdwebAiMessage;\n  sessionId: string;\n  addToolResult: (toolResult: any) => void;\n  send: (message: string) => void;\n}) {\n  const { message, sessionId, addToolResult, send } = props;\n\n  return (\n    <>\n      {message.parts.map((part, i) => {\n        switch (part.type) {\n          case \"text\":\n            return <div key={i}>{part.text}</div>;\n\n          case \"reasoning\":\n            return (\n              <div key={i} className=\"reasoning\">\n                {part.text}\n              </div>\n            );\n\n          case \"tool-sign_transaction\":\n            // example of how to handle transaction confirmations\n            const transactionData = part.input;\n            return (\n              <TransactionButton\n                key={i}\n                transaction={() =>\n                  prepareTransaction({\n                    client: THIRDWEB_CLIENT,\n                    chain: defineChain(transactionData.chain_id),\n                    to: transactionData.to,\n                    data: transactionData.data,\n                    value: transactionData.value,\n                  })\n                }\n                onTransactionSent={(transaction) => {\n                  // add the tool result to continue conversation\n                  addToolResult({\n                    tool: \"sign_transaction\",\n                    toolCallId: part.toolCallId,\n                    output: {\n                      transaction_hash: transaction.transactionHash,\n                      chain_id: transaction.chain.id,\n                    },\n                  });\n\n                  // continue the conversation with tool result\n                  send(\"\");\n                }}\n                onError={(error) => {\n                  send(`Transaction failed: ${error.message}`);\n                }}\n              >\n                Execute Transaction\n              </TransactionButton>\n            );\n\n          case \"tool-sign_swap\":\n            return <SwapButton key={i} input={part.input} />;\n\n          case \"tool-monitor_transaction\":\n            return <TransactionMonitor key={i} input={part.input} />;\n\n          default:\n            return null;\n        }\n      })}\n    </>\n  );\n}\n```\n\n## Configuration\n\n### ThirdwebConfig\n\n```ts\ninterface ThirdwebConfig {\n  /** Base URL of the thirdweb API (defaults to https://api.thirdweb.com) */\n  baseURL?: string;\n  /** Project secret key for backend usage */\n  secretKey?: string;\n  /** Project client ID for frontend usage */\n  clientId?: string;\n  /** User wallet auth token (JWT) for executing transactions */\n  walletAuthToken?: string;\n}\n```\n\n### ThirdwebSettings\n\n```ts\ninterface ThirdwebSettings {\n  context?: {\n    /** Whether to automatically execute transactions (defaults to false) */\n    auto_execute_transactions?: boolean;\n    /** Default chain IDs for queries and transactions */\n    chain_ids?: number[];\n    /** From address to execute transactions from */\n    from?: string;\n    /** Session ID for conversation continuity */\n    session_id?: string | null;\n  };\n}\n```\n\n## Available Tools\n\nThe provider includes three built-in tools:\n\n- **`sign_transaction`**: Sign and execute blockchain transactions\n- **`sign_swap`**: Perform token swaps\n- **`monitor_transaction`**: Track transaction status and confirmations\n\n## Resources\n\n- **Playground**: [https://playground.thirdweb.com/ai/chat/ai-sdk](https://playground.thirdweb.com/ai/chat/ai-sdk)\n- **Documentation**: [https://portal.thirdweb.com/ai/chat/ai-sdk](https://portal.thirdweb.com/ai/chat/ai-sdk)\n- **Vercel AI SDK**: [https://ai-sdk.dev/docs/introduction](https://ai-sdk.dev/docs/introduction)\n\n## License\n\nApache-2.0\n","readmeFilename":"README.md"}