clearSections

View as MarkdownOpen in Claude

Remove all POM sections and direct text from this step, allowing it to be repopulated with new content.

Parameters

None.

Returns

Step — Self for method chaining.

Example

1import { ContextBuilder } from '@signalwire/sdk';
2
3const builder = new ContextBuilder();
4const ctx = builder.addContext('default');
5const step = ctx.addStep('collect_info');
6step.addSection('Task', 'Original instructions.');
7step.clearSections();
8step.addSection('Task', 'Updated instructions for this step.');