Skip to main content

getActive

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

Retrieves currently active background agents.

Returns only the background agents that are currently running, excluding terminated or stopped instances.

Parameters

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

Returns

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

Example

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

const client = new CodeBoltClient();

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