Skip to main content

stop

client.backgroundAgents.stop(instanceId: string, data?: StopBackgroundAgentRequest): Promise<unknown>

Stops a running background agent instance.

Sends a stop signal to the specified background agent, causing it to terminate gracefully.

Parameters

ParameterTypeRequiredDescription
instanceIdstringYesThe unique identifier of the background agent instance to stop
dataStopBackgroundAgentRequestNoOptional stop configuration

Returns

Promise<unknown> — A promise that resolves when the stop signal has been sent

Example

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

const client = new CodeBoltClient();

const result = await client.backgroundAgents.stop('instanceId');
console.log(result);