questionstringrequiredWhat it is asking.
optionsstring[]Two to four short answers, when it can offer them.
When it asks
- The request is ambiguous and the choice is genuinely yours.
- After two failed attempts at the same approach — it is told to ask rather than improvise a third.
Wiring it
api.agents.create({
runtime: "local", machine: pc, model,
onQuestion: async ({ question, options }) => askThePerson(question, options),
});api.agents.create(
runtime="local", machine=pc, model=model,
on_question=lambda request: ask_the_person(request["question"], request["options"]),
)A question event is emitted before the callback is awaited, so an interface can paint the dialog while the loop waits.
Without the callback
An agent with no onQuestion is instructed to make a judgement call or explain what is blocking. That is a different run, not a stuck one — but it means an unattended agent will choose for you.
A subagent never gets it
One of three tools a subagent does without, along with todo_write and memory. It is told it cannot talk to you and must report back instead.