chap.task.complete
chap.task.completeSubmit a task's final output. Tasks requiring review are held for approval; others complete immediately.
Instructions
Submit a task's output. A task that requires review does not complete: the output is held as the artefact under review, the task moves to review_requested, and a reviewer decision completes it. Any other task completes immediately.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| from | Yes | Participant URI, e.g. 'human:alice@example.org' or 'agent:bot@local'. | |
| output | No | The task's output artefact. Pass a JSON object or array. A JSON-encoded string is parsed back to the structured value before dispatch, so patches in chap.decide.override apply against a real object. | |
| task_id | Yes | Task identifier returned by chap.task.create. | |
| workspace | Yes | Workspace identifier, e.g. 'wsp_techcorp_support'. | |
| confidence | No | Self-reported confidence in the output, between 0 and 1. Written as a decimal string, e.g. "0.86". CHAP canonicalisation accepts integers only, so a JSON number with a fractional part is refused with -32602. | |
| routing_hints | No | Signals recorded on the task and read by the routing/1.0 methods: task.route, review.depth and escalate.auto. Recording a hint has no effect on its own; it is consulted only when one of those methods is called. |