Defined in: [src/models/bedrock.ts:263](https://github.com/strands-agents/harness-sdk/blob/main/strands-ts/src/models/bedrock.ts#L263)

Configuration interface for AWS Bedrock model provider.

Extends BaseModelConfig with Bedrock-specific configuration options for model parameters, caching, and additional request/response fields.

## Example

```typescript
const config: BedrockModelConfig = {
  modelId: 'global.anthropic.claude-sonnet-4-6',
  maxTokens: 1024,
  temperature: 0.7,
  cacheConfig: { strategy: 'auto' }
}
```

## Extends

-   [`BaseModelConfig`](/pr-cms-5628/docs/api/typescript/BaseModelConfig/index.md)

## Extended by

-   [`BedrockModelOptions`](/pr-cms-5628/docs/api/typescript/BedrockModelOptions/index.md)

## Properties

### maxTokens?

```ts
maxTokens?: number;
```

Defined in: [src/models/bedrock.ts:269](https://github.com/strands-agents/harness-sdk/blob/main/strands-ts/src/models/bedrock.ts#L269)

Maximum number of tokens to generate in the response.

#### See

[https://docs.aws.amazon.com/bedrock/latest/APIReference/API\_runtime\_InferenceConfiguration.html](https://docs.aws.amazon.com/bedrock/latest/APIReference/API_runtime_InferenceConfiguration.html)

#### Overrides

[`BaseModelConfig`](/pr-cms-5628/docs/api/typescript/BaseModelConfig/index.md).[`maxTokens`](/pr-cms-5628/docs/api/typescript/BaseModelConfig/index.md#maxtokens)

---

### temperature?

```ts
temperature?: number;
```

Defined in: [src/models/bedrock.ts:276](https://github.com/strands-agents/harness-sdk/blob/main/strands-ts/src/models/bedrock.ts#L276)

Controls randomness in generation.

#### See

[https://docs.aws.amazon.com/bedrock/latest/APIReference/API\_runtime\_InferenceConfiguration.html](https://docs.aws.amazon.com/bedrock/latest/APIReference/API_runtime_InferenceConfiguration.html)

#### Overrides

[`BaseModelConfig`](/pr-cms-5628/docs/api/typescript/BaseModelConfig/index.md).[`temperature`](/pr-cms-5628/docs/api/typescript/BaseModelConfig/index.md#temperature)

---

### topP?

```ts
topP?: number;
```

Defined in: [src/models/bedrock.ts:283](https://github.com/strands-agents/harness-sdk/blob/main/strands-ts/src/models/bedrock.ts#L283)

Controls diversity via nucleus sampling.

#### See

[https://docs.aws.amazon.com/bedrock/latest/APIReference/API\_runtime\_InferenceConfiguration.html](https://docs.aws.amazon.com/bedrock/latest/APIReference/API_runtime_InferenceConfiguration.html)

#### Overrides

[`BaseModelConfig`](/pr-cms-5628/docs/api/typescript/BaseModelConfig/index.md).[`topP`](/pr-cms-5628/docs/api/typescript/BaseModelConfig/index.md#topp)

---

### stopSequences?

```ts
stopSequences?: string[];
```

Defined in: [src/models/bedrock.ts:288](https://github.com/strands-agents/harness-sdk/blob/main/strands-ts/src/models/bedrock.ts#L288)

Array of sequences that will stop generation when encountered.

---

### cacheConfig?

```ts
cacheConfig?: CacheConfig;
```

Defined in: [src/models/bedrock.ts:295](https://github.com/strands-agents/harness-sdk/blob/main/strands-ts/src/models/bedrock.ts#L295)

Configuration for prompt caching.

#### See

[https://docs.aws.amazon.com/bedrock/latest/userguide/prompt-caching.html](https://docs.aws.amazon.com/bedrock/latest/userguide/prompt-caching.html)

---

### additionalRequestFields?

```ts
additionalRequestFields?: JSONValue;
```

Defined in: [src/models/bedrock.ts:300](https://github.com/strands-agents/harness-sdk/blob/main/strands-ts/src/models/bedrock.ts#L300)

Additional fields to include in the Bedrock request.

---

### additionalResponseFieldPaths?

```ts
additionalResponseFieldPaths?: string[];
```

Defined in: [src/models/bedrock.ts:305](https://github.com/strands-agents/harness-sdk/blob/main/strands-ts/src/models/bedrock.ts#L305)

Additional response field paths to extract from the Bedrock response.

---

### additionalArgs?

```ts
additionalArgs?: JSONValue;
```

Defined in: [src/models/bedrock.ts:311](https://github.com/strands-agents/harness-sdk/blob/main/strands-ts/src/models/bedrock.ts#L311)

Additional arguments to pass through to the Bedrock Converse API.

#### See

[https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock-runtime/command/ConverseStreamCommand/](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock-runtime/command/ConverseStreamCommand/)

---

### stream?

```ts
stream?: boolean;
```

Defined in: [src/models/bedrock.ts:321](https://github.com/strands-agents/harness-sdk/blob/main/strands-ts/src/models/bedrock.ts#L321)

Whether or not to stream responses from the model.

This will use the ConverseStream API instead of the Converse API.

#### See

-   [https://docs.aws.amazon.com/bedrock/latest/APIReference/API\_runtime\_Converse.html](https://docs.aws.amazon.com/bedrock/latest/APIReference/API_runtime_Converse.html)
-   [https://docs.aws.amazon.com/bedrock/latest/APIReference/API\_runtime\_ConverseStream.html](https://docs.aws.amazon.com/bedrock/latest/APIReference/API_runtime_ConverseStream.html)

---

### includeToolResultStatus?

```ts
includeToolResultStatus?: boolean | "auto";
```

Defined in: [src/models/bedrock.ts:329](https://github.com/strands-agents/harness-sdk/blob/main/strands-ts/src/models/bedrock.ts#L329)

Flag to include status field in tool results.

-   `true`: Always include status field
-   `false`: Never include status field
-   `'auto'`: Automatically determine based on model ID (default)

---

### guardrailConfig?

```ts
guardrailConfig?: BedrockGuardrailConfig;
```

Defined in: [src/models/bedrock.ts:335](https://github.com/strands-agents/harness-sdk/blob/main/strands-ts/src/models/bedrock.ts#L335)

Guardrail configuration for content filtering and safety controls.

#### See

[https://docs.aws.amazon.com/bedrock/latest/userguide/guardrails.html](https://docs.aws.amazon.com/bedrock/latest/userguide/guardrails.html)

---

### useNativeTokenCount?

```ts
useNativeTokenCount?: boolean;
```

Defined in: [src/models/bedrock.ts:346](https://github.com/strands-agents/harness-sdk/blob/main/strands-ts/src/models/bedrock.ts#L346)

Whether to use the native Bedrock CountTokens API.

When `true`, `countTokens()` calls the Bedrock CountTokens API for accurate counts. When `false` or not set (default), skips the API call and uses the character-based heuristic estimator.

#### Default Value

```ts
false
```

---

### strictTools?

```ts
strictTools?: boolean;
```

Defined in: [src/models/bedrock.ts:364](https://github.com/strands-agents/harness-sdk/blob/main/strands-ts/src/models/bedrock.ts#L364)

Constrain the model to emit tool names and inputs that conform to each tool’s schema.

When `true`, every tool is sent with `strict: true` and a copy of its `inputSchema` with `additionalProperties: false` added to each object type, so a free-form `{ type: 'object' }` parameter becomes one the model can only fill with `{}`. Bedrock rejects schemas that use features outside its strict subset (recursive or external `$ref`, `minimum`/`maximum`/ `multipleOf`, `minLength`/`maxLength`, `additionalProperties` other than `false`) with a 400 at request time, and compiles each new schema on first use, which can take minutes. Incompatible with citations for Anthropic models.

#### See

-   [https://docs.aws.amazon.com/bedrock/latest/userguide/structured-output.html](https://docs.aws.amazon.com/bedrock/latest/userguide/structured-output.html)
-   [https://docs.aws.amazon.com/bedrock/latest/APIReference/API\_runtime\_ToolSpecification.html](https://docs.aws.amazon.com/bedrock/latest/APIReference/API_runtime_ToolSpecification.html)

#### Default Value

```ts
false
```

---

### modelId?

```ts
modelId?: string;
```

Defined in: [src/models/model.ts:189](https://github.com/strands-agents/harness-sdk/blob/main/strands-ts/src/models/model.ts#L189)

The model identifier. This typically specifies which model to use from the provider’s catalog.

#### Inherited from

[`BaseModelConfig`](/pr-cms-5628/docs/api/typescript/BaseModelConfig/index.md).[`modelId`](/pr-cms-5628/docs/api/typescript/BaseModelConfig/index.md#modelid)

---

### contextWindowLimit?

```ts
contextWindowLimit?: number;
```

Defined in: [src/models/model.ts:220](https://github.com/strands-agents/harness-sdk/blob/main/strands-ts/src/models/model.ts#L220)

Maximum context window size in tokens for the model.

The same fact as `modelInfo.limits.contextWindow`; setting it here is shorthand for setting it through `modelInfo`, and it wins over the shared model info. When both are set, `modelInfo` wins. When not provided, vended providers still populate it from the shared model info for callers that read `getConfig()`; `modelInfo` is the resolved view to read.

#### Inherited from

[`BaseModelConfig`](/pr-cms-5628/docs/api/typescript/BaseModelConfig/index.md).[`contextWindowLimit`](/pr-cms-5628/docs/api/typescript/BaseModelConfig/index.md#contextwindowlimit)

---

### modelInfo?

```ts
modelInfo?: ModelInfo;
```

Defined in: [src/models/model.ts:228](https://github.com/strands-agents/harness-sdk/blob/main/strands-ts/src/models/model.ts#L228)

Overrides for what the SDK knows about the model. Fields set here win over the shared model info and the provider; `capabilities.stateful` changes how the agent loop sends history, so set it only for a provider that keeps state server-side. `updateConfig({ modelInfo })` replaces the previous override entirely, it does not merge into it.

#### Inherited from

[`BaseModelConfig`](/pr-cms-5628/docs/api/typescript/BaseModelConfig/index.md).[`modelInfo`](/pr-cms-5628/docs/api/typescript/BaseModelConfig/index.md#modelinfo)