> For a complete index of all SignalWire documentation pages, fetch https://signalwire.com/docs/llms.txt

# set_prompt_llm_params

> Set LLM parameters specifically for the main prompt.

[ref-agentbase]: /docs/server-sdks/reference/python/agents/agent-base

Set LLM parameters specifically for the main prompt. Parameters are passed through
to the SignalWire server and validated against the target model's capabilities.

## **Parameters**

Parameters are passed as keyword arguments. The SDK sends only the parameters you
explicitly set -- it does **not** inject defaults. The default values noted below are
**server-side defaults** applied by the SignalWire platform when a parameter is omitted.

Common options:

AI model to use (e.g., `"gpt-4o-mini"`, `"gpt-4.1-mini"`, `"nova-micro"`, `"nova-lite"`).

Output randomness. Range: `0.0` -- `2.0`. Default: `0.3`. Lower values produce more
deterministic responses.

Nucleus sampling threshold. Range: `0.0` -- `1.0`. Default: `1.0`. Alternative to temperature.

ASR confidence threshold for barge-in. Higher values make it harder for callers to interrupt.

Topic diversity. Range: `-2.0` -- `2.0`. Default: `0.1`. Positive values encourage new topics.

Repetition control. Range: `-2.0` -- `2.0`. Default: `0.1`. Positive values reduce repetition.

## **Returns**

[`AgentBase`][ref-agentbase] -- Returns self for method chaining.

## **Example**

```python {5}
from signalwire import AgentBase

agent = AgentBase(name="support", route="/support")
agent.set_prompt_text("You are a helpful assistant.")
agent.set_prompt_llm_params(
    model="gpt-4.1-mini",
    temperature=0.7,
    top_p=0.9
)
agent.serve()
```