Skip to content

Commit

Permalink
Add datasetId field to eval run key
Browse files Browse the repository at this point in the history
  • Loading branch information
ssbushi committed Aug 27, 2024
1 parent fe673c2 commit 9df71cf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions genkit-tools/common/src/types/eval.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ export type EvalResult = z.infer<typeof EvalResultSchema>;
*/
export const EvalRunKeySchema = z.object({
actionRef: z.string().optional(),
datasetId: z.string().optional(),
evalRunId: z.string(),
createdAt: z.string(),
});
Expand Down
4 changes: 2 additions & 2 deletions js/ai/tests/generate/generate_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@
import assert from 'node:assert';
import { describe, it } from 'node:test';
import { z } from 'zod';
import { generate, GenerateResponseChunk } from '../../src/generate';
import { GenerateResponseChunk, generate } from '../../src/generate';
import {
Candidate,
GenerateOptions,
GenerateResponse,
Message,
toGenerateRequest,
} from '../../src/generate.js';
import { defineModel, GenerateResponseChunkData } from '../../src/model';
import { GenerateResponseChunkData, defineModel } from '../../src/model';
import {
CandidateData,
GenerateRequest,
Expand Down

0 comments on commit 9df71cf

Please sign in to comment.