Skip to main content

list

client.backgroundAgents.list(params?: Record<string, unknown>): Promise<BackgroundAgentInstance[]>

Retrieves all background agent instances.

Returns every background agent instance that has been created, including both active and terminated ones.

Parameters

ParameterTypeRequiredDescription
paramsRecord<string, unknown>NoOptional query parameters for filtering or pagination

Returns

Promise<BackgroundAgentInstance[]> — A promise that resolves to an array of BackgroundAgentInstance objects

Example

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

const client = new CodeBoltClient();

const result = await client.backgroundAgents.list();
console.log(result);