AgentsAgentBase

set_param

View as MarkdownOpen in Claude

Set a single AI parameter by key.

Parameters

key
strRequired

Parameter name (e.g., "temperature", "end_of_speech_timeout").

value
AnyRequired

Parameter value. Type depends on the parameter being set.

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 assistant.")
agent.set_param("temperature", 0.5)
agent.serve()