quit_if function

Make evaluation of a prompt stop if LLM gives a specific response