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

@cloudflare/ai-chat@0.12.1

Cloudflare's @cloudflare/ai-chat patch release (0.12.1) improves streaming reliability, error recovery, and tool call handling across agent chat sessions.

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

人类阅读

为什么值得关注

The @cloudflare/ai-chat 0.12.1 release brings multiple bug fixes and enhancements across agent tools, chat agents, sessions, and client tool continuations. Key updates include: requiring agents@ =0.25.0; adding eventDelivery: 'terminal' in runAgentTool to selectively forward lifecycle, progress, and milestone events; introducing useAgentChat onTurnEnd along with outcomes and user message IDs in terminal chat frames; adding session.mirror() to synchronize in-memory transcripts with session change feeds; and deprecating resolveToolMergeId in favor of reconcileMessages to handle reused toolCallIds. Several fixes address edge cases in streaming and reconnects, including handling duplicate/dropped agent-tool chunks, preventing duplicate text on tool continuation reconnects, retaining tool inputs when approval requests arrive early, settling unrun approved tool calls, recovering from transient response-reader errors, and properly reporting continuation errors instead of hanging.

Agent 解析

可执行摘要

Patch release @cloudflare/ai-chat@0.12.1 introduces eventDelivery: 'terminal' in runAgentTool, adds useAgentChat.onTurnEnd, implements session.mirror(), deprecates resolveToolMergeId in favor of reconcileMessages, and requires agents@ =0.25.0.

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

开发者应核对什么

  • Upgrade the project dependency to agents@ =0.25.0 when updating to @cloudflare/ai-chat@0.12.1.
  • Migrate existing usages of resolveToolMergeId to reconcileMessages.
  • Optionally leverage useAgentChat onTurnEnd and terminal chat frame metadata for more resilient client-side turn handling across reconnects.
  • Adopt session.mirror() if maintaining an in-memory transcript synchronized with a session's change feed is required.
分类

标签与路由

cloudflareagents-sdkedge-runtime
相关信号

继续阅读