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

import { ContextBuilder } from '@signalwire/sdk';
const builder = new ContextBuilder();
builder.addContext('default').addStep('menu').setText('Ask what the caller needs.');
const escalation = builder.addContext('escalation');
escalation.setFullReset(true);
escalation.setSystemPrompt('You are a senior escalation specialist.');
escalation.addStep('investigate').setText('Investigate the escalated issue in detail.');