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

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