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

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