getPomBuilder

View as MarkdownOpen in Claude

Return the underlying PomBuilder instance, if POM mode is active. Returns null if POM is not in use (i.e., the manager was created with usePom = false and no sections have been added).

Parameters

None.

Returns

PomBuilder | null — The PomBuilder, or null if POM is not in use.

Example

1import { PromptManager } from '@signalwire/sdk';
2
3const pm = new PromptManager();
4pm.addSection('Role', { body: 'You are a support agent.' });
5const pom = pm.getPomBuilder();
6if (pom) {
7 console.log(pom.renderMarkdown());
8}