github vercel/ai @ai-sdk/workflow@1.0.0-canary.41

latest releases: @ai-sdk/xai@3.0.89, @ai-sdk/vue@3.0.176, @ai-sdk/voyage@1.0.4...
pre-release5 hours ago

Patch Changes

  • 1d56275: feat(workflow): add runtimeContext and toolsContext to WorkflowAgent.

    runtimeContext is shared agent state that flows through prepareCall, prepareStep, step results, and onFinish. toolsContext is a per-tool map; each tool receives its own validated entry as context, validated against tool.contextSchema when defined. The previous experimental_context option (and corresponding fields on related callbacks and option types) has been removed — use runtimeContext for shared state and toolsContext for per-tool values. Context values in WorkflowAgent should be serializable because they can cross workflow and step boundaries.

Don't miss a new ai release

NewReleases is sending notifications on new releases.