Skip to main content

getPheromones

client.jobs.getPheromones(id: string): Promise<Pheromone[]>

Retrieves all pheromones attached to a specific job.

Returns the list of pheromone signals that have been deposited on the job by agents, useful for understanding the job's coordination state.

Parameters​

ParameterTypeRequiredDescription
idstringYesThe unique identifier of the job

Returns​

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

Example​

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

const client = new CodeBoltClient();

const result = await client.jobs.getPheromones('id');
console.log(result);