Skip to Content
kindui

Human Input

Watch an agent ask, wait for approval and take feedback in one run, built from the human input components.

This run puts the human input components together the way a host app would. The agent asks a Question, waits on a Confirmation inside a Tool, and answers with Feedback and Suggestions after it. A Checkpoint marks where the turn started, a Notice and a Guardrail Notice explain what the agent may do, and the composer holds a Model Selector, Reasoning Effort and a Context Meter.

Deploys need your approval

The agent asks before it changes anything outside this repository.
CheckpointBefore shipping the retry fix
Ship the retry fix.
OpenAI
The run stops on the question until you answer it, then on the deploy until you approve it. The first Approve fails on purpose, so press it again. Rate the reply, pick a suggestion, or press Replay to start over.

What Happens

  • Question: the run waits until you pick where the fix goes and press Submit. The form then reads "Answered" with your answer.
  • Approval: the deploy tool shows "Run deploy?" with Approve and Deny. The first Approve leaves the request submit-failed, so the choices come back with "Decision not sent. Try again." The next one is recorded, and the tool keeps "Approved", not the buttons.
  • Checkpoint: Restore opens a dialog that asks first. Once it's restored, the checkpoint reads "Restored".
  • Reply: once the reply finishes, rate it with the thumbs. Add a comment then opens a box for a comment.
  • Suggestions: each one sends a follow-up. "Email the logs to the vendor" is blocked, and the Guardrail Notice says why; press Why? for the policy, or dismiss it to pick again.
  • Composer: pick a model and an effort level. The context meter fills as the run goes on; hover, focus or press it for the token counts.

Each component gets its state from the host as plain data, here a timer stepping through a script, and calls the host back when a person decides. In an app, the same data comes from your model's stream, for example through the AI SDK adapter.

Every component here runs in React and Web Components. The example is React.

On this page