mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2026-01-21 10:44:14 +00:00
* Initial wiring of copilot backend and bubble * Additional changes in explanation bubbles * Changes based on checks * test snapshots updated --------- Co-authored-by: Predrag Klepic <v-prklepic@microsoft.com>
35 lines
591 B
TypeScript
35 lines
591 B
TypeScript
import Explorer from "Explorer/Explorer";
|
|
|
|
export interface GenerateSQLQueryResponse {
|
|
apiVersion: string;
|
|
sql: string;
|
|
explanation: string;
|
|
generateStart: string;
|
|
generateEnd: string;
|
|
}
|
|
|
|
enum MessageSource {
|
|
User,
|
|
AI,
|
|
AIExplanation,
|
|
}
|
|
|
|
export interface CopilotMessage {
|
|
source: MessageSource;
|
|
message: string;
|
|
sqlQuery?: string;
|
|
explanation?: string;
|
|
}
|
|
|
|
export interface FeedbackParams {
|
|
likeQuery: boolean;
|
|
generatedQuery: string;
|
|
userPrompt: string;
|
|
description?: string;
|
|
contact?: string;
|
|
}
|
|
|
|
export interface QueryCopilotProps {
|
|
explorer: Explorer;
|
|
}
|