setPromptPom
Replace the agent’s prompt with the supplied POM (Prompt Object Model) array.
Existing sections are cleared before the new ones are applied, so this is the
batch equivalent of calling promptAddSection() for
every entry. The shape must match what getPromptPom()
returns.
Requires the agent to be constructed with usePom: true. Throws Error("usePom must be true to use setPromptPom") otherwise.
Parameters
pom
Ordered array of POM section objects. Each section supports title (string),
body (string), bullets (string[]), numbered (boolean),
numberedBullets (boolean), and subsections (array of
{ title, body?, bullets? }).
Returns
AgentBase — Returns this for method chaining.