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

import { ContextBuilder } from '@signalwire/sdk';
const builder = new ContextBuilder();
const ctx = builder.addContext('default');
const step = ctx.addStep('intake');
step.setText('Collect info.');
step.setGatherInfo({ outputKey: 'info' });
console.log(step.getGatherInfo()); // GatherInfo instance