Dokumentationerreichbar
OpenAI Agents SDK, Human-in-the-loop
openai.github.io (externe Seite)
Die zweite Form von Human in the Loop, kurz HITL: Ein Mensch gibt eine einzelne Handlung frei, statt das Gespräch zu übernehmen. Der Lauf hält an, bis die Entscheidung da ist, und lässt sich dafür sichern und später fortsetzen. Welche Tools eine Freigabe brauchen, erklärt das Tool selbst.
geprüft 10.11.2026
Worauf sich diese Seite beruft, wörtlich, abgerufen am 07.08.2026:
Use the human-in-the-loop (HITL) flow to pause agent execution until a person approves or rejects sensitive tool calls.
bestätigt 10.11.2026Tools declare when they need approval, run results surface pending approvals as interruptions, and Run
bestätigt 10.11.2026State lets you serialize paused runs and resume them after decisions are made. Only deserialize snapshots from trusted storage, or snapshots whose complete integrity and ownership the application has verified.
bestätigt 10.11.2026Possession of a run ID or decision ID is not authorization.
bestätigt 10.11.2026Approval permits a tool call to execute; it does not guarantee exactly-once execution.
bestätigt 10.11.2026If a tool performs an external action and the process stops before the application stores the updated run state, resuming from the older approved snapshot can execute the tool again.
bestätigt 10.11.2026For tools with consequential side effects, the application should assign a stable idempotency key to each logical action and pass that key to a destination that atomically prevents duplicate effects.
bestätigt 10.11.2026If the outcome remains uncertain, the application should record it as unknown and avoid automatic replay.
bestätigt 10.11.2026