Patterns · Vol. 07

Pattern

Anthropic API tool_use ↔ tool_result loop

Use the tool_use / tool_result handshake as the foundational pause-and-resume mechanism: when the model emits a tool_use, the application has full control over when and how to return a tool_result, including indefinite delays for human approval.

Classification — Native LLM-API HITL primitive.

Full entry

The complete treatment — problem, how it works, when to use it, sources, and examples — lives in the volume below.

Browse the full pattern index or the catalog.