-
Notifications
You must be signed in to change notification settings - Fork 321
add task management and workflow integration #683
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
commit: |
This comment was marked as outdated.
This comment was marked as outdated.
This syncs documentation from cloudflare/agents PR #683 which adds a task management system with lifecycle tracking to the Agents SDK. Changes include: - New concept page explaining tasks and their lifecycle - API reference documentation for the Tasks API - Tutorial guide for building a task-based agent - Examples of using @task() decorator and TaskContext - Client-side task tracking with useTask() hook Related PR: cloudflare/agents#683
This comment was marked as outdated.
This comment was marked as outdated.
Syncs documentation from cloudflare/agents PR #683 cloudflare/agents#683 Adds comprehensive documentation for the task system including: - Tasks: Tracked background operations with progress updates - Durable Tasks: Long-running operations backed by Cloudflare Workflows New pages: - /agents/api-reference/tasks/ - Task decorator, TaskContext API, and client updates - /agents/api-reference/durable-tasks/ - Durable task setup, workflow context methods, and custom workflows
… provides retry semantics, use AgentWorkflow for fine-grained checkpoints
Syncs documentation for cloudflare/agents PR #683 which adds: - @task() decorator for tracked background operations - Task management API (get, list, cancel, delete) - Durable tasks with Cloudflare Workflows integration - Real-time task updates via WebSocket Related to: cloudflare/agents#683
…ts with task handling and observability
Documents the new @task() decorator and workflow integration features added in cloudflare/agents PR #683. Includes: - Comprehensive guide for integrating Cloudflare Workflows with Agents - Comparison of ctx.waitUntil() vs Workflow approaches - Complete example with React client and real-time progress updates - Configuration and deployment instructions Related PR: cloudflare/agents#683 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Documents how to integrate Cloudflare Workflows with Agents SDK for running long-running background tasks. Covers both quick analysis (Agent-based) and deep analysis (Workflow-based) patterns with real-time progress tracking. Based on PR #683: add task management and workflow integration cloudflare/agents#683 Generated with Claude Code https://claude.com/claude-code Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Addded task-runner example here
Shows how to run long-running background tasks from an Agent using Cloudflare Workflows.
Two patterns demonstrated:
The workflow sends progress updates back to the Agent, which syncs to connected clients via WebSocket.
Files: