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

@cloudflare/think@0.20.0

Cloudflare's Think library (v0.20.0) introduces breaking changes to task scheduling scopes and updates AI SDK dependencies to v7, alongside numerous fixes for chat recovery, tool stream handling, and messaging adapters.

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

人类阅读

为什么值得关注

Cloudflare Agents SDK released @cloudflare/think@0.20.0 with notable architectural changes and stability fixes. Key changes include: - Breaking Scheduled Tasks: Declared scheduled tasks now execute only on the root agent by default. To maintain per-facet scheduling, developers must override getScheduledTasksScope() to return 'all'. - Native RPC Behavior: Native RPC calls now trigger lifecycle initialization first. Addressing agents by raw IDs generated via newUniqueId() or idFromString() now fails the initial async RPC; agents must be addressed by name. - Core Dependencies: Added peer requirements for ai@^7 , @ai-sdk/react@^4 (due to bundled provider outputs), and agents@ =0.25.0 . - Channels & Chat: Browser chat turns now route through the web channel, adopting its configured tools and turn limit. useAgentChat adds onTurnEnd and persists messages sent while disconnected across reconnects. - Tool and Stream Lifecycle: Improved failure handling for evicted child agent tools, fixed chunk duplication across fiber recoveries, added eventDelivery: 'terminal' to runAgentTool , settled approved but unrun tool calls, and updated continuation turns to surface pre-streaming errors. - API Adjustments: resolveToolMergeId is deprecated in favor of reconcileMessages . Interfaces can now serve as Props on Agent and Think types.

Agent 解析

可执行摘要

Release @cloudflare/think@0.20.0 introduces breaking changes: declared scheduled tasks default to the root agent only (requiring getScheduledTasksScope() = 'all' for per-facet scheduling), and native RPC calls require addressing agents by name rather than raw IDs. It mandates ai@^7 , @ai-sdk/react@^4 , and agents@ =0.25.0 , moves browser chat turns to the web channel, deprecates resolveToolMergeId in favor of…

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

开发者应核对什么

  • Upgrade project dependencies to ai@^7, @ai-sdk/react@^4, and agents@ =0.25.0.
  • Override getScheduledTasksScope() to return 'all' if per-facet scheduled task execution is required.
  • Update native async RPC call sites to address Agents by name instead of raw IDs from newUniqueId() or idFromString().
  • Replace deprecated resolveToolMergeId calls with reconcileMessages when handling tool Call IDs across turns.
分类

标签与路由

cloudflareagents-sdkedge-runtime
相关信号

继续阅读