{"_id":"@agentshare/vercel-ai","name":"@agentshare/vercel-ai","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@agentshare/vercel-ai","version":"1.0.0","description":"Vercel AI SDK tools for AgentShare.","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"build":"tsc"},"dependencies":{"@agentshare/sdk":"file:../sdk-ts","ai":"^6.0.0","zod":"^3.23.0"},"devDependencies":{"typescript":"^5.0.0"},"license":"MIT","gitHead":"bf425cb0b53fbf325163ef837d194e29a7ab968b","_id":"@agentshare/vercel-ai@1.0.0","_nodeVersion":"26.3.0","_npmVersion":"11.16.0","dist":{"integrity":"sha512-ru0733EDiTYFK5RwOktwkhF+yJGBSpojnLHW2GrPY8eJ09hIqEl8FZ7GA+LxweG43hcC/8JAoYGG4VESj4cC+Q==","shasum":"20013a65b7c6ef50914e532f981e24ee48a771ed","tarball":"https://registry.npmjs.org/@agentshare/vercel-ai/-/vercel-ai-1.0.0.tgz","fileCount":7,"unpackedSize":10951,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIAWRMzKKFmVxM7wK0+kEscFgLh0i2MIDMIlN14gCf/i0AiBmFka/iCLFgiIlfdqpT0Rmopo1qLxjd1CCSstq2FZang=="}]},"_npmUser":{"name":"deepakuser","email":"deepak.venkat15@gmail.com"},"directories":{},"maintainers":[{"name":"deepakuser","email":"deepak.venkat15@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/vercel-ai_1.0.0_1783706815411_0.545311199953735"},"_hasShrinkwrap":false}},"time":{"created":"2026-07-10T18:06:55.211Z","1.0.0":"2026-07-10T18:06:55.555Z","modified":"2026-07-10T18:06:55.905Z"},"maintainers":[{"name":"deepakuser","email":"deepak.venkat15@gmail.com"}],"description":"Vercel AI SDK tools for AgentShare.","license":"MIT","readme":"# @agentshare/vercel-ai\n\nThe official Vercel AI SDK integration for AgentShare.\n\nTurn AgentShare into a first-class tool for your agents. Give them the ability to securely write artifacts (code, JSON, large text) to memory and return short pathway tokens (`agnt.sr/x97b`) instead of blasting your context window.\n\n## Installation\n\n```bash\nnpm install @agentshare/vercel-ai @agentshare/sdk ai\n```\n\n## Quickstart (Under 60 Seconds)\n\n```typescript\nimport { generateText } from \"ai\";\nimport { openai } from \"@ai-sdk/openai\";\nimport { AgentShare } from \"@agentshare/sdk\";\nimport { createAgentShareTool } from \"@agentshare/vercel-ai\";\n\n// 1. Initialize the core SDK\nconst client = new AgentShare({\n  apiKey: process.env.AGENTSHARE_API_KEY,\n});\n\n// 2. Pass it to the AI SDK as a tool\nconst { text } = await generateText({\n  model: openai(\"gpt-4o\"),\n  prompt: \"Write a 5-page essay on the history of Rome and save it as a text file.\",\n  tools: {\n    agentShare: createAgentShareTool(client),\n  },\n  maxToolRoundtrips: 2,\n});\n\nconsole.log(text);\n// \"I have written the essay. You can view the file securely here: agnt.sr/r82q\"\n```\n","readmeFilename":"README.md","_rev":"1-108dcc75ab32cf022190f2cce47ea6d3"}