add_system_bullets

View as MarkdownOpen in Claude

Add a POM section with bullets to the system prompt. Cannot be combined with set_system_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()
6contexts.add_context("default").add_step("menu").set_text("Ask what the caller needs.")
7
8support = contexts.add_context("support")
9support.add_system_bullets("Guidelines", [
10 "Verify identity before making changes",
11 "Offer to escalate if issue is unresolved after 5 minutes"
12])
13support.add_step("diagnose").set_text("Understand the customer's issue.")
14
15agent.serve()