What is the meaning of Antipsychotic?

Preventing or counteracting psychosis.

Any of a group of drugs used to treat psychosis or other conditions, chiefly one that acts as an antagonist, partial agonist, or inverse agonist of dopamine receptors in the synapses.

Source: wiktionary.org