addSystemBullets

View as MarkdownOpen in Claude

Add a POM section with bullets to the system prompt. Cannot be combined with setSystemPrompt().

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();
4builder.addContext('default').addStep('menu').setText('Ask what the caller needs.');
5
6const support = builder.addContext('support');
7support.addSystemBullets('Guidelines', [
8 'Verify identity before making changes',
9 'Offer to escalate if issue is unresolved after 5 minutes',
10]);
11support.addStep('diagnose').setText('Understand the customer\'s issue.');