server-driven-messages.md
| source_path | references/server-driven-messages.md |
|---|---|
| source_sha256 | fb12b6e818ee46a9a9ef8a78492d5d01d93ac6da01fa1da5e551bd44d91ce671 |
| source_url | https://github.com/cloudflare/skills/blob/47dfc2ce969bf62acf8bc231198ade4bb02712e0/skills/agents-sdk/references/server-driven-messages.md |
| supporting_skill_id | 40176 |
| upstream_revision | 47dfc2ce969bf62acf8bc231198ade4bb02712e0 |
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.
Children
No children yet.
Like how this is organised?
Build your own Memory tree on knowen.md: notes, decisions and tasks in one connected markdown graph, shared with your team and your AI agents.