UNPKG

@calljmp/cli

Version:
30 lines 792 B
export interface DataQueryResponseUserItem { type: 'user'; id: string; content: string; timestamp: Date; } export interface DataQueryResponseAssistantItem { type: 'assistant'; id: string; content: { text: string; }[]; timestamp: Date; } export type DataQueryResponseItem = DataQueryResponseUserItem | DataQueryResponseAssistantItem; export declare function dataQueryResponseItemToJson(item: DataQueryResponseItem): { type: string; id: string; content: string; timestamp: string; } | { type: string; id: string; content: { text: string; }[]; timestamp: string; }; export declare function jsonToDataQueryResponseItem(json: Record<string, any>): DataQueryResponseItem; //# sourceMappingURL=datasets.d.ts.map