add_section
add_section
Add a POM section to the step. Cannot be used with set_text().
Parameters
title
Section heading (rendered as a Markdown ## heading).
body
Section body text.
Returns
Step — Self for method chaining.
add_section
Add a POM section to the step. Cannot be used with set_text().
Section heading (rendered as a Markdown ## heading).
Section body text.
Step — 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 step = ctx.add_step("collect_info") 8 step.add_section("Task", "Collect the caller's account information.") 9 step.add_section("Guidelines", "Be polite and patient. Confirm each piece of information.") 10 11 agent.serve()