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

1from signalwire import AgentBase
2
3agent = AgentBase(name="my-agent", route="/agent")
4
5contexts = agent.define_contexts()
6ctx = contexts.add_context("default")
7ctx.add_bullets("Rules", [
8 "Never share account numbers with the caller",
9 "Always confirm changes before applying",
10 "Escalate fraud concerns immediately"
11])
12ctx.add_step("greet").set_text("Greet the caller and ask how you can help.")
13
14agent.serve()