v46

latestOpenAPI 3.1.0raw.githubusercontent.com2025-11-25213680.0 KB
Auto Swarm Builder

Auto-Generate Agent Swarm

Generate and orchestrate agent swarms autonomously using AI-powered swarm composition and task decomposition.

post/v1/auto-swarm-builder/completions

Headers

x-api-keystring required

Request body

namestring nullable

The name of the swarm.

descriptionstring nullable

A description of the swarm.

max_loopsinteger nullable

Maximum number of loops to run.

execution_type'return-agents' | 'return-swarm-router-config' | 'return-agents-objects' nullable

The type of execution to perform.

model_namestring nullable

The model name to use for the swarm.

taskstring nullable

The task for the swarm, if any.

max_tokensinteger nullable

The maximum number of tokens to use for the swarm.

Response

Successful Response

successboolean required

Whether the swarm was built successfully.

job_idstring nullable

The job ID of the swarm.

outputsobject nullable

The outputs of the auto swarms builder.

typestring nullable

The type of the swarm execution.

timestampstring nullable

The timestamp of the swarm execution.

usageobject nullable

The usage of the swarm execution.