Diplomatic agents and consular officers are typically exempt from taxation in the countries they are assigned to, either through international law or specific agreements. This is due to the principle of reciprocity, which recognizes that the sending state retains the right to tax income earned outside of the host country. As such, many tax treaties include a provision to safeguard this right.