Server SDKs
Build AI agents, control calls, send messages, and more
Convert the POM to a list of section data objects. Useful for serializing the POM for storage or passing to other components.
None.
PomSectionData[] — Serialized section list. Each object contains keys like "title", "body", and "bullets".
PomSectionData[]
"title"
"body"
"bullets"
1import { PomBuilder } from '@signalwire/sdk';23const pom = new PomBuilder();4pom.addSection('Role', { body: 'You are a helpful assistant.' });56const data = pom.toDict();7console.log(JSON.stringify(data, null, 2));