For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Log inSign up
Support
GuidesReference
GuidesReference
    • Core
      • Overview
    • Agents
      • Overview
      • AgentBase
      • AgentServer
      • Configuration
      • ContextBuilder
        • addContext
        • Context
        • createSimpleContext
        • GatherInfo & GatherQuestion
        • getCompletionAction
        • getContext
        • getGatherInfo
        • getQuestions
        • getStepOrder
        • getSteps
        • getValidContexts
        • reset
        • Step
          • addBullets
          • addGatherQuestion
          • addSection
          • clearSections
          • setEnd
          • setFunctions
          • setGatherInfo
          • setResetConsolidate
          • setResetFullReset
          • setResetSystemPrompt
          • setResetUserPrompt
          • setSkipToNextStep
          • setSkipUserTurn
          • setStepCriteria
          • setText
          • setValidContexts
          • setValidSteps
        • toDict
        • validate
      • DataMap
      • FunctionResult
      • Helper Functions & Utilities
      • LiveWire
      • PomBuilder
      • Prefabs
      • SkillBase
      • SkillManager
      • SkillRegistry
      • Skills
      • SwaigFunction
      • SwmlBuilder
      • SWMLService
    • RELAY
      • Overview
      • Actions
      • Call
      • Constants
      • Events
      • Message
      • RelayClient
      • RelayError
    • REST Client
      • Overview
      • Addresses
      • Calling
      • ChatResource
      • Compat
      • Datasphere
      • Fabric
      • ImportedNumbersResource
      • Logs
      • LookupResource
      • MFA
      • Number Groups
      • Phone Numbers
      • Project
      • PubSubResource
      • Queues
      • Recordings
      • Registry
      • RestClient
      • RestError
      • Short Codes
      • SIP Profile
      • Verified Callers
      • Video
LogoLogoSignalWire Docs
Log inSign up
Support
On this page
  • Parameters
  • Returns
  • Example
AgentsContextBuilderStep

setResetFullReset

|View as Markdown|Open in Claude|
Was this page helpful?
Edit this page
Previous

setResetSystemPrompt

Next
Built with

Set whether to perform a full conversation reset when this step switches contexts.

Parameters

fullReset
booleanRequired

Whether to perform a full conversation reset on context switch.

Returns

Step — Self for method chaining.

Example

1import { ContextBuilder } from '@signalwire/sdk';
2
3const builder = new ContextBuilder();
4const ctx = builder.addContext('default');
5ctx.addStep('greet').setText('Welcome the caller.');
6const transfer = ctx.addStep('transfer');
7transfer.setText('Transfer the caller to billing.');
8transfer.setValidContexts(['billing']);
9transfer.setResetFullReset(true);
10transfer.setResetSystemPrompt(
11 'You are a billing specialist. Forget all previous context.'
12);
13builder.addContext('billing').addStep('invoice').setText('Help with billing inquiries.');