Class: BedrockConverseAdapter
Defined in: src/batteries/llm/bedrock_converse/adapter.ts:150
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
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 |
Methods
executor()
ts
executor(overrides?: Partial<BedrockConverseAdapterOptions>): DispatchExecutorFn;Defined in: src/batteries/llm/bedrock_converse/adapter.ts:174
Build a DispatchExecutorFn bound to the baseline plus optional executor-scope overrides.
Parameters
| Parameter | Type | Description |
|---|---|---|
overrides? | Partial<BedrockConverseAdapterOptions> | Higher precedence than the baseline, lower than ctx.stash. |
Returns
isBedrockConverseAdapter()
ts
static isBedrockConverseAdapter(value: unknown): value is BedrockConverseAdapter;Defined in: src/batteries/llm/bedrock_converse/adapter.ts:165
Narrowing guard for cross-realm instances.
Parameters
| Parameter | Type |
|---|---|
value | unknown |
Returns
value is BedrockConverseAdapter