Skip to content

Commit

Permalink
PR feedback
Browse files Browse the repository at this point in the history
Signed-off-by: Grant Linville <[email protected]>
  • Loading branch information
g-linville committed Oct 11, 2024
1 parent 3a1455f commit ce24588
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions src/gptscript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<string, DatasetElementMeta>
}

0 comments on commit ce24588

Please sign in to comment.