PomBuilder
PomBuilder provides a fluent interface for creating structured prompts using the Prompt Object Model (POM). POM organizes prompt content into titled sections, subsections, and bullet lists — producing consistent, well-structured prompts that the AI can follow reliably.
Use PomBuilder when you need fine-grained control over prompt structure beyond
what setPromptText() and promptAddSection() on
AgentBase provide. The builder
can render to Markdown format.
Methods
Add a new top-level section to the POM.
Add a subsection to an existing section.
Add content to an existing section.
Find a section by title for direct manipulation.
Get a top-level section by title.
Check if a section with a given title exists.
Render the POM as a Markdown string.
Convert the POM to a list of section objects.