respond
codebolt.agentDeliberation.respond(params: IRespondParams): Promise<IRespondResponse>
Submits a response to a deliberation from an agent or user.
Parameters
params(IRespondParams): Parameters including deliberation ID, responder info, and response body.
Returns
Promise<[IRespondResponse](/docs/reference/type-reference/codeboltjs/interfaces/IRespondResponse)>: A promise that resolves to the submitted response.
Examples
// Submit a response
await codebolt.agentDeliberation.respond({
deliberationId: 'delib-123',
responderId: 'agent-456',
responderName: 'Expert Agent',
body: 'Based on my analysis, I recommend option A because...'
});
Notes
- Responses can only be added during 'collecting-responses' status
- Multiple responses per participant are allowed
- Responses are visible to all participants