aws.internal._lower_prompt

(internal) MULTI-SYSTEM: every `system` message merges into the one top-level `system` array, deliberately diverging from PLAN §5's "others: demote 2nd+ to user" row. That row exists for providers whose wire format has room for exactly one system string, where a second one has nowhere to go; Converse's `system` IS a `SystemContentBlock[]`, so merging is the format's own answer and demoting would silently move authored instructions into the conversation. The native Anthropic client (`messages.baml:308-337`) merges for the same reason.

Reference version

Signature

function aws.internal._lower_prompt(
prompt: ai.Prompt,
preview: bool = …
) -> aws.internal.BedrockPrompt throws baml.errors.InvalidArgument | baml.errors.Io | baml.errors.Timeout | ai.errors.InvalidRequest | ai.errors.NetworkFailure | ai.errors.PreviewUnsupported

(internal) MULTI-SYSTEM: every system message merges into the one top-level system array, deliberately diverging from PLAN §5's "others: demote 2nd+ to user" row. That row exists for providers whose wire format has room for exactly one system string, where a second one has nowhere to go; Converse's system IS a SystemContentBlock[], so merging is the format's own answer and demoting would silently move authored instructions into the conversation. The native Anthropic client (messages.baml:308-337) merges for the same reason.

Source:<builtin>/aws/ns_internal/bedrock.bamlbytes 2570926927