> 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.

# setInferenceParams

> Update Bedrock inference parameters.

[ref-bedrockagent]: /docs/server-sdks/reference/typescript/agents/bedrock-agent

Update Bedrock inference parameters. Only the arguments you pass are changed;
an argument left `undefined` keeps its current value.

## **Parameters**

**`temperature`** `number`

Generation temperature. Range: 0 to 1.

---

**`topP`** `number`

Nucleus sampling parameter. Range: 0 to 1.

---

**`maxTokens`** `number`

Maximum tokens to generate. Accepted for compatibility with the Python SDK.
Not currently applied to the call.

---

## **Returns**

[`BedrockAgent`][ref-bedrockagent] -- Returns `this` for method chaining.

## **Example**

```typescript {9}
import { BedrockAgent } from '@signalwire/sdk';

const agent = new BedrockAgent({
  name: 'bedrock-assistant',
  route: '/assistant',
  systemPrompt: 'You are a helpful assistant.',
});

agent.setInferenceParams(0.3, 0.95, 2048);
```