promptAddSection
Add a new section to the prompt. Sections give the AI structured instructions that are easier to follow than a single block of text. Each section has a title and optional body text, bullet points, and subsections.
POM sections cannot be mixed with setPromptText() in the same agent. Use one
approach or the other.
Parameters
title
Section heading displayed to the AI.
opts
Optional section content.
opts.body
Section body text.
opts.bullets
List of bullet point strings.
opts.numbered
Whether the section itself should be numbered.
opts.numberedBullets
Whether bullet points should be numbered instead of bulleted.
opts.subsections
List of subsection objects, each with title, optional body, and optional bullets.
Returns
AgentBase — Returns this for method chaining.