clear_sections
clear_sections
Remove all POM sections and direct text from this step, allowing it to be repopulated with new content.
Returns
Step — Self for method chaining.
clear_sections
Remove all POM sections and direct text from this step, allowing it to be repopulated with new content.
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", "Original instructions.") 9 step.clear_sections() 10 step.add_section("Task", "Updated instructions for this step.") 11 12 agent.serve()