getGatherInfo

View as MarkdownOpen in Claude

Return the gather info configuration for this step, if any. This is an internal method on Step.

Parameters

None.

Returns

GatherInfo | null — The GatherInfo instance, or null if not configured.

Example

1import { ContextBuilder } from '@signalwire/sdk';
2
3const builder = new ContextBuilder();
4const ctx = builder.addContext('default');
5const step = ctx.addStep('intake');
6step.setText('Collect info.');
7step.setGatherInfo({ outputKey: 'info' });
8
9console.log(step.getGatherInfo()); // GatherInfo instance