From e18c3a40ff047f37fdbfa820dde4c6c34d953a60 Mon Sep 17 00:00:00 2001 From: aakrem Date: Thu, 9 May 2024 03:25:27 +0200 Subject: [PATCH] ajust correct answer type in frontend --- agenta-web/src/lib/Types.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/agenta-web/src/lib/Types.ts b/agenta-web/src/lib/Types.ts index a5d9bb95f1..ac0d0a980f 100644 --- a/agenta-web/src/lib/Types.ts +++ b/agenta-web/src/lib/Types.ts @@ -382,6 +382,11 @@ export enum EvaluationStatusType { ERROR = "error", } +export interface CorrectAnswer { + key: string + correct_answer: string +} + export interface _Evaluation { id: string appId: string @@ -420,7 +425,7 @@ export interface _EvaluationScenario { evaluators_configs: EvaluatorConfig[] inputs: (TypedValue & {name: string})[] outputs: {result: TypedValue; cost?: number; latency?: number}[] - correct_answer?: string + correct_answers?: CorrectAnswer[] is_pinned?: boolean note?: string results: {evaluator_config: string; result: TypedValue & {error: null | EvaluationError}}[]