Answer: most likely the last option. soliloquys are typically used to showcase the internal state of a character, that is only known by the audience and not by other characters in a play. in this case, Hamlet is hard to understand, so his soliloquy allows us to see him as he is.
hope this helped!