***

title: set_inference_params
slug: /reference/python/agents/bedrock-agent/set-inference-params
description: Update Bedrock inference parameters.
max-toc-depth: 3
---------------------

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

Update Bedrock inference parameters. Only the provided parameters are changed;
omitted parameters retain their current values.

## **Parameters**

<ParamField path="temperature" type="float" toc={true}>
  Generation temperature. Range: 0 to 1.
</ParamField>

<ParamField path="top_p" type="float" toc={true}>
  Nucleus sampling parameter. Range: 0 to 1.
</ParamField>

<ParamField path="max_tokens" type="int" toc={true}>
  Maximum tokens to generate.
</ParamField>

## **Returns**

`None`

## **Example**

```python {9}
from signalwire import BedrockAgent

agent = BedrockAgent(
    name="bedrock-assistant",
    route="/assistant",
    system_prompt="You are a helpful assistant.",
)

agent.set_inference_params(temperature=0.3, top_p=0.95, max_tokens=2048)
```