add_bullets

View as MarkdownOpen in Claude

Add a POM section with bullet points to the context prompt. Cannot be used together with set_prompt().

Parameters

title
strRequired

Section heading.

bullets
list[str]Required

List of bullet point strings.

Returns

Context — Self for method chaining.

Example

from signalwire import AgentBase
agent = AgentBase(name="my-agent", route="/agent")
contexts = agent.define_contexts()
ctx = contexts.add_context("default")
ctx.add_bullets("Rules", [
"Never share account numbers with the caller",
"Always confirm changes before applying",
"Escalate fraud concerns immediately"
])
ctx.add_step("greet").set_text("Greet the caller and ask how you can help.")
agent.serve()