add_bullets

View as MarkdownOpen in Claude

Add a POM section with bullet points to the step. Cannot be used with set_text().

Parameters

title
strRequired

Section heading.

bullets
list[str]Required

List of bullet point strings.

Returns

Step — 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")
step = ctx.add_step("collect_info")
step.add_section("Task", "Collect the caller's account information.")
step.add_bullets("Required Information", [
"Full legal name",
"Account number (10 digits)",
"Reason for calling"
])
agent.serve()