addSection
Add a new top-level Section to the
PromptObjectModel and return it.
Only the first section may be titleless. Adding a section with no title after
the first one throws Error("Only the first section can have no title").
Parameters
title
Section heading. Pass null only for the first section.
opts
Optional section content.
opts.body
Section body text.
opts.bullets
Bullet points for this section. A single string is coerced into a one-item list.
opts.numbered
Whether to number this section in the rendered output.
opts.numberedBullets
Whether to render bullets as a numbered list instead of using bullet markers.
Returns
Section — The newly created section.