delegate_task
Send an instruction to a configured AI assistant and get a task ID for asynchronous polling. Use it to run background work, including parallel, review, debate, or pipeline modes.
Instructions
Delegate a task to a configured assistant and return a structured task id.
The task runs asynchronously; poll get_task() for status. Task metadata includes task_id, assistant_id, status, timestamps, task, context, result and error.
Args: assistant_id: Assistant id to delegate to. task: The task/instruction for the assistant. context: JSON object of additional context for the assistant. timeout: Per-task timeout in seconds (defaults to the global default). depth: Current delegation depth (advanced; leave 0 for top-level tasks). mode: Delegation mode (delegate, parallel, review, debate, pipeline).
Returns: JSON: {"ok": true, "task": {...}} with task_id and status "queued".
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | delegate | |
| task | Yes | ||
| depth | No | ||
| context | No | {} | |
| timeout | No | ||
| assistant_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |