Headers
Body
Schema for the Auto Swarm Builder input configuration.
Attributes: name (Optional[str]): The name of the swarm. description (Optional[str]): A description of the swarm. max_loops (Optional[int]): Maximum number of loops to run (default: 1). return_agents (Optional[bool]): Whether to return agents after building (default: True). model_name (Optional[str]): The model name to use for the swarm (default: "gpt-4.1"). generate_router_config (Optional[bool]): Whether to generate router configuration (default: False). task (Optional[str]): The main task for the swarm (required). max_tokens (Optional[int]): The maximum number of tokens to use for the swarm.
The name of the swarm.
A description of the swarm.
Maximum number of loops to run.
Whether to return agents after building.
The model name to use for the swarm.
Whether to generate router configuration.
The task for the swarm, if any.
The maximum number of tokens to use for the swarm.
Response
Successful Response
Schema for the Auto Swarm Builder API response.
Attributes: success (bool): Whether the swarm was built successfully. job_id (Optional[str]): The job ID of the swarm. outputs (Optional[dict]): The outputs of the auto swarms builder. type (Optional[str]): The type of the swarm execution. timestamp (Optional[str]): The timestamp of the swarm execution. usage (Optional[dict]): The usage statistics of the swarm execution.
Whether the swarm was built successfully.
The job ID of the swarm.
The outputs of the auto swarms builder.
The type of the swarm execution.
The timestamp of the swarm execution.
The usage of the swarm execution.