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

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