Skip to main content

getTerminationRegistry

client.swarm.getTerminationRegistry(swarmId: string): Promise<unknown>

Get the termination registry for a swarm.

Retrieves the termination registry containing information about all agents that have been terminated from the swarm, including their lifecycle history and termination reasons.

Parameters​

ParameterTypeRequiredDescription
swarmIdstringYesThe unique identifier of the swarm

Returns​

Promise<unknown> — A promise that resolves to the termination registry data

Example​

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

const client = new CodeBoltClient();

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