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

1from signalwire import AgentBase
2
3agent = AgentBase(name="support", route="/support")
4agent.set_prompt_text("You are a helpful assistant.")
5agent.set_param("temperature", 0.5)
6agent.serve()