{"name":"@ai-sdk/anthropic","version":"0.0.0","keywords":["ai"],"license":"Apache-2.0","_id":"@ai-sdk/anthropic@0.0.0","maintainers":[{"name":"jaredpalmer","email":"jared@palmer.net"}],"homepage":"https://sdk.vercel.ai/docs","bugs":{"url":"https://github.com/vercel/ai/issues"},"dist":{"shasum":"109aef09355971ba9907010d593e0f87e5f3480e","tarball":"http://registry-npm.ywwl.com/@ai-sdk/anthropic/download/@ai-sdk/anthropic-0.0.0.tgz","fileCount":8,"integrity":"sha512-PGKKZkGaRa6TOLU/mgVVa/RUklyWI/aBcdI+BiFvqH/r+Ui7qEhmlQrkAUmUOStvYmwU6aKhabhIz2jn7kQrLQ==","signatures":[{"sig":"MEUCIQDUynKpVs28DhQMU7aCkEGbDmKJhcfXcHqzLEOXwIX+dgIgFUIlxU/PEdxTt8LiZ3CxcS8lxmAz3ruptdFYMHkIXsY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":81285,"size":12507,"noattachment":false,"key":"/@ai-sdk/anthropic/-/@ai-sdk/anthropic-0.0.0.tgz"},"main":"./dist/index.js","types":"./dist/index.d.ts","module":"./dist/index.mjs","engines":{"node":">=18"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"},"./package.json":"./package.json"},"gitHead":"f85eabb4169eb5425b7b0276d3614882f4dedac6","scripts":{"dev":"tsup --watch","lint":"eslint \"./**/*.ts*\"","test":"pnpm test:node && pnpm test:edge","build":"tsup","clean":"rm -rf dist","test:edge":"vitest --config vitest.edge.config.js --run --threads=false","test:node":"vitest --config vitest.node.config.js --run --threads=false","type-check":"tsc --noEmit","prettier-check":"prettier --check \"./**/*.ts*\""},"_npmUser":{"name":"jaredpalmer","email":"jared@palmer.net"},"repository":{"url":"git+https://github.com/vercel/ai.git","type":"git"},"_npmVersion":"10.2.4","description":"**Note: The Anthropic API does not support streaming tool calls yet.**","directories":{},"sideEffects":false,"_nodeVersion":"18.19.1","dependencies":{"@ai-sdk/provider":"0.0.0","@ai-sdk/provider-utils":"0.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"zod":"3.22.4","tsup":"^8","typescript":"5.1.3","@types/node":"^18","@vercel/ai-tsconfig":"workspace:*"},"peerDependencies":{"zod":"^3.0.0"},"peerDependenciesMeta":{"zod":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/anthropic_0.0.0_1712934765330_0.3908232881747995","host":"s3://npm-registry-packages"},"readme":"# AI SDK - Anthropic Provider\n\nThe **[Anthropic provider](https://ai-sdk.dev/providers/ai-sdk-providers/anthropic)** for the [AI SDK](https://ai-sdk.dev/docs) contains language model support for the [Anthropic Messages API](https://docs.anthropic.com/claude/reference/messages_post).\n\n> **Deploying to Vercel?** With Vercel's AI Gateway you can access Anthropic (and hundreds of models from other providers) — no additional packages, API keys, or extra cost. [Get started with AI Gateway](https://vercel.com/ai-gateway).\n\n## Setup\n\n```bash\nnpm i ai @ai-sdk/anthropic\n```\n\n## Skill for Coding Agents\n\nIf you use coding agents such as Claude Code or Cursor, we highly recommend adding the AI SDK skill to your repository:\n\n```shell\nnpx skills add vercel/ai\n```\n\n## Usage\n\n```ts\nimport { anthropic } from '@ai-sdk/anthropic';\nimport { generateText } from 'ai';\n\nconst { text } = await generateText({\n  model: anthropic('claude-haiku-5-5'),\n  prompt: 'Write a vegetarian lasagna recipe for 4 people.',\n});\n```\n\nSee the [Anthropic Provider documentation](https://ai-sdk.dev/providers/ai-sdk-providers/anthropic) for more information.\n","publish_time":1712934765482,"_cnpm_publish_time":1712934765482,"dist-tags":{"ai-v5":"2.0.113","ai-v6":"3.0.140","alpha":"2.0.0-alpha.15","beta":"4.0.0-beta.69","canary":"4.0.0-canary.66","latest":"4.0.99","snapshot":"0.0.0-f1630544-20260811180950"}}