human-in-the-loop.md
attributes
| source_path | references/human-in-the-loop.md |
|---|---|
| source_sha256 | 275aec5f411c94134c7841bb9f31f1c5a07a759ec9dda14df8d3ed4b96acee1a |
| source_url | https://github.com/cloudflare/skills/blob/47dfc2ce969bf62acf8bc231198ade4bb02712e0/skills/agents-sdk/references/human-in-the-loop.md |
| supporting_skill_id | 40176 |
| upstream_revision | 47dfc2ce969bf62acf8bc231198ade4bb02712e0 |
Human-in-the-Loop
Choose the approval layer based on where execution must pause, then fetch its current documentation:
| Need | Documentation |
|---|---|
| Approve chat tool execution or run a browser-side tool | Chat agents — needsApproval, approval responses, client tools, and custom denial messages |
| Pause a durable background task or collect MCP input | Human-in-the-loop patterns — workflow approval, timeout handling, and elicitation |
Distinguish approval responses from client tool outputs. When returning a custom tool error, check whether an explicit continuation is needed. Handle workflow approval timeouts before executing the gated action. Check installed SDK versions before adapting examples.
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.