> Fetch clean Markdown by appending `.md` to any page URL under https://signalwire.com/docs or requesting it with the HTTP header `Accept: text/markdown`. The root index at https://signalwire.com/docs/llms.txt lists the available documentation indexes. # setParam > Set a single AI parameter by key. [ref-agentbase]: /docs/server-sdks/reference/typescript/agents/agent-base Set a single AI parameter by key. ## **Parameters** **`key`** `string` — required Parameter name (e.g., `"temperature"`, `"end_of_speech_timeout"`). --- **`value`** `unknown` — required Parameter value. Type depends on the parameter being set. --- ## **Returns** [`AgentBase`][ref-agentbase] -- Returns `this` for method chaining. ## **Example** ```typescript {5} import { AgentBase } from '@signalwire/sdk'; const agent = new AgentBase({ name: 'support', route: '/support' }); agent.setPromptText('You are a helpful assistant.'); agent.setParam('temperature', 0.5); await agent.serve(); ``` > Set a single AI parameter by key.