The flow
- Post the question. The stored callback client records the request in the run’s event stream.
- Claim the request. One router claims it. Competing routers cannot hold the same request at once.
- Collect the answer. The router asks a person, agent, or service.
- Submit the result. The client checks the answer and records it.
- Continue the workflow. The host, the code driving the run, reads the decision and explicitly resumes the paused work when appropriate.
Answerers
- A person: A router can open a surface to collect a decision.
- An agent: A router can ask an agent to examine the input and answer.
- A service: A router can call a service and submit the returned data.
Why the answer is structured
A response has named fields. For example, an approval can contain anapproved boolean. Your workflow can branch on that value without asking
another model what the answer meant.
The built-in checks cover required fields and their top-level types. Your
host must check any deeper rules it needs before submitting the response.