Skip to main content

getSwarmStatus

client.swarm.getSwarmStatus(swarmId: string): Promise<SwarmStatusUpdate>

Get the overall status of a swarm.

Retrieves comprehensive status information about a swarm including its operational state, agent availability, team health, and overall readiness to execute tasks.

Parameters

ParameterTypeRequiredDescription
swarmIdstringYesThe unique identifier of the swarm

Returns

Promise<SwarmStatusUpdate> — A promise that resolves to the SwarmStatusUpdate object

Example

import { CodeBoltClient } from '@codebolt/clientsdk';

const client = new CodeBoltClient();

const result = await client.swarm.getSwarmStatus('swarmId');
console.log(result);