addPomAsSubsection
Append every top-level section of another PromptObjectModel as a
subsection of a target section in this model. Useful for composing prompts
assembled separately into a single document.
Throws Error("No section with title '<target>' found.") when target is a
string and no section with that title exists. For deeper lookups, resolve the
section yourself via findSection() and pass the
Section directly.
Parameters
target
The target section to append into. Pass a title string for top-level
sections, or a Section instance (from
findSection()) for nested sections.
pomToAdd
The model whose top-level sections should be appended.
Returns
void