> ## Documentation Index
> Fetch the complete documentation index at: https://phaseo.app/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# State and approval

> Pause PHP agents for human decisions and continue application-owned state.

Use `AgentDefinition::$humanReview` for a general checkpoint. Approval-gated and manual tools populate `$result->run->pause->pendingToolCalls` with exact call IDs.

Continue through `Agent::continueRun(...)` with:

* `ToolDecision` values in approvals or rejections
* `ToolOutput` values for manual work
* human input for a general review pause

Use `continueRunById(...)` with a `StateAccessor` when the application should reload the run from storage. Decisions are matched by call ID, not tool name.

## Related

* [Tools](./agent-sdk-tools)
* [Run controls](./agent-sdk-run-controls)
