Buprenorphine is a partial agonist at the mu-opioid receptor, providing both analgesic effects and a ceiling effect on respiratory depression, which reduces the risk of overdose compared to full agonists like heroin and morphine. It also acts as an antagonist at the kappa-opioid receptor, which may contribute to its antidepressant effects.