Skip to main content

addResponse

client.agentDeliberation.addResponse(id: string, data: AddDeliberationResponseRequest): Promise<DeliberationResponse>

Adds a response to a deliberation.

Submits a new proposal or answer from an agent as part of the deliberation process.

Parameters

ParameterTypeRequiredDescription
idstringYesThe unique identifier of the deliberation
dataAddDeliberationResponseRequestYesThe response payload containing the agent's proposal

Returns

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

Example

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

const client = new CodeBoltClient();

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