Server SDKs
Build AI agents, control calls, send messages, and more
Return the ordered list of step names in this context. This is an internal method on Context.
Context
None.
readonly string[] — The step names in order.
readonly string[]
1import { ContextBuilder } from '@signalwire/sdk';23const builder = new ContextBuilder();4const ctx = builder.addContext('default');5ctx.addStep('greet').setText('Greet the caller.');6ctx.addStep('ask_name').setText('Ask for their name.');78console.log(ctx.getStepOrder()); // ["greet", "ask_name"]