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

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