Agents
Create Sub-Agent
Create a dynamic sub-agent under a parent agent
POST
Create Sub-Agent
Runtime agent creation is exposed as sub-agent creation under an existing parent agent.
Use KB IDs in
Path Parameters
| Parameter | Type | Description |
|---|---|---|
id | string | Parent agent ID |
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
name | string | yes | Sub-agent name |
description | string | yes | Sub-agent description |
system_prompt | string | no | Custom instructions for the sub-agent |
llm_config | object | no | Model configuration override |
enable_planning | boolean | no | Enable planning for this sub-agent |
enable_reflection | boolean | no | Enable reflection for this sub-agent |
knowledge_bases | string[] | no | KB IDs assigned to the sub-agent |
tool_assignments | string[] | no | Tool names to store as sub-agent assignments on create/update |
knowledge_bases. The create/update tool_assignments field stores tool names. The dedicated assign/remove endpoints under /api/v1/agent/{id}/subagents/{subagent_id}/tools use a tool UUID as tool_identifier.
Response
Returns the created sub-agent configuration with its generated ID.Create Sub-Agent

