Registered waits
A decline is an answer like any other: the step receives it and the workflow decides what to do with it.
What raises a wait
- A Wait step. The step puts the question you wrote to a person through a declared wait.
- A model step. A ModelCall that lists a wait in its Operations may call it and write the question itself. Clarification is offered to every model step whose output admits calls without being listed; every other wait reaches a model step only where it is listed.
- An exhausted step. A step with OnExhausted: Wait raises Clarification when its attempts or budget run out, saying what ran out and how much was spent.
Declaring a wait
A wait a step names is declared in Operations under Wait, and the binding’s name is the registration’s name. An upload naming a wait that is not registered is refused.
Operations:
- Wait: Clarification
Locator: embedded://momor.ai/services/tools/clarificationAnswering
A raised wait appears on the run’s event stream as wait.<class>.raised, for example wait.intervention.raised, carrying its waitId, the question and the schema the answer must match. Answer it with POST /workflow/runs/{runId}/waits/{waitId}. When a step is waiting on several things at once, it continues only once every one of them is answered.
While a turn waits
- New requests. A request arriving at the run follows the workflow’s Mode, exactly as if the turn were running.
- Cancelling. Cancelling the turn ends its waits. A late answer is refused with 410.
- Advisories. A model can also raise an advisory: a notice for the person that does not stop the run, recorded as advisory.raised.