nat.cli.commands.red_teaming.red_teaming_utils#
Utility functions for red team evaluation CLI.
Attributes#
Functions#
Load a RedTeamingRunnerConfig from a YAML or JSON file. |
Module Contents#
- logger#
- load_red_teaming_config(
- config_file: pathlib.Path,
Load a RedTeamingRunnerConfig from a YAML or JSON file.
- Args:
config_file: Path to the configuration file (YAML or JSON)
- Returns:
Parsed RedTeamingRunnerConfig object
- Raises:
ValueError: If the file format is invalid or parsing fails FileNotFoundError: If the file doesn’t exist