🚀 Big News:Socket Has Acquired Secure Annex.Learn More →
Socket
Book a DemoSign in
Socket

@workflow/ai

Package Overview
Dependencies
Maintainers
20
Versions
68
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@workflow/ai

Workflow SDK compatible helper library for the AI SDK

latest
Source
npmnpm
Version
4.1.2
Version published
Maintainers
20
Created
Source

@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

FeatureAI SDK v5AI SDK v6
Model interfaceLanguageModelV2LanguageModelV3
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.

Keywords

ai

FAQs

Package last updated on 16 Apr 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts