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

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