update
codebolt.agentDeliberation.update(params: IUpdateDeliberationParams): Promise<IUpdateDeliberationResponse>
Updates an existing deliberation's status or request message.
Parameters
params(IUpdateDeliberationParams): Parameters including deliberation ID and fields to update.
Returns
Promise<[IUpdateDeliberationResponse](/docs/reference/type-reference/codeboltjs/interfaces/IUpdateDeliberationResponse)>: A promise that resolves to the updated deliberation.
Examples
// Change status to voting
await codebolt.agentDeliberation.update({
deliberationId: 'delib-123',
status: 'voting'
});
// Update request message
await codebolt.agentDeliberation.update({
deliberationId: 'delib-123',
requestMessage: 'Updated question text...'
});
Notes
- Only status and requestMessage can be updated
- Status changes should follow the workflow
- Creator typically has update permissions