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
      • DataMap
      • FunctionResult
      • Helper Functions & Utilities
      • LiveWire
      • PomBuilder
      • Prefabs
      • SkillBase
      • SkillManager
      • SkillRegistry
        • addSearchPath
        • clear
        • create
        • discoverAll
        • discoverFromDirectory
        • getAllSkillsSchema
        • getInstance
        • getSearchPaths
        • getSkillClass
        • getSkillSchema
        • has
        • listAllSkillSources
        • listRegistered
        • listSkills
        • lock
        • register
        • resetInstance
        • unregister
      • 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
  • Returns
  • Example
AgentsSkillRegistry

resetInstance

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

unregister

Next
Built with

Static helper that clears the process-wide SkillRegistry singleton. The next call to getInstance() constructs a fresh registry with no registered skills, cleared search paths, and no locked names.

Intended for use in test suites that need a clean registry per test case. Calling this in production is almost always a bug — every previously registered skill is forgotten, and any code still holding the old instance reference will diverge from the new one.

Returns

void

Example

1import { SkillRegistry } from '@signalwire/sdk';
2
3describe('MySkill', () => {
4 beforeEach(() => {
5 SkillRegistry.resetInstance();
6 const registry = SkillRegistry.getInstance();
7 registry.register(MySkill);
8 });
9
10 afterAll(() => {
11 SkillRegistry.resetInstance();
12 });
13
14 it('registers correctly', () => {
15 expect(SkillRegistry.getInstance().has('my-skill')).toBe(true);
16 });
17});