Skip to content
1 min read · 186 words

Class: BedrockConverseAdapter ​

Defined in: src/batteries/llm/bedrock_converse/adapter.ts:165

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:175

Parameters ​

ParameterTypeDescription
optionsunknownConstructor-baseline options, re-validated each iteration after overrides merge.

Returns ​

BedrockConverseAdapter

Throws ​

E_INVALID_BEDROCK_CONVERSE_OPTIONS when options is invalid.

Properties ​

PropertyModifierTypeDescriptionDefined in
STASH_KEYreadonly"bedrockConverse"Per-iteration override key on ctx.stash.src/batteries/llm/bedrock_converse/adapter.ts:167

Methods ​

executor() ​

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

Defined in: src/batteries/llm/bedrock_converse/adapter.ts:189

Build a DispatchExecutorFn bound to the baseline plus optional executor-scope overrides.

Parameters ​

ParameterTypeDescription
overrides?Partial<BedrockConverseAdapterOptions>Higher precedence than the baseline, lower than ctx.stash.

Returns ​

DispatchExecutorFn


isBedrockConverseAdapter() ​

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

Defined in: src/batteries/llm/bedrock_converse/adapter.ts:180

Narrowing guard for cross-realm instances.

Parameters ​

ParameterType
valueunknown

Returns ​

value is BedrockConverseAdapter