chap.whisper.ask
chap.whisper.askAsk participants a question with a deadline and fallback answer, preventing tasks from stalling on unanswered replies.
Instructions
Put one question to one or more participants, with a deadline and a default. If the deadline passes unanswered the default applies, so a task is never blocked waiting on a reply.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Who is being asked. | |
| from | Yes | Participant URI, e.g. 'human:alice@example.org' or 'agent:bot@local'. | |
| options | No | Multiple-choice options. When present, an answer must name one of these ids in answer_option; any other id is refused with -32022. | |
| task_id | Yes | Task identifier returned by chap.task.create. | |
| urgency | No | How urgent the question is. Recorded and passed on to the client; it does not change the deadline or the lapse behaviour. | low |
| question | Yes | The question being put. A whisper is answered on its own, without the recipient opening the task. | |
| workspace | Yes | Workspace identifier, e.g. 'wsp_techcorp_support'. | |
| deadline_ms | Yes | How long the whisper stays open, in milliseconds from now. Once it passes, the whisper lapses and default_if_lapsed is applied. | |
| default_if_lapsed | Yes | The value applied if the deadline passes with no answer. Required, so that a lapsed whisper still has a defined outcome. |