Skip to navigation

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

FunctionResult — this, for chaining.

Example

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