getSteps

View as MarkdownOpen in Claude

Return the internal map of all steps in this context. This is an internal method on Context.

Parameters

None.

Returns

Map<string, Step> — The step map keyed by step name.

Example

import { ContextBuilder } from '@signalwire/sdk';
const builder = new ContextBuilder();
const ctx = builder.addContext('default');
ctx.addStep('greet').setText('Greet the caller.');
ctx.addStep('ask_name').setText('Ask for their name.');
console.log(ctx.getSteps().size); // 2