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
          • addBullets
          • addEnterFiller
          • addExitFiller
          • addSection
          • addStep
          • addSystemBullets
          • addSystemSection
          • getStep
          • moveStep
          • removeStep
          • setConsolidate
          • setEnterFillers
          • setExitFillers
          • setFullReset
          • setInitialStep
          • setIsolated
          • setPostPrompt
          • setPrompt
          • setSystemPrompt
          • setUserPrompt
          • setValidContexts
          • setValidSteps
        • createSimpleContext
        • GatherInfo & GatherQuestion
        • getCompletionAction
        • getContext
        • getGatherInfo
        • getQuestions
        • getStepOrder
        • getSteps
        • getValidContexts
        • reset
        • Step
        • 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
AgentsContextBuilderContext

setFullReset

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

setInitialStep

Next
Built with

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.');