You said it has 2 different meanings across 2 categories:
Adverb · Phrase
an expression of emphatic agreement
Used to express complete agreement with a previous statement by the interlocutor.