@workflow/ai
Helpers for building AI-powered workflows with the AI SDK.
The @workflow/ai package is currently in active development and should be considered experimental.
Helpers for integrating AI SDK for building AI-powered workflows.
Root Exports (@workflow/ai)
The root @workflow/ai entrypoint exports:
It also re-exports the ModelMessage type from the AI SDK for convenience.
Agent (@workflow/ai/agent)
The @workflow/ai/agent subpath exports the DurableAgent class and related types:
Provider Subpaths
Model provider wrappers are available as separate subpath imports:
@workflow/ai/anthropic— Anthropic provider@workflow/ai/openai— OpenAI provider@workflow/ai/google— Google provider@workflow/ai/gateway— Gateway provider@workflow/ai/xai— xAI provider@workflow/ai/test— Mock provider for testing