In Shakespeare's plays, characters often use soliloquies to express their personal thoughts and emotions. A soliloquy allows the audience a glimpse into the character's inner life, often revealing motivations that may not be apparent through dialogue with other characters. For example, in "Hamlet," the famous line "To be or not to be" illustrates Hamlet's deep existential crisis.
Considering this use of soliloquy, what is the primary purpose of a soliloquy in drama?