Skip to content

Commit

Permalink
Send eval metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicole White committed Mar 5, 2024
1 parent 7fd0951 commit 7b47d22
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/handlers/testing/exec/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,7 @@ class RunManager {
gt?: number;
gte?: number;
};
metadata?: unknown;
}): Promise<void> {
let passed: boolean | undefined = undefined;
if (args.threshold) {
Expand Down Expand Up @@ -290,6 +291,7 @@ class RunManager {
score: args.score,
passed,
threshold: args.threshold,
metadata: args.metadata,
},
);

Expand Down Expand Up @@ -465,6 +467,10 @@ function createHonoApp(runManager: RunManager): Hono {
})
.nullish()
.transform((x) => x ?? undefined),
metadata: z
.unknown()
.nullish()
.transform((x) => x ?? undefined),
}),
handleValidationResult,
),
Expand Down

0 comments on commit 7b47d22

Please sign in to comment.