sandbox-agent/resources/vercel-ai-sdk-schemas
2026-01-26 22:29:10 -08:00
..
.tmp chore: sync workspace changes 2026-01-26 22:29:10 -08:00
artifacts/json-schema chore: sync workspace changes 2026-01-26 22:29:10 -08:00
src chore: sync workspace changes 2026-01-26 22:29:10 -08:00
package.json chore: sync workspace changes 2026-01-26 22:29:10 -08:00
README.md chore: sync workspace changes 2026-01-26 22:29:10 -08:00
tsconfig.json chore: sync workspace changes 2026-01-26 22:29:10 -08:00

Vercel AI SDK Schemas

This package extracts JSON Schema for UIMessage from the Vercel AI SDK v6 TypeScript types.

Usage

  • Install dependencies in this folder.
  • Run the extractor:
pnpm install
pnpm extract

Optional flags:

  • --version=6.x.y to pin an exact version
  • --major=6 to select the latest version for a major (default: 6)

Output:

  • artifacts/json-schema/ui-message.json

The registry response is cached under .cache/ for 24 hours. The extractor downloads the AI SDK package and the minimal dependency tree needed for TypeScript type resolution into a temporary folder.