prompt_has_section
prompt_has_section
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
prompt_add_section().
Returns
bool — True if a section with the given title exists, False otherwise.