prompt_add_section
prompt_add_section
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 set_prompt_text() in the same agent. Use one
approach or the other.
Parameters
title
Section heading displayed to the AI.
body
Section body text.
bullets
List of bullet point strings.
numbered
Whether the section itself should be numbered.
numbered_bullets
Whether bullet points should be numbered instead of bulleted.
subsections
List of subsection dictionaries, each with title, body, and optional bullets.
Returns
AgentBase — Returns self for method chaining.