github cloudflare/agents agents@0.12.0

latest release: @cloudflare/think@0.5.0
4 hours ago

Minor Changes

  • #1421 1b65ff5 Thanks @threepointone! - Add agent tool orchestration for running Think and AIChatAgent sub-agents as
    retained, streaming tools from a parent agent. The new surface includes
    runAgentTool, agentTool, parent-side run replay and cleanup, Think and
    AIChatAgent child adapter support, and headless React/client event state
    helpers.

Patch Changes

  • #1418 8de0ce3 Thanks @threepointone! - Allow sub-agents to use alarm-backed APIs by delegating the physical Durable Object alarm to the top-level parent while executing logical work inside the owning sub-agent. This enables schedule(), scheduleEvery(), cancelSchedule(), getScheduleById(), listSchedules(), keepAlive(), keepAliveWhile(), runFiber(), and Think chat recovery inside sub-agents.

    Sub-agent schedules are scoped to the calling child, so sibling sub-agents cannot cancel each other's schedules by id. The deprecated synchronous getSchedule() and getSchedules() APIs now throw inside sub-agents; use the async alternatives instead. Destroying a sub-agent now delegates cleanup through the parent so parent-owned schedules and descendant fiber recovery leases are removed consistently.

  • #1425 6471cbd Thanks @threepointone! - Clear request, WebSocket, and email native context handles when switching Agent instances and suppress protocol broadcasts during sub-agent facet bootstrap.

Don't miss a new agents release

NewReleases is sending notifications on new releases.