I'm writing a story where my character meets some of the world's greatest philosophers in a dream. He meets Franz Kafka, Dostoevsky, and Friedrich Nietzsche in dreams. Kafka only speaks in quotes from his books. Nieztscche and Dostoevsky argue with eachother for several minutes.
I'm wondering now if this is illegal, if I can get sued somehow because I use them in fictional representations.