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

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