agents-sdk

Build stateful Cloudflare Agents with persistent state and WebSocket support.

Updated Dec 17, 2024
One-click install
npx skills add https://github.com/LAF-US/IDAHO-VAULT --skill agents-sdk-laf-us
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: agents-sdk
Source: https://github.com/LAF-US/IDAHO-VAULT/tree/main/.codex/plugins/cache/openai-curated/cloudflare/314574a046f21938025ae443f9c6dbbd0c2c9b7a/skills/agents-sdk
Command: npx skills add https://github.com/LAF-US/IDAHO-VAULT --skill agents-sdk-laf-us

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Build AI agents on Cloudflare Workers using the Agents SDK to provide a persistent state model, lifecycle hooks, and integrated tooling, reducing boilerplate and enabling reliable, scalable agents.

Core Features & Use Cases

  • Persistent state: SQLite-backed storage with automatic client broadcasts and cross-instance consistency to support durable agents.
  • RPC and events: @callable-based remote procedure calls and streaming capabilities for client and inter-agent communication.
  • Scheduling & workflows: Scheduling, cron tasks, and AgentWorkflow for durable, long-running tasks with automatic retries.
  • MCP integration: Tools to connect to MCP servers and orchestrate multi-server tooling within a single agent ecosystem.
  • Real-time interactions: WebSocket-based interactions and React hooks for client apps.

Quick Start

Install the Agents SDK in your Worker project and initialize a basic agent to manage state, workflows, and WebSocket interactions.

Frequently Asked Questions about agents-sdk

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build stateful Cloudflare Workers with persistent state?

You can build stateful Cloudflare Workers using the Agents SDK to provide a persistent state model with SQLite-backed storage, automatic client broadcasts, and cross-instance consistency for durable agents.

How do I manage durable workflows and scheduled tasks on Cloudflare?

To manage durable workflows and scheduled tasks on Cloudflare, use the Agents SDK to configure cron tasks and AgentWorkflow for long-running tasks with automatic retries and lifecycle hooks.

How do I set up real-time WebSocket interactions for Cloudflare agents?

Real-time WebSocket interactions for Cloudflare agents are set up using the Agents SDK, which provides WebSocket support and React hooks for client app integration.

Can I connect my Cloudflare Worker to an MCP server?

Yes, you can connect your Cloudflare Worker to MCP servers using the Agents SDK, which includes tools to connect and orchestrate multi-server tooling within a single agent ecosystem.

How do I implement RPC for client and inter-agent communication on Cloudflare?

Implement RPC for client and inter-agent communication on Cloudflare using the Agents SDK's @callable decorator, enabling remote procedure calls and streaming capabilities.

What is the best way to reduce boilerplate when building AI agents on Cloudflare Workers?

The best way to reduce boilerplate when building AI agents on Cloudflare Workers is using the Agents SDK, which integrates lifecycle hooks, persistent state management, and tooling to enable reliable, scalable agents.