Skip to content

Commit 34c4b8d

Browse files
authored
Fix link to results in human-in-the-loop guide (#426)
1 parent 4d1470a commit 34c4b8d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/src/content/docs/guides/human-in-the-loop.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ You can define a tool that requires approval by setting the `needsApproval` opti
2929
- 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.
3030
- If approval / rejection is missing it will trigger a tool approval request.
3131
3. The agent will gather all tool approval requests and interrupt the execution.
32-
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.
32+
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.
3333
5. You can call `result.state.approve(interruption)` or `result.state.reject(interruption)` to approve or reject the tool call.
3434
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.
3535
7. The flow starts again from step 1.

0 commit comments

Comments
 (0)