Skip to main content

AgUiHumanInTheLoopExample

Agent Runtimes


Agent Runtimes / examples / AgUiHumanInTheLoopExample

Variable: AgUiHumanInTheLoopExample

const AgUiHumanInTheLoopExample: React.FC

Defined in: examples/AgUiHumanInTheLoopExample.tsx:348

AgUiHumanInTheLoopExample Component

Demonstrates human-in-the-loop approval patterns with AG-UI. The agent generates task steps that require human approval before proceeding.

Features demonstrated:

  • Tool call rendering with Reject/Confirm buttons
  • respond callback for sending user decisions back to the agent
  • UI state changes based on user actions