{"_id":"@ap3x/ai","name":"@ap3x/ai","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@ap3x/ai","version":"0.1.0","description":"Unified multi-provider LLM API (OpenAI, Anthropic, Google, Bedrock, Mistral, …)","repository":{"type":"git","url":"git+https://github.com/AP3X-Dev/AP3X.git","directory":"packages/ai"},"license":"MIT","publishConfig":{"access":"public"},"type":"module","main":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"}},"scripts":{"build":"tsup src/index.ts --format esm --clean --tsconfig tsconfig.build.json && tsc -p tsconfig.build.json","prepublishOnly":"node ../../scripts/publish-gate.mjs","test":"vitest run"},"dependencies":{"@sinclair/typebox":"^0.34.49","ajv":"^8.20.0","partial-json":"^0.1.7","undici":"^6.21.3"},"_id":"@ap3x/ai@0.1.0","gitHead":"572dcf9cfde958270d2c9b5404aa5bc1dc2cbeea","bugs":{"url":"https://github.com/AP3X-Dev/AP3X/issues"},"homepage":"https://github.com/AP3X-Dev/AP3X#readme","_nodeVersion":"20.18.2","_npmVersion":"11.5.1","dist":{"integrity":"sha512-esSEn+JUodfuD92q1sxH+KE4eDKYxNf4lDh0CudnllOmokHzWq4bjOlEgELmuI91tdQHG2Fh/ZSsw97YBCvvIQ==","shasum":"a0e6e1f1a792e12519f7f93354709fce4ec5df41","tarball":"https://registry.npmjs.org/@ap3x/ai/-/ai-0.1.0.tgz","fileCount":182,"unpackedSize":1328401,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIDCIyGTkua5ITH+dFQf618VNOf8JY2LSvvVCf/1/dFpzAiA0u2na1APby/+4Bp++9GXh/swdSzGw+rECALHYc7FEEA=="}]},"_npmUser":{"name":"botstack","email":"GuerrillaMedia702@gmail.com"},"directories":{},"maintainers":[{"name":"botstack","email":"GuerrillaMedia702@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/ai_0.1.0_1785554960124_0.21152320607214636"},"_hasShrinkwrap":false}},"time":{"created":"2026-08-01T03:29:20.019Z","0.1.0":"2026-08-01T03:29:20.288Z","modified":"2026-08-01T03:29:20.481Z"},"maintainers":[{"name":"botstack","email":"GuerrillaMedia702@gmail.com"}],"description":"Unified multi-provider LLM API (OpenAI, Anthropic, Google, Bedrock, Mistral, …)","homepage":"https://github.com/AP3X-Dev/AP3X#readme","repository":{"type":"git","url":"git+https://github.com/AP3X-Dev/AP3X.git","directory":"packages/ai"},"bugs":{"url":"https://github.com/AP3X-Dev/AP3X/issues"},"license":"MIT","readme":"# @ap3x/ai\n\nOne typed interface over many LLM providers: streaming, tool calling, and a shared model catalog, so provider choice stays a config value rather than a rewrite.\n\nPart of [AP3X](https://github.com/AP3X-Dev/AP3X) — a TypeScript multi-agent framework.\n\n## Install\n\n```bash\nnpm install @ap3x/ai\n```\n\n## What's inside\n\n- **Providers** — OpenAI (completions + responses), Anthropic, Google, Amazon Bedrock, Azure OpenAI, GitHub Copilot, OpenRouter, Vercel AI Gateway, Mistral, and more.\n- **Streaming** — incremental text and tool-call deltas with partial-JSON recovery.\n- **Tool calling** — TypeBox schemas in, validated and coerced arguments out, with provider-specific tool-call id rules handled in one place.\n- **Auth** — API keys from the environment, plus OAuth device/browser flows for subscription backends.\n- **Model catalog** — `MODELS` / `getModel` with generated per-provider catalogs and a runtime refresh seam.\n- **Transport** — retry, timeout, and proxy handling shared across providers.\n\n## Documentation\n\nSee the [AP3X repository](https://github.com/AP3X-Dev/AP3X) for architecture notes, the full package map, and examples.\n\n## License\n\nMIT\n","readmeFilename":"README.md","_rev":"1-d7ac8f3c234b2cfd43030e65807ce70f"}