Skip to content

@cloudflare/think@0.25.0

Choose a tag to compare

@github-actions github-actions released this 04 Dec 16:02
· 11 commits to main since this release
fdaa297

Minor Changes

  • #3184 ab6072e Thanks @mattzcarey! - Think. See Upgrading Think from 0.24.

    • getScheduledTasksScope() is removed: a sub-agent arms its own declared tasks; stored scheduled tasks migrate at the first start.
    • this.context is the new Context: change a ContextBlocks annotation to Context.
    • Messenger replies: messengerReplySnapshot, MESSENGER_REPLY_FIBER_NAME, DeliveryTag and related exports are removed.
    • @cloudflare/think/extensions no longer exports createBridgeProvider, ExtensionContextBridge or ExtensionWritableBridge.
    • An agent last started before 0.20.0 must start once on 0.20.0 to 0.24.0 first, or its undelivered workflow notifications are lost.
    • New: a tool marked recovery: "rerun" runs again when a restart cut its call off.
    • New: ctx.messenger.author is set in beforeTurn, beforeToolCall gets stepNumber, and StepConfig is typed with every field.
    • A reply continued after a client tool result, an approval or a durable pause is stored as one assistant message (was two).
    • A turn cut off by a restart or an upgrade keeps its request id, continues the reply and ends once.
    • A model response cut off with no finish signal is recovered, not completed, with a client that reports the cut.
    • A durable pause waiting longer than actionPendingApprovalTtlMs (30 days) is dropped at start.
    • A Think trace has fewer setup spans, and prepare_agent is beside chat_turn.
  • #3988 17862ac Thanks @mattzcarey! - Upgrade agents, @cloudflare/ai-chat and @cloudflare/think together. See Upgrading from ai-chat 0.12 and Upgrading Think from 0.24.

    • @cloudflare/ai-chat and @cloudflare/think need agents 0.35.0 or later; agents/chat is internal and exports less.
    • An agent from the previous release migrates its storage in place at its first start; rolling back afterwards is not supported.