add_bullets
add_bullets
Add a POM section with bullet points to the context prompt. Cannot be used
together with set_prompt().
Parameters
title
Section heading.
bullets
List of bullet point strings.
Returns
Context — Self for method chaining.
add_bullets
Add a POM section with bullet points to the context prompt. Cannot be used
together with set_prompt().
Section heading.
List of bullet point strings.
Context — Self for method chaining.
1 from signalwire import AgentBase 2 3 agent = AgentBase(name="my-agent", route="/agent") 4 5 contexts = agent.define_contexts() 6 ctx = contexts.add_context("default") 7 ctx.add_bullets("Rules", [ 8 "Never share account numbers with the caller", 9 "Always confirm changes before applying", 10 "Escalate fraud concerns immediately" 11 ]) 12 ctx.add_step("greet").set_text("Greet the caller and ask how you can help.") 13 14 agent.serve()