diff --git a/apps/web/src/actions/evaluations/create.ts b/apps/web/src/actions/evaluations/create.ts index a494806c3..6412ce0e7 100644 --- a/apps/web/src/actions/evaluations/create.ts +++ b/apps/web/src/actions/evaluations/create.ts @@ -1,6 +1,9 @@ 'use server' -import { EvaluationMetadataType } from '@latitude-data/core/browser' +import { + EvaluationMetadataType, + EvaluationResultableType, +} from '@latitude-data/core/browser' import { createEvaluation } from '@latitude-data/core/services/evaluations/create' import { z } from 'zod' @@ -16,6 +19,12 @@ export const createEvaluationAction = authProcedure .nativeEnum(EvaluationMetadataType) .optional() .default(EvaluationMetadataType.LlmAsJudge), + configuration: z.object({ + type: z.nativeEnum(EvaluationResultableType), + detail: z + .object({ range: z.object({ from: z.number(), to: z.number() }) }) + .optional(), + }), metadata: z .object({ prompt: z.string(), @@ -30,6 +39,7 @@ export const createEvaluationAction = authProcedure name: input.name, description: input.description, metadata: input.metadata, + configuration: input.configuration, type: input.type, }) diff --git a/apps/web/src/app/(private)/error.tsx b/apps/web/src/app/(private)/error.tsx index 986ea6946..84dec548a 100644 --- a/apps/web/src/app/(private)/error.tsx +++ b/apps/web/src/app/(private)/error.tsx @@ -4,7 +4,9 @@ import { useEffect } from 'react' import { ErrorComponent, useSession } from '@latitude-data/web-ui/browser' import { NAV_LINKS } from '$/app/(private)/_lib/constants' +import BreadcrumpLink from '$/components/BreadcrumpLink' import { AppLayout } from '$/components/layouts' +import { ROUTES } from '$/services/routes' export default function Error({ error, @@ -19,7 +21,14 @@ export default function Error({ return ( + ), + }, + { name: 'Error' }, + ]} navigationLinks={NAV_LINKS} > (() => { if (!title) return 'Please enter a name for your evaluation.' @@ -82,8 +94,7 @@ export default function CreateEvaluationModal({ }} >
-
- Name + -
-
- Description + +