Skip to main content

addVote

client.agentDeliberation.addVote(id: string, data: AddDeliberationVoteRequest): Promise<DeliberationVote>

Casts a vote on a deliberation.

Records an agent's vote for a specific response within the deliberation.

Parameters

ParameterTypeRequiredDescription
idstringYesThe unique identifier of the deliberation
dataAddDeliberationVoteRequestYesThe vote payload

Returns

Promise<DeliberationVote> — A promise that resolves to the recorded DeliberationVote

Example

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

const client = new CodeBoltClient();

const result = await client.agentDeliberation.addVote('id', /* AddDeliberationVoteRequest */);
console.log(result);