AgentsAgentBase

set_post_prompt_llm_params

View as MarkdownOpen in Claude

Set LLM parameters specifically for the post-prompt. Accepts the same parameters as set_prompt_llm_params() except barge_confidence, which does not apply to post-prompts.

Parameters

Same keyword arguments as set_prompt_llm_params() (excluding barge_confidence).

Returns

AgentBase — Returns self for method chaining.

Example

1from signalwire import AgentBase
2
3agent = AgentBase(name="support", route="/support")
4agent.set_prompt_text("You are a helpful customer support agent.")
5agent.set_post_prompt("Summarize this call as JSON with intent and resolution.")
6agent.set_post_prompt_llm_params(
7 model="gpt-4o-mini",
8 temperature=0.3
9)
10agent.serve()