aws.internal.parse_response
Decode one Converse response into canonical content blocks.
Reference version
Signature
function aws.internal.parse_response(
response: aws.internal.ConverseResponse
) -> ai.ModelTurn throws baml.json.SerializationError | ai.errors.ParseFailed
Decode one Converse response into canonical content blocks.
Unlike sys_llm (parse_response/bedrock.rs:74-104) this does NOT error on
an empty content list or on a turn with no text blocks: a tool-only turn is
the normal stopReason: "tool_use" shape and erroring on it would make
tool calling impossible. A missing output.message is still a hard error —
that response is malformed, not empty.
Source:<builtin>/aws/ns_internal/bedrock.bamlbytes 51254–53829