Agent 基础设施官方发布自动监测

@ai-sdk/workflow@2.0.59

Vercel AI SDK released @ai-sdk/workflow@2.0.59, adding a durable non-streaming WorkflowAgent.generate() method with a shared tool loop, tool approval decoupling from streaming, and fixes for metadata and length-limited responses.

原始内容为英文;当前页面提供中文导航与来源说明,具体事实请以原文为准。

人类阅读

为什么值得关注

The @ai-sdk/workflow@2.0.59 patch release introduces several updates to WorkflowAgent. Key changes include: - Addition of durable non-streaming WorkflowAgent.generate() featuring a shared tool loop, a 20-step default, typed output, and core generation result semantics. - Tool approval request creation is now independent of streaming, allowing WorkflowAgent.generate() and streams without a writable stream to resume approved calls, while preserving provider approval requests without local execution. - Validation and documentation for generation deadlines, retry boundaries, hook cancellation, and result serialization across workflow resumption. - Bug fixes ensuring length-limited assistant responses in conversation messages and provider metadata on assistant text messages are preserved. - Updated core dependencies including ai@7.0.128, @ai-sdk/provider@4.0.22, and @ai-sdk/provider-utils@5.0.54.

Agent 解析

可执行摘要

Vercel AI SDK @ai-sdk/workflow@2.0.59 introduces durable non-streaming WorkflowAgent.generate() with a default 20-step loop and typed outputs. It decouples tool approval creation from streaming to support resumption across non-streaming and non-writable stream runs, and fixes message history handling for length-limited outputs and provider metadata.

Agent 实用度
77/100
可信度
96%
机器格式
JSON + Markdown
下一步

开发者应核对什么

  • Upgrade @ai-sdk/workflow to version 2.0.59.
  • Adopt WorkflowAgent.generate() for durable, non-streaming multi-step agent executions.
  • Review tool approval flows to take advantage of transport-independent request creation and resumption.
分类

标签与路由

vercelai-sdktypescript
相关信号

继续阅读