Requirements
- Node 20 or later (LTS). The SDK is tested against Node 20 and Node 22.
- Or a modern browser with native ESM, top-level await,
fetch, andAbortController. No polyfills are bundled.
Install the package
Peer dependencies
@gaussia/sdk declares zod and ai as peer dependencies so they resolve to a single copy in your application.
zod(^3) is required. Public types are derived from Zod schemas, and schema parsing runs at runtime.ai(^5) is an optional peer. Install it only if you import@gaussia/sdk/adapters/ai-sdk. If you implement theLanguageModelcontract yourself, you do not needai.
Importing only
@gaussia/sdk resolves a bundle containing zero bytes from the adapter subpath or the ai peer. You pay for an adapter only when you import it.Provider package
The Vercel AI SDK adapter wraps a provider model. Install the provider you use alongsideai:
Verify the install
Next steps
Quickstart
Run a first evaluation against a small dataset.