# Copyright (c) Meta Platforms, Inc. and affiliates. # All rights reserved. # # This source code is licensed under the terms described in the LICENSE file in # the root directory of this source tree. from typing import List, Optional from pydantic import BaseModel class LlamaGuardShieldConfig(BaseModel): model: str = "Llama-Guard-3-8B" excluded_categories: List[str] = [] disable_input_check: bool = False disable_output_check: bool = False class PromptGuardShieldConfig(BaseModel): model: str = "Prompt-Guard-86M" class SafetyConfig(BaseModel): llama_guard_shield: Optional[LlamaGuardShieldConfig] = None prompt_guard_shield: Optional[PromptGuardShieldConfig] = None