aws.internal._system_as_user

(internal) A system-only or assistant-first prompt has no leading user message, which Converse rejects ("A conversation must start with a user message"). Fold the system blocks into a leading user message in that case — the same fallback the Anthropic client uses (`anthropic/ns_internal/messages.baml:270-289`).

Reference version

Signature

function aws.internal._system_as_user(system: aws.internal.SystemContentBlock[]) -> aws.internal.Message

(internal) A system-only or assistant-first prompt has no leading user message, which Converse rejects ("A conversation must start with a user message"). Fold the system blocks into a leading user message in that case — the same fallback the Anthropic client uses (anthropic/ns_internal/messages.baml:270-289).

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