Skip to content

Releases: cloudflare/agents

agents@0.13.3

26 May 17:53
b504eed

Choose a tag to compare

Patch Changes

  • #1580 a1cd51b Thanks @threepointone! - Improve session auto-compaction estimates by including the Session-managed frozen system prompt, support custom token counters, and expose an auto-compaction error callback.

  • #1559 f942ffe Thanks @cjol! - Stash chat turn recovery metadata before inference starts so interrupted pre-stream turns can be reconciled by chat recovery. Pre-stream interruptions now automatically retry the existing unanswered user message when it is still safe to do so.

  • #1579 d0b4d0e Thanks @threepointone! - Ensure Agent-generated workflow instance IDs always satisfy the Workflows runtime ID validator.

  • #1567 3cfa498 Thanks @cjol! - Return error statuses for in-band stream errors across programmatic chat turns.

  • #1578 6fa7fd7 Thanks @threepointone! - Use path-scoped identities for newly-created sub-agents while preserving legacy bare-name identities for existing registry entries.

  • #1578 6fa7fd7 Thanks @threepointone! - Avoid self-deadlocking facet startup when same-name sub-agents hydrate WebSocket connection state after wake.

@cloudflare/voice@0.2.1

26 May 17:54
b504eed

Choose a tag to compare

Patch Changes

  • #1568 c7649ac Thanks @cjol! - Avoid emitting empty assistant transcript entries when a voice turn produces no response text.

@cloudflare/voice-telnyx@0.0.2

26 May 17:54
b504eed

Choose a tag to compare

Patch Changes

  • #1461 d44f59a Thanks @whoiskatrin! - Release the Telnyx voice provider package with STT, TTS, and browser telephony support for Cloudflare Agents voice pipelines.

@cloudflare/think@0.7.3

26 May 17:53
b504eed

Choose a tag to compare

Patch Changes

  • #1559 f942ffe Thanks @cjol! - Stash chat turn recovery metadata before inference starts so interrupted pre-stream turns can be reconciled by chat recovery. Pre-stream interruptions now automatically retry the existing unanswered user message when it is still safe to do so.

  • #1567 3cfa498 Thanks @cjol! - Return error statuses for in-band stream errors across programmatic chat turns.

@cloudflare/codemode@0.3.8

26 May 17:53
b504eed

Choose a tag to compare

Patch Changes

  • #1555 2d45abd Thanks @mattzcarey! - Default openApiMcpServer to the MCP SDK's Workers-safe JSON schema validator so elicitation response validation does not rely on runtime code generation.

@cloudflare/ai-chat@0.7.2

26 May 17:53
b504eed

Choose a tag to compare

Patch Changes

  • #1559 f942ffe Thanks @cjol! - Stash chat turn recovery metadata before inference starts so interrupted pre-stream turns can be reconciled by chat recovery. Pre-stream interruptions now automatically retry the existing unanswered user message when it is still safe to do so.

  • #1567 3cfa498 Thanks @cjol! - Return error statuses for in-band stream errors across programmatic chat turns.

agents@0.13.2

21 May 09:43
5beeeb4

Choose a tag to compare

Patch Changes

  • #1570 4f14b9c Thanks @threepointone! - Add agents/chat-sdk, a Chat SDK StateAdapter backed by Agents sub-agents.

    This new package entrypoint exports:

    • createChatSdkState(), a convenience factory for Chat SDK state.
    • ChatSdkStateAdapter, the concrete adapter implementation.
    • ChatSdkStateAgent, the default sub-agent used for durable Chat SDK state.
    • defaultThreadShard() and defaultKeyShard(), the default sharding helpers used by the adapter.

    The adapter stores Chat SDK subscriptions, concurrency locks, pending queues, generic cache entries, callback metadata, thread and channel state, persisted message history, and transcript lists in Durable Object SQLite. State is sharded through parent.subAgent() so a messenger ingress Agent can keep Chat SDK infrastructure state inside child facets instead of requiring a separate top-level Durable Object binding for every state shard.

    createChatSdkState() now works with the default ChatSdkStateAgent class when it is re-exported from the Worker entrypoint. It also defaults parent from getCurrentAgent() when called inside an Agent lifecycle method or request handler, so the common setup is:

    export { ChatSdkStateAgent } from "agents/chat-sdk";
    
    const chat = new Chat({
      adapters,
      state: createChatSdkState(),
    });

    Applications that need custom state behavior can still pass a custom agent subclass and explicit parent.

    This also documents the sub-agent configuration model more clearly: production Workers should export facet classes, but facet-only child classes do not belong in new_sqlite_classes unless they are also used as top-level Durable Objects. Test wrangler configs may still include facet classes as test-only Durable Object bindings for @cloudflare/vitest-pool-workers compatibility, while keeping them out of new_sqlite_classes.

@cloudflare/think@0.7.2

21 May 09:43
5beeeb4

Choose a tag to compare

Patch Changes

  • #1570 4f14b9c Thanks @threepointone! - Broadcast message updates from programmatic Think.chat() turns and clearMessages() so connected useAgentChat clients stay in sync without reconnecting.

agents@0.13.1

20 May 11:22
a5bc238

Choose a tag to compare

Patch Changes

  • #1563 32cde40 Thanks @threepointone! - Add managed fiber jobs with idempotent acceptance, optional completion waiting, inspection, cancellation, explicit recovery outcomes, and retained terminal status records.

@cloudflare/think@0.7.1

20 May 11:23
a5bc238

Choose a tag to compare

Patch Changes

  • #1561 831ba1d Thanks @whoiskatrin! - Expose additive TurnConfig.stopWhen conditions so Think subclasses can end an agentic loop early, for example after a designated tool call, while retaining the existing maxSteps safety bound.

  • #1563 32cde40 Thanks @threepointone! - Add RPC-safe cancellation for chat() turns with StreamCallback.onStart() and cancelChat().