Skip to content
2 min read · 427 words

Interface: ConverseRequestBuildInput ​

Defined in: src/batteries/llm/bedrock_converse/types.ts:252

Everything buildConverseRequest needs.

Properties ​

PropertyTypeDescriptionDefined in
alternationPolicy?"merge" | "filler" | "reject"How to handle turn state that breaks Converse's strict alternation. Remarks 'merge' (default) folds consecutive same-role turns into one, concatenating their content blocks — lossless, and what Converse itself would have accepted had the caller written it that way. 'reject' sends the history untouched so Converse's own error surfaces, which is what you want when you are AUDITING whether the vendor really enforces alternation rather than relying on a repair. 'filler' inserts a placeholder turn instead of merging; it is lossier (it puts words in the model's mouth) and is offered only because some callers need positional stability.src/batteries/llm/bedrock_converse/types.ts:290
bucketOrder?ChatCompletionsBucketOrderOrder of context buckets in the system blocks.src/batteries/llm/bedrock_converse/types.ts:272
decodeMedia?(media: Media) => Promise<ConverseImageBlock>Decode an attachment into an image block.src/batteries/llm/bedrock_converse/types.ts:294
helpersBedrockConverseHelpersResolved helper set.src/batteries/llm/bedrock_converse/types.ts:292
memoriesIterable<Memory>Rendered into the system blocks.src/batteries/llm/bedrock_converse/types.ts:258
messagesIterable<Message>Conversation messages.src/batteries/llm/bedrock_converse/types.ts:262
renderedToolCallResultsMap<ToolCall, { json?: Record<string, unknown>; text?: string; }[]>Pre-rendered result blocks, keyed by ToolCall instance to keep colliding ids distinct.src/batteries/llm/bedrock_converse/types.ts:270
replayCompatibilityreadonly string[]Replay tags whose opaque payloads may be resent.src/batteries/llm/bedrock_converse/types.ts:278
retrievablesIterable<Retrievable>Rendered into the system blocks.src/batteries/llm/bedrock_converse/types.ts:260
selfIdentitystringIdentity attributed to this agent's own thoughts.src/batteries/llm/bedrock_converse/types.ts:274
standingInstructionsIterable<Tokenizable>Rendered into the system blocks.src/batteries/llm/bedrock_converse/types.ts:256
systemPromptTokenizableBase system text; becomes system[].src/batteries/llm/bedrock_converse/types.ts:254
thoughtsIterable<Thought>Reasoning to replay.src/batteries/llm/bedrock_converse/types.ts:264
thoughtSurfacing"all" | "all-self" | "latest-self"Which reasoning to replay.src/batteries/llm/bedrock_converse/types.ts:276
toolCallsIterable<ToolCall>Tool calls to replay as toolUse/toolResult pairs.src/batteries/llm/bedrock_converse/types.ts:266
toolsToolRegistryTools offered this turn.src/batteries/llm/bedrock_converse/types.ts:268
unsupportedMediaPolicy?UnsupportedMediaPolicyWhat to do with a modality Converse cannot accept.src/batteries/llm/bedrock_converse/types.ts:296
warn?(message: string) => voidNon-fatal diagnostics sink.src/batteries/llm/bedrock_converse/types.ts:298