mirror of
https://github.com/harivansh-afk/sandbox-agent.git
synced 2026-04-18 10:03:34 +00:00
23 lines
606 B
Markdown
23 lines
606 B
Markdown
# 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.
|