Skip to main content
clarify is the only planning knob. By default (clarify: false) the agent infers reasonable defaults and executes without asking. Set clarify: true when a human is present and a missing answer would materially change the work.
With clarify: true, the task can stop before execution and return state: "input-required" with the question in message. Use GET /task/{task_id}?wait=50 until done is true, show the question, and answer it with POST /task/{task_id}/continue.

Review, then continue

A common pattern: run the first part, let a human review the rows, then continue the same task with corrections.
Python
Because the task_id is durable, you can interleave agent turns and human review as many times as you need. See Follow-up tasks.

Guidance

  • For background automation, keep clarify: false.
  • Use clarify: true only when the user is present to answer.
  • When continuing after review, restate the current goal as a clear instruction rather than passing the user’s raw words.
  • POST /task/{task_id}/stop changes a running turn to state: "canceled" if a reviewer needs to intervene mid-run.