Function generateTestSpecFromAiEvalDefinition

  • Generates a TestSpec object from an AI Evaluation Definition XML file.

    Parameters

    • path: string

      The file path to the AI Evaluation Definition XML file.

    Returns Promise<TestSpec>

    Promise that resolves to a TestSpec object containing the parsed evaluation definition data.

    Reads and parses an XML file containing AIEvaluationDefinition, converting it into a structured TestSpec format.

    If the file cannot be read or parsed.