Skip to content

Commit

Permalink
Update input and reference schema types in DatasetSchema to match tho…
Browse files Browse the repository at this point in the history
…se in ActionSchema
  • Loading branch information
shrutip90 committed Nov 7, 2024
1 parent 9c5840b commit f945397
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions genkit-tools/common/src/types/eval.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import {
ListEvalKeysResponse,
UpdateDatasetRequest,
} from './apis';
import { JSONSchema7Schema } from './action';

/**
* This file defines schema and types that are used by the Eval store.
Expand Down Expand Up @@ -161,14 +162,8 @@ export interface EvalStore {
}

export const DatasetSchemaSchema = z.object({
inputSchema: z
.record(z.any())
.describe('Valid JSON Schema for the `input` field of dataset entry.')
.optional(),
referenceSchema: z
.record(z.any())
.describe('Valid JSON Schema for the `reference` field of dataset entry.')
.optional(),
inputSchema: JSONSchema7Schema,
referenceSchema: JSONSchema7Schema,
});

/**
Expand Down

0 comments on commit f945397

Please sign in to comment.