Server SDKs
Build AI agents, control calls, send messages, and more
Return the list of valid context names the AI may navigate to from this context. This is an internal method on Context.
Context
None.
string[] | null — The allowed context names, or null if not set.
string[] | null
null
1import { ContextBuilder } from '@signalwire/sdk';23const builder = new ContextBuilder();4const ctx = builder.addContext('default');5ctx.setValidContexts(['sales', 'support']);67console.log(ctx.getValidContexts()); // ["sales", "support"]