in src/epam/auto_llm_eval/evaluator.py [0:0]
def get_scenario_file(base_path: str, scenario_id: str, filename: str) -> str:
"""
Get the content of a scenario file with validation.
Args:
base_path (str): The base path to the scenario files.
scenario_id (str): The ID of the scenario.
filename (str): Name of the file to read.
Returns:
str: Content of the file.
Raises:
FileNotFoundError: If the file or directory doesn't exist.
"""
file_path = os.path.abspath(os.path.join(base_path, scenario_id, filename))
if not os.path.exists(file_path):
raise FileNotFoundError(f"File not found: {file_path}")
return read_file(file_path)