Enter to send·Shift+Enter new line
protocol_error( response: dict[str, Any], ) -> RuntimeError
Build the error for a protocol {"type": "error"} envelope.
{"type": "error"}