What is the best way to define "dialogue"?

the words said by the characters in a story
quotes that are written in a story
the words and actions of characters in a story
a way to know what characters are thinking