bedrock_utils

Bedrock Converse API wrapper.

prompt_risk.bedrock_utils.converse(client: BedrockRuntimeClient, model_id: str, system: list[dict], messages: list[dict]) str[source]

Call Bedrock Converse API and return the assistant’s text response.