getAgentsDetail
codebolt.agent.getAgentsDetail(agentList: array): Promise<any>
Retrieves detailed information for a list of specified agents.
Parameters
Name | Type | Description |
---|---|---|
agentList | array | List of agent IDs to get details for (empty array for all agents). |
Returns:
Promise<any>
A promise that resolves with the detailed information of the specified agents.Example
// Example 1: Get details for specific agents
const agentDetails = await codebolt.agent.getAgentsDetail(["agent-id-1", "agent-id-2"]);
console.log("Agent Details:", agentDetails);
// Example 2: Get details for all agents
const allAgentDetails = await codebolt.agent.getAgentsDetail([]);
console.log("All Agent Details:", allAgentDetails);