Server SDKs
Build AI agents, control calls, send messages, and more
Check if a top-level section with the given title exists.
Section title to check.
boolean — true if the section exists, false otherwise.
boolean
true
false
1import { PomBuilder } from '@signalwire/sdk';23const pom = new PomBuilder();4pom.addSection('Role', { body: 'You are a helpful assistant.' });56console.log(pom.hasSection('Role')); // true7console.log(pom.hasSection('Missing')); // false