We study the optical response of a resonant medium possessing the nonlinear coupling to external field under excitation by few-cycle pump pulses. A theoretical approach is developed, allowing to analyze unipolar half-cycle pulse generation in such a geometry. Our approach is applicable for the arbitrary coupling functions as well as arbitrarily curved pump pulse wavefronts and defines a general framework to produce unipolar pulses of desired form.