Definition (Bayes risk, Bayes rule)
(Context) Given a prior distribution $π$ on $Θ$, the $π$-Bayes risk of a decision rule $δ$ is $$ \begin{align*} R_π(δ) := \expect_π[L(δ(X), θ)] \equiv \int_{Θ} R(δ,θ) \, π(θ) \d θ \equiv \int_{Θ} \int_{\mathcal{X}} L(δ(X), θ) \, f(x\mid θ)\, π(θ) \d x \d θ. \end{align*} $$
If $δ_π$ is a decision rule that minimises the $π$-Bayes risk, then we call it a $π$-Bayes decision rule.
See also Bayes estimator.