跳到主内容
@wquguru
精选90Cloudflare Agents SDK(Changelog)AI 编程与模型

Cloudflare Agents SDK v0.30.0 适配 Pi 1.4 并引入破坏性存储变更

Agents - Agents SDK now supports the latest Pi 1.4 release

原文
发到 X
推荐理由

Pi 1.4 升级导致存储架构变更且不可回滚,依赖 Cloudflare AI 代理的开发者必须立即评估升级风险并执行迁移,避免线上服务因版本不兼容或数据锁死而中断。

Agents SDK v0.30.0 runs PiHarness on Pi 1.4 ↗︎, and makes it recover more reliably from evictions, crashes, and storage errors.

Agents SDK v0.30.0 在 Pi 1.4 上运行 PiHarness,并使其从驱逐、崩溃和存储错误中恢复得更加可靠。

  • Hibernation while Pi's tasks sleep. PiHarness passes Pi's new onWake callback to your harness factory. While a task sleeps, such as during a model retry backoff, the Durable Object can hibernate until the task is due instead of staying in memory.
  • Parked tasks. Pi 1.4 parks a task that keeps crashing the object instead of restarting it forever. Parked operations show as parked in pending(), and session.retry() runs them again.
  • Recovery from storage errors. PiHarness reopens Pi after a storage error instead of failing every call until the object restarts. Its wake-up job retries failed steps with a backoff instead of being dropped.
  • Retried model streams. agents/models/pi-ai reports a cut-off or idle model stream as a transient error, so Pi retries the turn instead of failing it.
  • Pi 的任务休眠期间的休眠状态。PiHarness 将 Pi 的新 onWake 回调传递给您的 harness 工厂。当任务处于休眠状态时(例如在模型重试退避期间),Durable Object 可以进入休眠状态,直到任务到期,而无需一直保留在内存中。
  • 暂停的任务。Pi 1.4 会暂停导致对象不断崩溃的任务,而不是无限重启它。暂停的操作在 pending() 中显示为已暂停,session.retry() 会重新运行它们。
  • 从存储错误中恢复。PiHarness 会在发生存储错误后重新打开 Pi,而不是在对象重启之前使每次调用都失败。其唤醒作业会以退避方式重试失败的步骤,而不是被丢弃。
  • 重试的模型流。agents/models/pi-ai 将截断或空闲的模型流报告为临时错误,因此 Pi 会重试该轮次,而不是使其失败。

Upgrade

升级

The Agents SDK v0.30.0 changelog ↗︎ has step-by-step upgrade instructions. Point your coding agent at them and upgrade today:

Agents SDK v0.30.0 的更新日志 ↗︎ 包含逐步升级说明。将您的编码代理指向这些说明,并立即进行升级:

Copy promptPrompt copied!

复制提示词提示词已复制!

Pi 1.4 migrates the session storage in the object's SQLite database to a schema that Pi 1.3 cannot open, so a deployment cannot roll back past this upgrade. Refer to the Pi Durable 1.4.0 changelog ↗︎ for Pi's own breaking changes.

Pi 1.4 将对象 SQLite 数据库中的会话存储迁移到 Pi 1.3 无法打开的模式,因此部署无法回滚到此升级之前。有关 Pi 自身的重大更改,请参阅 Pi Durable 1.4.0 更新日志 ↗︎。

更进一步:量化金融体系

看懂新闻只是起点——沿量化金融路径,把它变成能交付的工程能力

进入量化体系 →

相似阅读

关联信息,但可能不是同一事件