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

agents@0.34.1

Cloudflare Agents SDK 0.34.1 adds support for Pi 1.6.1, updating tool parking payloads, stream error handling, and SSE decoder performance.

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

人类阅读

为什么值得关注

agents@0.34.1 brings compatibility with Pi 1.6.1 and pi-ai 1.6.1. Pi tools now require parking with { kind: "sleep", signals, until } rather than { sleep: { ... } } , and signal states now use { kind: "value", value } or { kind: "expired" } . Tools returning the legacy shape still compile but will yield empty results. The agents/models/pi-ai adapter now marks chat-completion streams ending with finish reason: "error" as retriable errors under the Pi harness settings, captures native OpenRouter finish reasons in rawStopReason , treats empty OpenRouter stops with failing native reasons as retriable errors, and ensures onResponse captures all responses including failures. Additionally, the SSE decoder in agents/models has been optimized to process large streamed events in linear time.

Agent 解析

可执行摘要

agents@0.34.1 aligns with Pi 1.6.1 and pi-ai 1.6.1. It introduces breaking data shapes for tool parking ({ kind: 'sleep', signals, until }) and signal states, while improving retry semantics for chat-completion streams, OpenRouter errors, and optimizing SSE decoding to linear time.

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

开发者应核对什么

  • Update any Pi tools that park execution to use the new payload shape { kind: "sleep", signals, until } and signal state format { kind: "value", value } or { kind: "expired" } to avoid empty results.
  • Verify error-handling and retry logic in agents/models/pi-ai integrations, especially when consuming OpenRouter or stream completions that finish with error reasons.
分类

标签与路由

cloudflareagents-sdkedge-runtime
相关信号

继续阅读