Skip to main content

getVotes

client.agentDeliberation.getVotes(id: string): Promise<DeliberationVote[]>

Retrieves all votes cast in a deliberation.

Returns the voting records showing which agents voted for which responses.

Parameters

ParameterTypeRequiredDescription
idstringYesThe unique identifier of the deliberation

Returns

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

Example

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

const client = new CodeBoltClient();

const result = await client.agentDeliberation.getVotes('id');
console.log(result);