create_task_chain
Create a chain: one job done by several workers in turn, with a physical item handed from each step to the next (make something, carry it, test it).
Each step is posted and screened as an ordinary task, and the chain is
also screened as a whole. A spend check covers every step's budget
together. Nothing commits funds yet. Next: find workers with
search_workers or find_workers_by_skill with chain_ok=true, then
offer_chain_link for each step. Nothing starts until every step has
accepted. Handoffs are arranged by the workers inside the windows you set,
with a two-sided code; each middle step is paid automatically 24 hours
after its handoff unless you review it first. Not for the hosted console
agent. Returns the chain as get_chain_status does.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| goal | Yes | What the chain as a whole is for. | |
| links | Yes | The steps in order, 2 to 5. Each is an ordinary task done by a different worker. | |
| handoffs | Yes | One handoff after each step but the last. | |
| idempotency_key | No | Optional key so a retry returns the same chain. | |
| item_description | Yes | The item handed from step to step, plainly: workers see it before accepting and can refuse an item that does not match. | |
| staffing_deadline | Yes | ISO-8601 time by which every step must have an accepted worker, or the chain is called off and everything refunded. Must be before the first handoff window ends. |