PromptManager
PromptManager manages agent prompt text, supporting both raw text and structured
POM-based prompts. When POM mode is active (the default), sections are rendered
to Markdown via the underlying PomBuilder.
Constructor
usePom
Whether to use structured POM sections. When false, only raw text via
setPromptText() is supported.
Methods
setPromptText
Set raw prompt text, bypassing POM rendering.
setPostPrompt
Set the post-prompt text appended after the main prompt.
addSection
Add a POM section with body, bullets, or subsections.
addToSection
Append body text or bullets to an existing POM section.
addSubsection
Add a subsection under a parent POM section.
hasSection
Check whether a POM section with the given title exists.
getPrompt
Return the fully rendered prompt text.
getPostPrompt
Return the post-prompt text.
getPomBuilder
Return the underlying PomBuilder instance.