{"_id":"@avm-ai/avm-vercel-ai","_rev":"2-8e2a68a0be05a42fdbbfafca0605215d","name":"@avm-ai/avm-vercel-ai","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"@avm-ai/avm-vercel-ai","version":"1.0.0","keywords":["avm","vercel","ai","python","typescript"],"author":{"name":"AVM AI"},"license":"MIT","_id":"@avm-ai/avm-vercel-ai@1.0.0","maintainers":[{"name":"avm-ai","email":"info@avm.codes"}],"dist":{"shasum":"7aff5bb5cd40f03be7d02ceebaeb6abe20c8e5df","tarball":"https://registry.npmjs.org/@avm-ai/avm-vercel-ai/-/avm-vercel-ai-1.0.0.tgz","fileCount":6,"integrity":"sha512-Vlks7AyZ3tpwElyIaVNTRrNjgmaf521zivHvDi6hdWo3dM9oXfUEHIF2hKO/jCjO+1Nhf2798P+0FFWAZn/ppg==","signatures":[{"sig":"MEUCIDZWF0PRmBT55mmVN9bIe3Py1hiub4iy2LzA8rE98dEdAiEA1jzUdZgESE78c4sa3uziDCpoRW5WBBY3V2dUGDIKB+w=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":7481},"main":"dist/base/index.js","type":"module","types":"dist/base/index.d.ts","scripts":{"build":"tsc"},"_npmUser":{"name":"avm-ai","email":"info@avm.codes"},"_npmVersion":"10.8.1","description":"A TypeScript-compliant npm package for running Python scripts using the AVM API, designed to be integrated into the Vercel AI SDK as a tool.","directories":{"test":"test","example":"example"},"_nodeVersion":"22.3.0","dependencies":{"ai":"^4.3.15","zod":"^3.24.4","dotenv":"^16.5.0","@ai-sdk/openai":"^1.3.22"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.8.3","@types/node":"^22.15.17"},"_npmOperationalInternal":{"tmp":"tmp/avm-vercel-ai_1.0.0_1747057174620_0.013206268338347815","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@avm-ai/avm-vercel-ai","version":"1.0.1","main":"dist/base/index.js","types":"dist/base/index.d.ts","directories":{"example":"example","test":"test"},"scripts":{"build":"tsc"},"keywords":["avm","vercel","ai","python","typescript"],"author":{"name":"AVM AI"},"license":"MIT","description":"A TypeScript-compliant npm package for running Python scripts using the AVM API, designed to be integrated into the Vercel AI SDK as a tool.","type":"module","publishConfig":{"access":"public"},"devDependencies":{"@types/node":"^22.15.17","typescript":"^5.8.3"},"dependencies":{"@ai-sdk/openai":"^1.3.22","ai":"^4.3.15","dotenv":"^16.5.0","zod":"^3.24.4"},"_id":"@avm-ai/avm-vercel-ai@1.0.1","gitHead":"9a98d1c8a13bcc8e1c63576692020b3d52c6113e","_nodeVersion":"22.3.0","_npmVersion":"10.8.1","dist":{"integrity":"sha512-LcIvZrX80NAY3RA4jFV9yTkVLpd0f5iCc2BHDdxG2T4nYOLZs3lhB+uHZnnZjrWMR6LZcvKvShUorqO5Z4WAwA==","shasum":"abb39dc7ba68539c3edb31a16306d502476e0c84","tarball":"https://registry.npmjs.org/@avm-ai/avm-vercel-ai/-/avm-vercel-ai-1.0.1.tgz","fileCount":6,"unpackedSize":8185,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDuHNK9Nw7JhotSqgW3UV6Dm56vnu8Ql/iYgM9FdYorUgIgJaV8Ma8X5/WkeYI9Cl2lMwAS5mGO2iFPTVCXOAO/usU="}]},"_npmUser":{"name":"avm-ai","email":"info@avm.codes"},"maintainers":[{"name":"avm-ai","email":"info@avm.codes"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/avm-vercel-ai_1.0.1_1748840971764_0.6692012946750283"},"_hasShrinkwrap":false}},"time":{"created":"2025-05-12T13:39:34.523Z","modified":"2025-06-02T05:09:32.092Z","1.0.0":"2025-05-12T13:39:34.823Z","1.0.1":"2025-06-02T05:09:31.935Z"},"author":{"name":"AVM AI"},"license":"MIT","keywords":["avm","vercel","ai","python","typescript"],"description":"A TypeScript-compliant npm package for running Python scripts using the AVM API, designed to be integrated into the Vercel AI SDK as a tool.","maintainers":[{"name":"avm-ai","email":"info@avm.codes"}],"readme":"# @avm-ai/avm-vercel-ai\n\nA TypeScript-compliant npm package for running Python scripts using the AVM API, designed to be integrated into the Vercel AI SDK as a tool.\n\n## Description\n\nThis package provides a tool to execute Python scripts using the AVM API. It is designed to be used in environments where you need to run Python code and integrate it with your JavaScript/TypeScript applications, specifically as a tool within the Vercel AI SDK.\n\n## Installation\n\nYou can install the package using npm:\n\n```bash\nnpm install @avm-ai/avm-vercel-ai\n```\n\n## Usage\n\nTo use the package, you need to set the `AVM_API_KEY` environment variable. You can do this by creating a `.env` file in your project root with the following content:\n\n```\nAVM_API_KEY=your-api-key-here\n```\n\nHere's an example of how to use the package:\n\n```javascript\nimport { runPythonTool } from \"@avm-ai/avm-vercel-ai\";\nimport dotenv from \"dotenv\";\nimport { openai } from \"@ai-sdk/openai\";\nimport { generateText } from \"ai\";\n\ndotenv.config();\n\n(async () => {\n  const apiKey = process.env.AVM_API_KEY;\n  if (!apiKey) {\n    console.error(\"AVM_API_KEY environment variable is not set.\");\n    process.exit(1);\n  }\n\n  const tool = runPythonTool();\n\n  const { text } = await generateText({\n    model: openai(\"gpt-4o\"),\n    prompt:\n      \"Create a random noise signal of 50 datapoints, output the signal in a nice markdown table\",\n    tools: {\n      runPython: tool,\n    },\n    maxSteps: 10,\n  });\n\n  console.log(text);\n})();\n```\n\n## Features\n\n- Execute Python scripts using the AVM API.\n- TypeScript support for better development experience.\n- Easy integration with existing JavaScript/TypeScript projects.\n- Designed to be integrated into the Vercel AI SDK as a tool.\n\n## License\n\nMIT\n","readmeFilename":"README.md"}