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 }