-
Notifications
You must be signed in to change notification settings - Fork 11.9k
DO NOT LAND: docs/tests/enhancements #27986
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: production
Are you sure you want to change the base?
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 |
- Add routing documentation (basePath, identity features) - Add callable methods documentation (timeout, getCallableMethods) - Add webhooks guide - Update schedule-tasks with scheduleEvery() method - Update mcp-client-api with options-based addMcpServer() Source: cloudflare/agents#812
2ad8fa9 to
e93f016
Compare
|
CI run failed: build logs |
This commit syncs documentation from cloudflare/agents PR #812 (DO NOT LAND: docs/tests/enhancements) to the cloudflare-docs repository. New documentation added: Getting Started: - Quickstart guide with counter agent example - Integration guide for existing Workers projects Core Concepts: - State management (setState, initialState, persistence) - Routing (URL patterns, custom routing, identity) - HTTP & WebSocket lifecycle (hooks, connection management) - Callable methods (RPC over WebSocket, streaming) - Context management (getCurrentAgent) Platform: - Configuration (wrangler.jsonc, environment setup, deployment) Guides: - Client SDK (React useAgent, AgentClient, agentFetch) - Webhooks (routing, signature verification, broadcasting) - Scheduling (delayed, cron, interval patterns) - MCP client (connecting to MCP servers, OAuth) All files follow Cloudflare docs style guide: - MDX format with proper frontmatter - PackageManagers, WranglerConfig, TypeScriptExample components - Full relative links with trailing slashes - No contractions or exclamation marks Source: cloudflare/agents#812
Summary
This PR syncs comprehensive Agents SDK documentation from cloudflare/agents PR #812.
Highlights:
Documentation Added
Getting Started (2 files)
getting-started/quickstart.mdx- Complete getting started guide with counter agent example, client connection, deploymentgetting-started/integrate-existing-project.mdx- How to add agents to existing Workers projects (plain Workers, Hono, React)Core Concepts (5 files)
concepts/state.mdx- State management withsetState(),initialState, persistence, client sync, patterns and best practicesconcepts/routing.mdx- URL routing patterns, custom routing withbasePath, server-sent identity, authentication patternsconcepts/http-websockets.mdx- HTTP request handling, WebSocket connection lifecycle, hibernation, common patternsconcepts/callable-methods.mdx-@callabledecorator, RPC over WebSocket, streaming responses, TypeScript integrationconcepts/get-current-agent.mdx- Context management withgetCurrentAgent()for accessing agent contextPlatform (1 file)
platform/configuration.mdx- Completewrangler.jsoncsetup, environment variables, secrets, deployment, migrationsGuides (4 files)
guides/client-sdk.mdx- ReactuseAgenthook, vanilla JSAgentClient, state synchronization, RPC call patternsguides/webhooks.mdx- Routing webhooks to agents, signature verification, real-time broadcasting, security best practicesguides/scheduling.mdx- Delayed, scheduled, cron, and interval scheduling patterns with complete API referenceguides/mcp-client.mdx- Connecting to MCP servers, OAuth authentication flows, AI SDK integrationNew Features Documented
Scheduling
scheduleEvery()- Fixed-interval recurring tasks with overlap preventionCustom Routing
basePath- Custom URL paths bypassing default/agents/{agent}/{name}patternonIdentity/onIdentityChange- React to identity events from serveridentified/ready- Client state for identity statussendIdentityOnConnect- Server-side control over identity exposureCallable System
stream.error()- Graceful error signaling for streaming methodsgetCallableMethods()- Introspection API for discovering callable methodsMCP Client
addMcpServer()syntaxWebhooks
Style Compliance
All files follow Cloudflare docs style guide:
pcx_content_type,sidebar.order)<PackageManagers>,<WranglerConfig>,<TypeScriptExample>/agents/configuration/)Technical Details
Source PR: cloudflare/agents#812
PR Title: DO NOT LAND: docs/tests/enhancements