list
codebolt.agentDeliberation.list(params: IListDeliberationsParams): Promise<IListDeliberationsResponse>
Lists deliberations with optional filtering by type, status, participant, or search terms.
Parameters
params(IListDeliberationsParams, optional): Optional filters for the deliberation list.
Returns
Promise<[IListDeliberationsResponse](/docs/reference/type-reference/codeboltjs/interfaces/IListDeliberationsResponse)>: A promise that resolves to the list of deliberations.
Examples
// List all deliberations
const all = await codebolt.agentDeliberation.list();
// Filter by type
const voting = await codebolt.agentDeliberation.list({
deliberationType: 'voting'
});
// Filter by status
const active = await codebolt.agentDeliberation.list({
status: 'collecting-responses'
});
// Search
const results = await codebolt.agentDeliberation.list({
search: 'database'
});
Notes
- All filters are optional
- Multiple filters are combined with AND logic
- Supports pagination with limit and offset