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

@cloudflare/think@0.19.0

Cloudflare's @cloudflare/think@0.19.0 integrates the new Queue Lifecycle capability ( agents/queue ) for durable background processing, deprecates legacy queue tables, and improves stream recovery for interrupted turns.

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

人类阅读

为什么值得关注

@cloudflare/think@0.19.0 introduces the Queue Lifecycle capability ( agents/queue ) for durable background jobs, backed by the alarm loop with retry, deadman, and memory-limit policies. Queued callbacks now execute in clean invocations without direct access to the enqueuing connection or request via getCurrentAgent() . Key API adjustments include renaming QueueItem.created at to createdAt , making dequeue , dequeueAll , dequeueAllByCallback , getQueue , and getQueues asynchronous, and replacing LifecycleServices.starting() with status() . The release drops cf agents queues and cf think workflow notifications tables via temporary one-shot migrations that will be removed in the next minor release. Additionally, Think now requires agents = 0.24.0 , caps workflow notification retry backoff at 10 minutes (giving up after 12 hours), re-runs user messages rather than attempting continuation when interrupted turns have opened streams without content, and preserves durable submission state and recovery ownership across restarts.

Agent 解析

可执行摘要

@cloudflare/think@0.19.0 adopts the Queue Lifecycle capability from agents =0.24.0, executing queued background tasks in the alarm loop. It introduces breaking asynchronous signatures for dequeue/queue inspection methods, drops legacy queue/notification tables via one-time startup migrations, and resolves edge-case recovery bugs for interrupted, empty streams.

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

开发者应核对什么

  • Upgrade peer dependency agents to at least =0.24.0 .
  • Do not skip this release during upgrades, as one-shot database migrations for cf agents queues and cf think workflow notifications will be removed in the next minor release.
  • Update code calling dequeue , dequeueAll , dequeueAllByCallback , getQueue , and getQueues to handle returned Promises asynchronously.
  • Update property references from QueueItem.created at to createdAt and replace LifecycleServices.starting() with LifecycleServices.status() .
分类

标签与路由

cloudflareagents-sdkedge-runtime
相关信号

继续阅读