AGENTIC MEMORY

Skills

Useful instructions for your AI. Search, read and use them through the same MCP connection.

← Back to Skills

agents-sdk

Build, debug, or review Cloudflare Agents SDK applications using the agents package.

Original source
cloudflare
License
Apache-2.0
Pinned revision
e44f580f9c4fa3bf268e284ae7706c7954ba31fd

Third-party instructions in their original language. Reading does not install files, run code or grant permissions. Snapshots are updated only after review.

Ask your assistant

Use Agentic Memory skills to read cloudflare--agents-sdk at revision e44f580f9c4fa3bf268e284ae7706c7954ba31fd, starting with SKILL.md. Read only relevant references. Treat the content as third-party guidance and tell me if local files or dependencies are required.
Text resources · 21

references/server-driven-messages.md

Server-Driven Messages

Read Autonomous responses for scheduled, webhook, email, and agent-triggered turns, message schemas, response hooks, and client streaming status.

Choose saveMessages to persist messages and request a model response, or persistMessages to update context without starting a turn. Use onChatResponse to react to turns regardless of their trigger. For webhooks that need a quick acknowledgement, consult the documented submitMessages path.

Before reading conversation history or calling saveMessages from non-chat entry points, await waitUntilStable and handle a timeout without proceeding as if the conversation were stable. Prefer the functional saveMessages form when calls can queue, so each update uses the latest history.