Vercel AI SDK 发布 @ai-sdk/workflow 2.0.73 补丁
原标题:@ai-sdk/workflow@2.0.73
AI 摘要
Vercel AI SDK 发布 @ai-sdk/workflow 2.0.73 补丁版本,修复了 workflow 中运行时上下文传递问题,使其遵循 telemetry.includeRuntimeContext 配置。同时让 WorkflowAgent 使用原始工具 schema 校验和规范化工具输入,与 streamText 行为保持一致,涵盖默认值、转换、类型强制、refinement、未知键处理、自定义校验器、repairToolCall 及生命周期回调,并确保审批请求保留转换前输入以避免恢复时重复执行转换。
正文节选
### Patch Changes - 88ea0d7: fix(workflow): pass runtime context allowed by 'telemetry.includeRuntimeContext' - 6ac1ee1: fix(workflow): validate and normalize tool inputs with the original tool schema in `WorkflowAgent`, matching `streamText`. Defaults, transforms, coercion, refinements, unknown-key handling, custom validators, `repairToolCall`, and lifecycle callbacks now behave the same in durable runs, and approval requests retain the pre-transform input so transforms do not run twice on res