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

# Human In The Loop

> Pause and resume team runs for confirmation, user input, and external tool execution.

| Example                                                                                                              | Description                                                                                             |
| -------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- |
| [Confirmation Required](/examples/teams/human-in-the-loop/confirmation-required)                                     | Demonstrates team-level pause/continue flow for confirmation-required member tools.                     |
| [External Tool Execution](/examples/teams/human-in-the-loop/external-tool-execution)                                 | Demonstrates resolving external tool execution requirements in team flows.                              |
| [User Input Required](/examples/teams/human-in-the-loop/user-input-required)                                         | Demonstrates collecting required user input during paused team tool execution.                          |
| [Confirmation Rejected](/examples/teams/human-in-the-loop/confirmation-rejected)                                     | The team handles rejection of a tool call.                                                              |
| [Confirmation Rejected Stream](/examples/teams/human-in-the-loop/confirmation-rejected-stream)                       | Reject a member agent tool call while streaming team events.                                            |
| [Confirmation Required Async](/examples/teams/human-in-the-loop/confirmation-required-async)                         | Runs the same confirmation flow as the synchronous example using team.arun() and team.acontinue\_run(). |
| [Confirmation Required Async Stream](/examples/teams/human-in-the-loop/confirmation-required-async-stream)           | Team HITL Async Streaming: Member agent tool requiring confirmation.                                    |
| [Confirmation Required Stream](/examples/teams/human-in-the-loop/confirmation-required-stream)                       | Pause a streaming team run when a member agent tool requires confirmation.                              |
| [External Tool Execution Stream](/examples/teams/human-in-the-loop/external-tool-execution-stream)                   | Pause a streaming team run when a member agent tool executes externally.                                |
| [Team Tool Confirmation](/examples/teams/human-in-the-loop/team-tool-confirmation)                                   | Require confirmation for a tool on the team itself.                                                     |
| [Team Tool Confirmation Stream](/examples/teams/human-in-the-loop/team-tool-confirmation-stream)                     | Require confirmation for a tool on the team itself while streaming.                                     |
| [User Input Required Stream](/examples/teams/human-in-the-loop/user-input-required-stream)                           | Pause a streaming team run when a member agent tool requires user input.                                |
| [Confirmation Required with Dependencies](/examples/teams/human-in-the-loop/confirmation-required-with-dependencies) | Team HITL: dependencies/session\_state survive across continue\_run.                                    |
