Llama Guard 3 functions as a dual-layer safety system, employing an Input Guard and an Output Guard to independently classify both user prompts and AI responses. It assesses content against a customizable MLCommons taxonomy of 13-14 hazard categories, including violent crimes, hate speech, and sexual content, providing detailed safety judgments.