Skip to content

Commit 7127537

Browse files
committed
docs: explain how sub-agents choose a model
1 parent c3a5876 commit 7127537

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎docs/features/chat-conversations/chat-features/subagents.mdx‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,10 @@ What delegation costs shows up in [Analytics](/features/administration/analytics
106106

107107
`delegate_task` takes the `task` to perform, optional `context` to carry across (decisions, file paths, findings), optional `file_ids` naming attachments the sub-agent has to open (see [Handing Over Files](#handing-over-files)), `model_id` to pick one of the model's sub-agent models, and `background` when background sub-agents are enabled.
108108

109+
The **Sub-agents** list in the model editor gives the parent model additional targets it can choose. When a `delegate_task` call omits `model_id`, the sub-agent runs on the current model even if the list contains other models.
110+
111+
If the expected target is missing, check that the target is configured on the parent model and available to the user running the chat. Open WebUI offers only configured targets the user can access. If no targets qualify, the tool omits the `model_id` parameter. If a call explicitly names an unavailable target, it returns an error.
112+
109113
:::info The Sub-agents category also controls timers
110114
The `timer` tool is injected by the same category and the same [`ENABLE_SUBAGENTS`](/reference/env-configuration#enable_subagents) toggle. Turning sub-agents off also removes timers.
111115
:::

0 commit comments

Comments
 (0)