---
url: >-
  https://adk.nht.io/api/@nhtio/adk/batteries/llm/bedrock_converse/adapter/classes/BedrockConverseAdapter.md
description: Native Bedrock Converse executor adapter.
---

# Class: BedrockConverseAdapter

Defined in: [src/batteries/llm/bedrock\_converse/adapter.ts:150](https://github.com/NHTIO/ADK/blob/master/src/src/batteries/llm/bedrock_converse/adapter.ts#L150)

Native Bedrock Converse executor adapter.

## Example

```ts
const adapter = new BedrockConverseAdapter({
  model: 'us.amazon.nova-2-lite-v1:0',
  apiKey: process.env.AWS_BEARER_TOKEN_BEDROCK,
  region: 'us-east-1',
})
const runner = new TurnRunner({ executorCallback: adapter.executor(), ... })
```

## Constructors

### Constructor

```ts
new BedrockConverseAdapter(options: unknown): BedrockConverseAdapter;
```

Defined in: [src/batteries/llm/bedrock\_converse/adapter.ts:160](https://github.com/NHTIO/ADK/blob/master/src/src/batteries/llm/bedrock_converse/adapter.ts#L160)

#### Parameters

| Parameter | Type      | Description                                                                      |
| --------- | --------- | -------------------------------------------------------------------------------- |
| `options` | `unknown` | Constructor-baseline options, re-validated each iteration after overrides merge. |

#### Returns

`BedrockConverseAdapter`

#### Throws

E\_INVALID\_BEDROCK\_CONVERSE\_OPTIONS when `options` is invalid.

## Properties

| Property                                    | Modifier   | Type                | Description                                | Defined in                                                                                                                                           |
| ------------------------------------------- | ---------- | ------------------- | ------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------- |
|  `STASH_KEY` | `readonly` | `"bedrockConverse"` | Per-iteration override key on `ctx.stash`. | [src/batteries/llm/bedrock\_converse/adapter.ts:152](https://github.com/NHTIO/ADK/blob/master/src/src/batteries/llm/bedrock_converse/adapter.ts#L152) |

## Methods

### executor()

```ts
executor(overrides?: Partial<BedrockConverseAdapterOptions>): DispatchExecutorFn;
```

Defined in: [src/batteries/llm/bedrock\_converse/adapter.ts:174](https://github.com/NHTIO/ADK/blob/master/src/src/batteries/llm/bedrock_converse/adapter.ts#L174)

Build a [DispatchExecutorFn](../../../../../dispatch_runner/type-aliases/DispatchExecutorFn.md) bound to the baseline plus optional executor-scope overrides.

#### Parameters

| Parameter    | Type                                                                                                                                                                                   | Description                                                  |
| ------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------ |
| `overrides?` | [`Partial`](https://www.typescriptlang.org/docs/handbook/utility-types.html#partialtype)<[`BedrockConverseAdapterOptions`](../../types/interfaces/BedrockConverseAdapterOptions.md)> | Higher precedence than the baseline, lower than `ctx.stash`. |

#### Returns

[`DispatchExecutorFn`](../../../../../dispatch_runner/type-aliases/DispatchExecutorFn.md)

***

### isBedrockConverseAdapter()

```ts
static isBedrockConverseAdapter(value: unknown): value is BedrockConverseAdapter;
```

Defined in: [src/batteries/llm/bedrock\_converse/adapter.ts:165](https://github.com/NHTIO/ADK/blob/master/src/src/batteries/llm/bedrock_converse/adapter.ts#L165)

Narrowing guard for cross-realm instances.

#### Parameters

| Parameter | Type      |
| --------- | --------- |
| `value`   | `unknown` |

#### Returns

`value is BedrockConverseAdapter`
