All Topics
All Topics
Technology
Technology
AI
AI
Business
Business
Entertainment
Entertainment
News
News
Programming
Programming
Security
Security
Science
Science
Design
Design
Environment
Environment
Finance
Finance
Crypto
Crypto
Politics
Politics
Sports
Sports
Education
Education
Gaming
Gaming
Art
Art
Music
Music
Health
Health
Books
Books
Food
Food
Travel
Travel
Personal
Personal
Bluesky
Twitter

Agents, Workers - Agents SDK adds background sub-agents and a unified turn entry point

8d ago

Source

CloudflareAgents, Workers - Agents SDK adds background sub-agents and a unified turn entry pointcloudflare.com
Snippet from the RSS feed
The latest release of the Agents SDK makes it easier to run long work in the background, drive turns through one entry point, and keep chat agents working through deploys, evictions, and reconnects. This release adds first-class detached (background) sub-agent runs with live progress and durable milestones, a single runTurn turn-admission entry point, and a large round of recovery and reliability fixes that continue converging @cloudflare/think and @cloudflare/ai-chat onto one model. Background sub-agents with progress and milestones runAgentTool can now dispatch a sub-agent without blocking the calling turn. A detached run returns a handle immediately and is owned by a durable, eviction-surviving backbone instead of being abandoned when the dispatching turn ends. JavaScript class OrdersAgent extends Think { async startImport ( input ) { // Fire-and-forget, or wire a durable completion callback // (by method name, like schedule()): await this . runAgentTool ( ImportAgent , { input , detached : { onFinish : "onImportDone" , maxBudgetMs : 60 * 60 * 1000 }, } ) ; } // result.status: "completed"

You might also wanna read

Comments

Sign in to join the conversation.

No comments yet. Be the first.