forked from Man-asvi/query-bridge
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.ts
More file actions
34 lines (27 loc) · 762 Bytes
/
types.ts
File metadata and controls
34 lines (27 loc) · 762 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import type { Database } from 'sql.js';
export interface SampleQuery {
query: string;
description: string;
}
// Represents a row from the SQL query result
export interface QueryResultItem {
[columnName: string]: any; // Value can be string, number, null, etc.
}
export interface GroundingChunkWeb {
uri: string;
title: string;
}
export interface GroundingChunk {
web?: GroundingChunkWeb;
// Other types of chunks can be added here if needed
}
export interface GroundingMetadata {
groundingChunks?: GroundingChunk[];
// Other grounding metadata fields can be added here
}
export interface Candidate {
groundingMetadata?: GroundingMetadata;
// Other candidate properties
}
// SQL.js Database type
export type SqlJsDatabase = Database;