Files
Nathan Rajlich 32ac8e73fd Fix Biome lint violations and add Biome CI check (#3222)
* Fix Biome lint violations and add Biome CI check

Biome was not configured to respect .gitignore, so ~92% of the 13,355
reported diagnostics came from gitignored build artifacts. Enable VCS
integration (useIgnoreFile), apply safe auto-fixes across the repo, fix
the remaining mechanical errors by hand, downgrade judgment-call a11y /
dangerouslySetInnerHTML rules to warnings, and add a 'biome ci' job to
the Lint workflow so violations block PRs going forward.

* Use an empty changeset (no behavior change, no release needed)
2026-07-30 22:32:12 +00:00
..
2026-07-06 13:32:59 -07:00

@workflow/ai

Workflow SDK compatible helper library for the AI SDK.

Installation

npm install @workflow/ai

AI SDK Compatibility

This package supports both AI SDK v5 and AI SDK v6. The ai package is a peer dependency, so you control which version to use:

# For AI SDK v6 (recommended, latest)
npm install ai

# For AI SDK v5
npm install ai@5

Version Differences

Feature AI SDK v5 AI SDK v6
Model interface LanguageModelV2 LanguageModelV3
Provider package @ai-sdk/provider@2.x @ai-sdk/provider@3.x

Both versions work seamlessly with @workflow/ai - the package handles the differences internally through a compatibility layer.

Provider Packages

If you use the provider wrappers (e.g., @workflow/ai/anthropic, @workflow/ai/openai), install the corresponding provider packages:

# Example: Using Anthropic with AI SDK v6
npm install ai @ai-sdk/anthropic

# Example: Using OpenAI with AI SDK v5
npm install ai@5 @ai-sdk/openai@2

Documentation

For usage examples and full documentation, see the API reference.