Skip to main content

getAgents

client.planner.getAgents(): Promise<PlannerAgent[]>

Retrieves all agents registered in the planner.

Returns the list of agents that have been assigned tasks or are available for task assignment. Each agent includes its current workload and assignment information.

Parameters​

No parameters.

Returns​

Promise<PlannerAgent[]> — A promise that resolves to an array of planner agents

Example​

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

const client = new CodeBoltClient();

const result = await client.planner.getAgents();
console.log(result);