Skip to main content

getBySwarm

client.agentDebugApi.getBySwarm(swarmId: string): Promise<AgentDebugInstance[]>

Retrieves agent instances associated with a specific swarm.

Returns all debug instances that belong to the given swarm, useful for inspecting multi-agent coordination.

Parameters

ParameterTypeRequiredDescription
swarmIdstringYesThe unique identifier of the swarm to query

Returns

Promise<AgentDebugInstance[]> — A promise that resolves to an array of AgentDebugInstance objects for that swarm

Example

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

const client = new CodeBoltClient();

const result = await client.agentDebugApi.getBySwarm('swarmId');
console.log(result);