aws.internal._conversation_role

(internal) The Converse conversation roles are `user` and `assistant` only. `system` is hoisted out above; every other authored role (including the role-less default and `tool`) becomes `user`, matching the native Anthropic client and PLAN §5's role-less default. sys_llm hard-errored on unknown roles instead (`build_request/bedrock.rs:143-151`); collapsing keeps the four native clients consistent with one another.

Reference version

Signature

function aws.internal._conversation_role(role: string) -> string

(internal) The Converse conversation roles are user and assistant only. system is hoisted out above; every other authored role (including the role-less default and tool) becomes user, matching the native Anthropic client and PLAN §5's role-less default. sys_llm hard-errored on unknown roles instead (build_request/bedrock.rs:143-151); collapsing keeps the four native clients consistent with one another.

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