setFullReset

View as MarkdownOpen in Claude

Set whether to fully reset conversation history when entering this context. When true, the conversation starts fresh rather than carrying over prior turns.

Parameters

fullReset
booleanRequired

Whether to fully reset conversation history when entering this context.

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 escalation = builder.addContext('escalation');
7escalation.setFullReset(true);
8escalation.setSystemPrompt('You are a senior escalation specialist.');
9escalation.addStep('investigate').setText('Investigate the escalated issue in detail.');