For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Clear all top-level sections from the builder, returning it to an empty
initial state. Also clears the internal section lookup map used by
hasSection()
and
getSection().
Returns
this — returns the builder for fluent chaining.
Example
1
import { PomBuilder } from '@signalwire/sdk';
2
3
const pom = new PomBuilder();
4
pom.addSection('Intro', { body: 'Welcome.' });
5
pom.addSection('Rules', { bullets: ['Be nice.', 'Stay on topic.'] });