Sync Agents SDK documentation from PR #812#27986
Sync Agents SDK documentation from PR #812#27986agents-git-bot[bot] wants to merge 1 commit intoproductionfrom
Conversation
|
This pull request requires reviews from CODEOWNERS as it changes files that match the following patterns:
|
49cb72a to
a8566af
Compare
a8566af to
05fe253
Compare
|
Documentation sync updated with latest changes from cloudflare/agents#812. Changes in this update:
All changes have been committed and pushed to the sync-docs-pr-812 branch. |
05fe253 to
43191d8
Compare
Documentation Sync UpdateThis PR has been updated with comprehensive documentation changes from cloudflare/agents PR #812. Changes Synced1. Scheduling Documentation (
|
43191d8 to
4f04222
Compare
Updated Documentation SyncThis PR has been updated with comprehensive documentation from cloudflare/agents PR 812. Files Updated (6 total)
Key New Features Documented
Style ComplianceAll files follow Cloudflare documentation standards:
Commit: 4f04222 |
85defc2 to
c7ddfa9
Compare
c7ddfa9 to
50e2524
Compare
050999d to
2d7c63a
Compare
b9800f3 to
aa1f0ce
Compare
Updated Documentation SyncThis PR has been updated with documentation changes from cloudflare/agents#812. Changes in this update:Schedule Tasks (
Calling Agents (
Key Features Documented:
All documentation follows Cloudflare docs style guidelines including proper use of components and formatting. |
9c5ebcb to
554f1c2
Compare
Updates documentation to reflect changes from cloudflare/agents PR #812: ## State Management - Document synchronous setState() (no longer returns Promise) - Add validateStateChange() hook for synchronous validation - Clarify onStateUpdate() is non-gating (runs via queueMicrotask) - Document state update execution order ## Callable Methods - Add @callable decorator documentation - Document client-side RPC timeout option - Add stream.error() method for graceful error handling - Document getCallableMethods() introspection API - Document connection close handling for pending calls - Enhance streaming documentation with new options format ## Scheduling - Add scheduleEvery() method for fixed-interval recurring tasks - Document overlap prevention and error resilience - Compare interval vs cron scheduling approaches - Add comprehensive API reference ## MCP Client - Document new options-based addMcpServer() API - Show cleaner syntax avoiding positional undefined parameters - Note legacy signature still supported for backward compatibility Related PR: cloudflare/agents#812
7d8771b to
e8c43a7
Compare
|
CI run failed: build logs |
Summary
This PR syncs documentation updates from cloudflare/agents PR #812 (docs/tests/enhancements) to the Cloudflare developer documentation.
Source PR: cloudflare/agents#812
Approach
This PR updates existing documentation files in the cloudflare-docs repository rather than creating new files, ensuring continuity with the current documentation structure.
Files Updated
State Management (
api-reference/store-and-sync-state.mdx)setState()(no longer returns Promise)validateStateChange()hook for synchronous validationonStateUpdate()is non-gating (runs via queueMicrotask)Callable Methods (
api-reference/calling-agents.mdx)@callabledecorator documentationagent.call("method", [], { timeout: 5000 })stream.error()method for graceful error handlinggetCallableMethods()introspection APIScheduling (
api-reference/schedule-tasks.mdx)scheduleEvery()method for fixed-interval recurring tasksMCP Client (
model-context-protocol/mcp-client-api.mdx)addMcpServer()APIKey Features from PR #812
State Management
Scheduling
Callable System
MCP
addMcpServer()signatureStyle Guidelines Applied
All updates follow Cloudflare documentation standards:
<TypeScriptExample>components for all TypeScript code blocks<WranglerConfig>components for wrangler configuration examples/agents/configuration/)Testing
Documentation changes have been validated for:
🤖 Generated with Claude Code