The equation of the function is given in the slope-intercept form \(y = mx + b\), where \(m\) represents the slope and \(b\) represents the y-intercept.
In the equation \(y = -7x - 12\), the coefficient of \(x\) is \(-7\). Therefore, the slope of the function is \(-7\).