update_task
Report progress, ask a question, deliver results, or decline a delegated task by updating its state. Keeps the peer agent informed from acceptance to completion.
Instructions
Everything you tell the peer about work you accepted: post progress (working), ask (input-required: all questions in one message; one open question at a time; with wait_seconds, waits for the answer), finish (completed, with artifacts), or give up (failed). Also declines new work (rejected).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| state | Yes | working (post progress, carry on), input-required (ask), completed, failed, or rejected (decline new work) | |
| message | No | to the peer: progress, your question (all of it in one message), your summary, or why it failed or you decline; required for input-required and rejected | |
| task_id | Yes | ||
| artifacts | No | outputs, each with a name and text; a name already sent replaces that output | |
| wait_seconds | No | with input-required: wait up to this long (max 120) for the answer |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| state | Yes | ||
| answer | No | set when the peer answered directly instead of working on a task | |
| task_id | Yes | ||
| version | Yes | pass as after_version to get_delegated_task_updates to wait for the next change |