add_system_section
add_system_section
Add a POM section to the system prompt. Cannot be combined with set_system_prompt().
Parameters
title
Section heading.
body
Section body text.
Returns
Context — Self for method chaining.
add_system_section
Add a POM section to the system prompt. Cannot be combined with set_system_prompt().
Section heading.
Section body text.
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 contexts.add_context("default").add_step("menu").set_text("Ask what the caller needs.") 7 8 billing = contexts.add_context("billing") 9 billing.add_system_section("Role", "You are a billing specialist.") 10 billing.add_system_section("Tone", "Be professional and empathetic.") 11 billing.add_step("review").set_text("Review the caller's account and recent charges.") 12 13 agent.serve()