Skip to main content

addPheromone

client.jobs.addPheromone(id: string, data: PheromoneDepositRequest): Promise<Pheromone>

Deposits a pheromone signal on a job.

Attaches a pheromone of the specified type to the job, which other agents can detect and use for coordination decisions.

Parameters

ParameterTypeRequiredDescription
idstringYesThe unique identifier of the job
dataPheromoneDepositRequestYesPheromone deposit payload including type and value

Returns

Promise<Pheromone> — A promise that resolves to the created

Example

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

const client = new CodeBoltClient();

const result = await client.jobs.addPheromone('id', /* PheromoneDepositRequest */);
console.log(result);