What is a written composition, reciting what it is supposed a person says to himself. The whole poem is a soliloquy. Prior called?

soliloquy — A written composition, reciting what it is supposed a person says to himself. The whole poem is a soliloquy. Prior. (Webster's 1913.)

Sources