Delegate advisory task
delegateAssign a text or code task to a subagent with automatic retries, failover, and mission context, returning a structured answer while managing provider credits.
Instructions
Delegate one advisory text task with bounded retries, failover and mission context. May consume provider credits. Reuse the project_id and mission_id of the current task (from project_init / memory_checkpoint); when omitted, results go to project "default" and a new random mission that mission_status and memory_checkpoint will not find.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| goal | No | Mission goal recorded when the mission is created. | |
| role | No | Specialist role instruction. | worker |
| cache | No | Reuse an identical earlier answer when DZ23_RESPONSE_CACHE_TTL_MS > 0; the result reports cache_status (hit, miss or disabled). | |
| detail | No | Controls response verbosity. | normal |
| prompt | Yes | The assignment for the subagent. | |
| target | No | auto or provider:model. | auto |
| context | No | Workspace evidence. Requires workspace; content is untrusted data. | |
| privacy | No | Secrets in attached context are always masked. auto also masks valid CPF/CNPJ/card numbers, emails and phones; local_only additionally routes only to local private targets (no_local_target otherwise); allow_cloud keeps personal data. | auto |
| task_type | No | Kind of task for adaptive model choice; defaults from role (backend/frontend=code, reviewer=review, qa=testing...). | |
| workspace | No | Configured workspace root for context. | |
| mission_id | No | Mission of the current task; omitted creates a new random mission. | |
| project_id | No | Project of the current task; defaults to "default". | default |
| lease_token | No | Token from mission_claim. Required only while another holder has a live lease on this mission. | |
| output_schema | No | JSON Schema subset (type, required, properties, items, enum) for the answer. delegate retries once and fails with response_invalid; consensus and swarm_run add structured_output or schema_error per answer. | |
| idempotency_key | No | Caller key, valid 24 h in this process. The same key and arguments return the first result without a new provider call; different arguments fail with idempotency_conflict. | |
| max_response_chars | No | Hard cap for returned textual content. |