> ## 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.

# Zustand und Freigabe

> Pausiere Python-Agents für menschliche Entscheidungen und setze anwendungsverwalteten Zustand fort.

Verwende `human_review` als allgemeinen Prüfpunkt. Freigabepflichtige und manuelle Tools tragen die exakten Aufruf-IDs in `paused.run.pause.pending_tool_calls` ein.

```python theme={null}
from phaseo_agent import AgentToolDecision, AgentToolOutput

pending = paused.run.pause.pending_tool_calls

continued = agent.continue_run(
    run=paused,
    client=client,
    approvals=[AgentToolDecision(pending[0].call.id)],
    tool_outputs=[AgentToolOutput(pending[1].call.id, {"status": "complete"})],
)
```

Gib `rejections` für abgelehnte Aufrufe oder `human_input` für eine allgemeine Prüfungsunterbrechung an. Entscheidungen werden anhand der Aufruf-ID zugeordnet, nicht anhand des Tool-Namens.

Implementiere `AgentStateAccessor.load(run_id)` und `save(result)`, wenn Ausführungen Anfragen oder Prozessneustarts überstehen müssen. Die Fortsetzung kann den Zustand dann über `run_id` laden.

## Weiterführende Themen

* [Werkzeuge](./agent-sdk-tools.mdx)
* [Ausführung steuern](./agent-sdk-run-controls.mdx)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.