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

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