Skip to main content

removePheromone

client.jobs.removePheromone(id: string, type: string): Promise<void>

Removes a pheromone of a specific type from a job.

Clears the pheromone signal, which may affect coordination behavior of agents that rely on its presence.

Parameters​

ParameterTypeRequiredDescription
idstringYesThe unique identifier of the job
typestringYesThe pheromone type name to remove

Returns​

Promise<void> — A promise that resolves when the pheromone has been removed

Example​

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

const client = new CodeBoltClient();

const result = await client.jobs.removePheromone('id', 'type');
console.log(result);