UNPKG

@gentrace/core

Version:
16 lines (15 loc) 841 B
import { CreateEvaluationV2, EvaluationV2, EvaluationV3 } from "../models"; export type CreateEvaluationType = CreateEvaluationV2; export declare function bulkCreateEvaluations(evaluations: Array<CreateEvaluationV2>): Promise<import("../models").V2EvaluationsBulkPost200Response>; export type EvaluationType = EvaluationV2; /** * Retrieves evaluations for a specific result from the Gentrace API. * @async * @param {Object} params - The parameters for the function. * @param {string} params.resultId - The ID of the result to get evaluations for. * @returns {Promise<Array<EvaluationV2>>} - A promise that resolves to an array of evaluations. * @throws {Error} - Throws an error if the Gentrace API key is not initialized. */ export declare const getEvaluations: ({ resultId, }: { resultId: string; }) => Promise<EvaluationV3[]>;