pom

View as MarkdownOpen in Claude

Getter that returns a PromptObjectModel populated from the builder’s current sections. This mirrors Python’s PomBuilder.pom attribute and gives you access to the lower-level model for JSON/YAML serialization or direct section manipulation.

The returned model is a snapshot. Mutating it does not propagate back to the builder.

Parameters

None.

Returns

PromptObjectModel — A fresh model built from the builder’s current sections.

Example

import { PomBuilder } from '@signalwire/sdk';
const builder = new PomBuilder();
builder.addSection('Role', { body: 'You are a helpful assistant.' });
const model = builder.pom;
console.log(model.toYaml());