Agent InfrastructureAutomated release watch

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.

Human read

Why this signal matters

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 parse

Actionable summary

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 usefulness
72/100
Confidence
96%
Canonical data
JSON + Markdown
Next actions

What builders should check

  • 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.
Classification

Tags and routing

cloudflareagents-sdkedge-runtime
Related signals

Continue the thread