swmlChangeContext

View as MarkdownOpen in Claude

Switch to a different conversation context. Contexts represent distinct operational modes (e.g., “sales”, “support”, “billing”), each with their own prompts, tools, and steps defined via ContextBuilder.

Parameters

contextName
stringRequired

Name of the context to switch to.

Returns

FunctionResultthis, for chaining.

Example

1import { FunctionResult } from '@signalwire/sdk';
2
3const result = new FunctionResult()
4 .swmlChangeContext('billing');