set_post_prompt
set_post_prompt
Override the post-prompt text while this context is active.
Parameters
post_prompt
Post-prompt text for this context.
Returns
Context — Self for method chaining.
set_post_prompt
Override the post-prompt text while this context is active.
Post-prompt text for this context.
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.set_post_prompt("Summarize the billing issue and resolution.") 10 billing.add_step("review").set_text("Review the caller's account and recent charges.") 11 12 agent.serve()