From 559504d4ee85c4b8810217699fc8666f95acef54 Mon Sep 17 00:00:00 2001 From: Jeremy Tuloup Date: Wed, 3 Sep 2025 17:29:46 +0200 Subject: [PATCH] Fix link to results in human-in-the-loop guide --- docs/src/content/docs/guides/human-in-the-loop.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/src/content/docs/guides/human-in-the-loop.mdx b/docs/src/content/docs/guides/human-in-the-loop.mdx index 66cc9999..ad4792d9 100644 --- a/docs/src/content/docs/guides/human-in-the-loop.mdx +++ b/docs/src/content/docs/guides/human-in-the-loop.mdx @@ -29,7 +29,7 @@ You can define a tool that requires approval by setting the `needsApproval` opti - If approval has not been granted or rejected, the tool will return a static message to the agent that the tool call cannot be executed. - If approval / rejection is missing it will trigger a tool approval request. 3. The agent will gather all tool approval requests and interrupt the execution. -4. If there are any interruptions, the [result](/openai-agents-js/guides/result) will contain an `interruptions` array describing pending steps. A `ToolApprovalItem` with `type: "tool_approval_item"` appears when a tool call requires confirmation. +4. If there are any interruptions, the [result](/openai-agents-js/guides/results) will contain an `interruptions` array describing pending steps. A `ToolApprovalItem` with `type: "tool_approval_item"` appears when a tool call requires confirmation. 5. You can call `result.state.approve(interruption)` or `result.state.reject(interruption)` to approve or reject the tool call. 6. After handling all interruptions, you can resume execution by passing the `result.state` back into `runner.run(agent, state)` where `agent` is the original agent that triggered the overall run. 7. The flow starts again from step 1.