addBullets

View as MarkdownOpen in Claude

Add a POM section with bullet points to the context prompt. Cannot be used together with setPrompt().

Parameters

title
stringRequired

Section heading.

bullets
string[]Required

List of bullet point strings.

Returns

Context — Self for method chaining.

Example

import { ContextBuilder } from '@signalwire/sdk';
const builder = new ContextBuilder();
const ctx = builder.addContext('default');
ctx.addBullets('Rules', [
'Never share account numbers with the caller',
'Always confirm changes before applying',
'Escalate fraud concerns immediately',
]);
ctx.addStep('greet').setText('Greet the caller and ask how you can help.');