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

agents@0.33.0

Cloudflare Agents SDK 0.33.0 adds Pi 1.5 support with major performance improvements, API updates like session.watch() , and breaking storage compatibility preventing rollbacks to Pi 1.4.

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

人类阅读

为什么值得关注

The agents@0.33.0 release updates Cloudflare's Agents SDK to support Pi 1.5 ( ~1.5.0 ), dropping support for Pi 1.4. Storage performance is significantly optimized: streamed answers and tool outputs are now batched (flushed at least every second), reducing SQLite storage writes by roughly 27x for long responses and 5.7x for parallel tool turns, with a trade-off that crashes may lose up to one second of streamed output. Scheduler overhead is also reduced, scaling multi-session execution on SQLite from 88 to 459 runs/sec across 2,048 sessions. Large streamed payloads now append rather than copy buffers, avoiding prior CPU and memory spikes. Breaking changes and migrations apply to Pi harness users. Pi 1.5 updates the data format, meaning conversations run on 1.5 cannot be read by 1.4, preventing rollback. APIs have changed: session.events() is replaced by session.watch() (with session.entries() for paging), retry() and parked statuses are replaced by session.continue() and explicit task interruption, and schemas must move from TypeBox export via pi-ai to @earendil-works/pi-schema . Additionally, onReport callback signatures and event names ( storage failed , task interrupted ) have been restructured.

Agent 解析

可执行摘要

agents@0.33.0 integrates Pi 1.5, cutting SQLite writes by up to 27x and eliminating string duplication on streamed outputs. Key API changes include deprecating session.events() in favor of session.watch() , introducing session.continue() and defaults.maxTurns , removing retry() and parked status, and migrating tool schemas to @earendil-works/pi-schema .

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

开发者应核对什么

  • Upgrade Pi dependencies to ~1.5.0 ( @earendil-works/pi-durable , pi-ai , chord ) and install @earendil-works/pi-schema .
  • Do not attempt to roll back deployments to Pi 1.4 once running on Pi 1.5, as storage is forward-only compatible.
  • Replace session.events() calls with session.watch() , and use session.entries() to paginate older transcript entries.
  • Migrate tool definitions to use @earendil-works/pi-schema (or import Type directly from typebox ), noting that obj() rejects undeclared properties unless { open: true } is specified.
分类

标签与路由

cloudflareagents-sdkedge-runtime
相关信号

继续阅读