Human In The Loop

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

ExampleDescription
Confirmation RequiredDemonstrates team-level pause/continue flow for confirmation-required member tools.
External Tool ExecutionDemonstrates resolving external tool execution requirements in team flows.
User Input RequiredDemonstrates collecting required user input during paused team tool execution.
Confirmation RejectedThe team handles rejection of a tool call.
Confirmation Rejected StreamReject a member agent tool call while streaming team events.
Confirmation Required AsyncRuns the same confirmation flow as the synchronous example using team.arun() and team.acontinue_run().
Confirmation Required Async StreamTeam HITL Async Streaming: Member agent tool requiring confirmation.
Confirmation Required StreamPause a streaming team run when a member agent tool requires confirmation.
External Tool Execution StreamPause a streaming team run when a member agent tool executes externally.
Team Tool ConfirmationRequire confirmation for a tool on the team itself.
Team Tool Confirmation StreamRequire confirmation for a tool on the team itself while streaming.
User Input Required StreamPause a streaming team run when a member agent tool requires user input.
Confirmation Required with DependenciesRe-pass dependencies on resume so the member tool receives them.
Multi-Round User InputHandle repeated pauses while collecting a name and dining preferences.