From ce2458839174a4ff882b50ee8050b12a598a18a7 Mon Sep 17 00:00:00 2001 From: Grant Linville Date: Fri, 11 Oct 2024 10:38:45 -0400 Subject: [PATCH] PR feedback Signed-off-by: Grant Linville --- src/gptscript.ts | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/src/gptscript.ts b/src/gptscript.ts index b8e426a..7067a84 100644 --- a/src/gptscript.ts +++ b/src/gptscript.ts @@ -1185,22 +1185,26 @@ function jsonToCredential(cred: string): Credential { // Dataset types -export type DatasetElementMeta = { +export interface DatasetElementMeta { name: string description: string } -export type DatasetElement = DatasetElementMeta & { +export interface DatasetElement { + name: string + description: string contents: string } -export type DatasetMeta = { +export interface DatasetMeta { id: string name: string description: string } -export type Dataset = DatasetMeta & { - baseDir: string +export interface Dataset { + id: string + name: string + description: string elements: Record }