promptHasSection
Check whether a named section already exists in the agent’s POM (Prompt Object Model) prompt. Useful for conditionally adding content to avoid duplicate sections.
Parameters
title
The section title to look up. Must match the title passed to
promptAddSection().
Returns
boolean — true if a section with the given title exists, false otherwise.