@trilogy-data/trilogy-studio-components 0.1.3 → 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{ChatCreatorModal-CrRORbVm.js → ChatCreatorModal-BdUJ9uoW.js} +1 -1
- package/dist/{Dashboard-CUPl-At6.js → Dashboard-BGpN0Ixs.js} +3 -3
- package/dist/{DashboardCreatorInline-C5qQWVmy.js → DashboardCreatorInline-CZQ5JsIB.js} +1 -1
- package/dist/{DashboardMobile-V9X7-wJV.js → DashboardMobile-leXuc7Vi.js} +18 -18
- package/dist/{LLMConnectionList-CWONtRCY.js → LLMConnectionList-BfseODm5.js} +115 -115
- package/dist/{LLMView-BnN9wjXa.js → LLMView-CkW6UDnK.js} +9 -9
- package/dist/Manager-sE56hYtJ.js +4 -0
- package/dist/ResultComponent-CcThUn60.js +271 -0
- package/dist/{Sidebar-6cjut4cK.js → Sidebar-gsKRqjCv.js} +3 -3
- package/dist/{TutorialPage-j03hgD_I.js → TutorialPage-DEOrK1-3.js} +4 -4
- package/dist/{WelcomePage-CuLo21YT.js → WelcomePage-DhWLhWSJ.js} +5 -5
- package/dist/chats/chat.d.ts +11 -3
- package/dist/chats/chat.d.ts.map +1 -1
- package/dist/components/SimpleEditor.vue.d.ts +3 -0
- package/dist/components/SimpleEditor.vue.d.ts.map +1 -1
- package/dist/components/StatusIcon.vue.d.ts +1 -1
- package/dist/components/StatusIcon.vue.d.ts.map +1 -1
- package/dist/components/SymbolsPane.vue.d.ts +3 -0
- package/dist/components/SymbolsPane.vue.d.ts.map +1 -1
- package/dist/components/VegaLiteChart.vue.d.ts +1 -1
- package/dist/components/VegaLiteChart.vue.d.ts.map +1 -1
- package/dist/components/dashboard/DashboardChart.vue.d.ts +1 -1
- package/dist/components/dashboard/DashboardChartEditor.vue.d.ts +3 -0
- package/dist/components/dashboard/DashboardChartEditor.vue.d.ts.map +1 -1
- package/dist/components/dashboard/DashboardHeader.vue.d.ts +2 -2
- package/dist/components/dashboard/DashboardMarkdownEditor.vue.d.ts +3 -0
- package/dist/components/dashboard/DashboardMarkdownEditor.vue.d.ts.map +1 -1
- package/dist/components/editor/Editor.vue.d.ts +75 -0
- package/dist/components/editor/Editor.vue.d.ts.map +1 -1
- package/dist/components/editor/ResultComponent.vue.d.ts +3885 -385
- package/dist/components/editor/ResultComponent.vue.d.ts.map +1 -1
- package/dist/components/editor/Results.vue.d.ts +33 -15
- package/dist/components/editor/Results.vue.d.ts.map +1 -1
- package/dist/components/layout/TabbedBrowser.vue.d.ts +15 -3
- package/dist/components/layout/TabbedBrowser.vue.d.ts.map +1 -1
- package/dist/components/llm/ChatArtifact.vue.d.ts +2 -2
- package/dist/components/llm/LLMChat.vue.d.ts +95 -23
- package/dist/components/llm/LLMChat.vue.d.ts.map +1 -1
- package/dist/components/llm/LLMChatSplitView.vue.d.ts +568 -110
- package/dist/components/llm/LLMChatSplitView.vue.d.ts.map +1 -1
- package/dist/components/llm/LLMEditorRefinement.vue.d.ts +2079 -0
- package/dist/components/llm/LLMEditorRefinement.vue.d.ts.map +1 -0
- package/dist/components/llm/LLMValidationView.vue.d.ts +20 -0
- package/dist/components/llm/LLMValidationView.vue.d.ts.map +1 -1
- package/dist/components/llm/index.d.ts +1 -1
- package/dist/components/llm/index.d.ts.map +1 -1
- package/dist/components/model/ModelCard.vue.d.ts +146 -0
- package/dist/components/model/ModelCard.vue.d.ts.map +1 -1
- package/dist/components/sidebar/ConnectionList.vue.d.ts +71 -0
- package/dist/components/sidebar/ConnectionList.vue.d.ts.map +1 -1
- package/dist/components/sidebar/EditorList.vue.d.ts +71 -0
- package/dist/components/sidebar/EditorList.vue.d.ts.map +1 -1
- package/dist/components/sidebar/LLMConnectionCreator.vue.d.ts.map +1 -1
- package/dist/components/sidebar/LLMConnectionList.vue.d.ts +4 -3
- package/dist/components/sidebar/LLMConnectionList.vue.d.ts.map +1 -1
- package/dist/components/sidebar/LLMConnectionListItem.vue.d.ts.map +1 -1
- package/dist/components/sidebar/LLMProviderIcon.vue.d.ts.map +1 -1
- package/dist/components/tutorial/TutorialPrompt.vue.d.ts +3965 -321
- package/dist/components/tutorial/TutorialPrompt.vue.d.ts.map +1 -1
- package/dist/composables/useChatWithTools.d.ts.map +1 -1
- package/dist/composables/useEditorRefinement.d.ts +60 -0
- package/dist/composables/useEditorRefinement.d.ts.map +1 -0
- package/dist/composables/useToolLoop.d.ts +41 -0
- package/dist/composables/useToolLoop.d.ts.map +1 -0
- package/dist/{cssMode-B_BSbR-W.js → cssMode-BqpD-bsS.js} +1 -1
- package/dist/dashboards/helpers.d.ts +1 -0
- package/dist/dashboards/helpers.d.ts.map +1 -1
- package/dist/data/githubStorage.d.ts.map +1 -1
- package/dist/data/localStorage.d.ts.map +1 -1
- package/dist/editors/editor.d.ts +33 -4
- package/dist/editors/editor.d.ts.map +1 -1
- package/dist/editors/results.d.ts.map +1 -1
- package/dist/{freemarker2-Bp8kNjJK.js → freemarker2-3f3Yc8DD.js} +1 -1
- package/dist/{handlebars-Bvjlp_mg.js → handlebars-BOGnwoZY.js} +1 -1
- package/dist/{html-B7c8qiJo.js → html-kwxiJtb9.js} +1 -1
- package/dist/{htmlMode-C6ZcBYOs.js → htmlMode-BSQWll85.js} +1 -1
- package/dist/{javascript-CHI4MyUe.js → javascript-Cw2M92n9.js} +1 -1
- package/dist/{jsonMode-CT9OdtWR.js → jsonMode-Cj3eACe9.js} +1 -1
- package/dist/{liquid-B6QT2GLn.js → liquid-D_YCsjzx.js} +1 -1
- package/dist/llm/anthropic.d.ts +28 -0
- package/dist/llm/anthropic.d.ts.map +1 -1
- package/dist/llm/base.d.ts +30 -1
- package/dist/llm/base.d.ts.map +1 -1
- package/dist/llm/chatAgentPrompt.d.ts +65 -78
- package/dist/llm/chatAgentPrompt.d.ts.map +1 -1
- package/dist/llm/chatHelpers.d.ts.map +1 -1
- package/dist/llm/consts.d.ts +1 -1
- package/dist/llm/data/conceptFilters.d.ts +15 -0
- package/dist/llm/data/conceptFilters.d.ts.map +1 -0
- package/dist/llm/data/constants.d.ts +1 -1
- package/dist/llm/data/constants.d.ts.map +1 -1
- package/dist/llm/data/prompts.d.ts.map +1 -1
- package/dist/llm/editorRefinementToolExecutor.d.ts +67 -0
- package/dist/llm/editorRefinementToolExecutor.d.ts.map +1 -0
- package/dist/llm/editorRefinementTools.d.ts +185 -0
- package/dist/llm/editorRefinementTools.d.ts.map +1 -0
- package/dist/llm/googlev2.d.ts +29 -1
- package/dist/llm/googlev2.d.ts.map +1 -1
- package/dist/llm/index.d.ts +5 -3
- package/dist/llm/index.d.ts.map +1 -1
- package/dist/llm/models.d.ts +1 -7
- package/dist/llm/models.d.ts.map +1 -1
- package/dist/llm/openai.d.ts +41 -0
- package/dist/llm/openai.d.ts.map +1 -0
- package/dist/llm/sharedToolSchemas.d.ts +93 -0
- package/dist/llm/sharedToolSchemas.d.ts.map +1 -0
- package/dist/llm/toolLoopCore.d.ts +67 -0
- package/dist/llm/toolLoopCore.d.ts.map +1 -0
- package/dist/llm/utils.d.ts +5 -1
- package/dist/llm/utils.d.ts.map +1 -1
- package/dist/{main-BzF_0455.js → main-CMnVPECM.js} +34920 -33616
- package/dist/main.css +1 -1
- package/dist/main.js +1 -1
- package/dist/main.umd.cjs +665 -595
- package/dist/{mdx-CDJtQyXd.js → mdx-D1QYgPt9.js} +1 -1
- package/dist/{python-BtP8pYzo.js → python-Bd7oj_ae.js} +1 -1
- package/dist/{razor-pQwJpgiM.js → razor-B-2sUawM.js} +1 -1
- package/dist/stores/Manager.vue.d.ts.map +1 -1
- package/dist/stores/chatStore.d.ts +3 -0
- package/dist/stores/chatStore.d.ts.map +1 -1
- package/dist/stores/editorStore.d.ts +119 -3
- package/dist/stores/editorStore.d.ts.map +1 -1
- package/dist/stores/llmStore.d.ts.map +1 -1
- package/dist/{tsMode-BaWVqjfv.js → tsMode-Ba44DEjT.js} +1 -1
- package/dist/{typescript-ChVL7Nc7.js → typescript-DV6B_8EM.js} +1 -1
- package/dist/{useDashboard-DW9y_StO.js → useDashboard-DyjtNooA.js} +136 -136
- package/dist/views/LLMView.vue.d.ts +2518 -412
- package/dist/views/LLMView.vue.d.ts.map +1 -1
- package/dist/views/ModelView.vue.d.ts +292 -0
- package/dist/views/ModelView.vue.d.ts.map +1 -1
- package/dist/views/TutorialPage.vue.d.ts +9605 -2028
- package/dist/views/TutorialPage.vue.d.ts.map +1 -1
- package/dist/{xml-CBuY2VW0.js → xml-7ZhThnGO.js} +1 -1
- package/dist/{yaml-GFIhDEhu.js → yaml-ngaWkYBh.js} +1 -1
- package/package.json +1 -1
- package/dist/Manager-C401-7UG.js +0 -4
- package/dist/ResultComponent-NZfe-7JE.js +0 -155
- package/dist/components/llm/LLMChatRefinement.vue.d.ts +0 -135
- package/dist/components/llm/LLMChatRefinement.vue.d.ts.map +0 -1
- package/dist/llm/mistral.d.ts +0 -12
- package/dist/llm/mistral.d.ts.map +0 -1
- package/dist/llm/openAI.d.ts +0 -13
- package/dist/llm/openAI.d.ts.map +0 -1
|
@@ -16,7 +16,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
16
16
|
default: boolean;
|
|
17
17
|
};
|
|
18
18
|
placeholder: {
|
|
19
|
-
type:
|
|
19
|
+
type: PropType<string | string[]>;
|
|
20
20
|
default: string;
|
|
21
21
|
};
|
|
22
22
|
systemPrompt: {
|
|
@@ -73,7 +73,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
73
73
|
}>, {
|
|
74
74
|
chatRef: import('vue').Ref<import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
|
|
75
75
|
messages: {
|
|
76
|
-
type: PropType<
|
|
76
|
+
type: PropType<ChatMessage[]>;
|
|
77
77
|
default: () => never[];
|
|
78
78
|
};
|
|
79
79
|
title: {
|
|
@@ -89,7 +89,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
89
89
|
default: boolean;
|
|
90
90
|
};
|
|
91
91
|
placeholder: {
|
|
92
|
-
type:
|
|
92
|
+
type: PropType<string | string[]>;
|
|
93
93
|
default: string;
|
|
94
94
|
};
|
|
95
95
|
sendButtonText: {
|
|
@@ -121,15 +121,23 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
121
121
|
default: boolean;
|
|
122
122
|
};
|
|
123
123
|
customSendHandler: {
|
|
124
|
-
type: PropType<((message: string, messages:
|
|
124
|
+
type: PropType<((message: string, messages: ChatMessage[]) => Promise<void>) | null>;
|
|
125
125
|
default: undefined;
|
|
126
126
|
};
|
|
127
|
+
customStopHandler: {
|
|
128
|
+
type: PropType<(() => void) | null>;
|
|
129
|
+
default: undefined;
|
|
130
|
+
};
|
|
131
|
+
stopButtonText: {
|
|
132
|
+
type: StringConstructor;
|
|
133
|
+
default: string;
|
|
134
|
+
};
|
|
127
135
|
}>> & Readonly<{
|
|
128
|
-
"onTitle-update"?: ((...args: any[]) => any) | undefined;
|
|
129
136
|
"onMessage-sent"?: ((...args: any[]) => any) | undefined;
|
|
130
137
|
"onResponse-received"?: ((...args: any[]) => any) | undefined;
|
|
131
138
|
"onArtifact-created"?: ((...args: any[]) => any) | undefined;
|
|
132
139
|
"onUpdate:messages"?: ((...args: any[]) => any) | undefined;
|
|
140
|
+
"onTitle-update"?: ((...args: any[]) => any) | undefined;
|
|
133
141
|
}>, {
|
|
134
142
|
internalMessages: import('vue').Ref<{
|
|
135
143
|
artifact?: {
|
|
@@ -137,24 +145,64 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
137
145
|
data: any;
|
|
138
146
|
config?: any;
|
|
139
147
|
} | undefined;
|
|
148
|
+
executedToolCalls?: {
|
|
149
|
+
id: string;
|
|
150
|
+
name: string;
|
|
151
|
+
input: Record<string, any>;
|
|
152
|
+
result?: {
|
|
153
|
+
success: boolean;
|
|
154
|
+
message?: string | undefined;
|
|
155
|
+
error?: string | undefined;
|
|
156
|
+
} | undefined;
|
|
157
|
+
}[] | undefined;
|
|
158
|
+
role: "user" | "assistant" | "system";
|
|
159
|
+
content: string;
|
|
140
160
|
modelInfo?: {
|
|
141
161
|
totalTokens: number;
|
|
142
162
|
} | undefined;
|
|
143
|
-
role: "user" | "assistant" | "system";
|
|
144
|
-
content: string;
|
|
145
163
|
hidden?: boolean | undefined;
|
|
146
|
-
|
|
164
|
+
toolCalls?: {
|
|
165
|
+
id: string;
|
|
166
|
+
name: string;
|
|
167
|
+
input: Record<string, any>;
|
|
168
|
+
}[] | undefined;
|
|
169
|
+
toolResults?: {
|
|
170
|
+
toolCallId: string;
|
|
171
|
+
toolName: string;
|
|
172
|
+
result: string;
|
|
173
|
+
}[] | undefined;
|
|
174
|
+
}[], ChatMessage[] | {
|
|
147
175
|
artifact?: {
|
|
148
176
|
type: "results" | "chart" | "code" | "custom";
|
|
149
177
|
data: any;
|
|
150
178
|
config?: any;
|
|
151
179
|
} | undefined;
|
|
180
|
+
executedToolCalls?: {
|
|
181
|
+
id: string;
|
|
182
|
+
name: string;
|
|
183
|
+
input: Record<string, any>;
|
|
184
|
+
result?: {
|
|
185
|
+
success: boolean;
|
|
186
|
+
message?: string | undefined;
|
|
187
|
+
error?: string | undefined;
|
|
188
|
+
} | undefined;
|
|
189
|
+
}[] | undefined;
|
|
190
|
+
role: "user" | "assistant" | "system";
|
|
191
|
+
content: string;
|
|
152
192
|
modelInfo?: {
|
|
153
193
|
totalTokens: number;
|
|
154
194
|
} | undefined;
|
|
155
|
-
role: "user" | "assistant" | "system";
|
|
156
|
-
content: string;
|
|
157
195
|
hidden?: boolean | undefined;
|
|
196
|
+
toolCalls?: {
|
|
197
|
+
id: string;
|
|
198
|
+
name: string;
|
|
199
|
+
input: Record<string, any>;
|
|
200
|
+
}[] | undefined;
|
|
201
|
+
toolResults?: {
|
|
202
|
+
toolCallId: string;
|
|
203
|
+
toolName: string;
|
|
204
|
+
result: string;
|
|
205
|
+
}[] | undefined;
|
|
158
206
|
}[]>;
|
|
159
207
|
visibleMessages: import('vue').ComputedRef<{
|
|
160
208
|
artifact?: {
|
|
@@ -162,31 +210,55 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
162
210
|
data: any;
|
|
163
211
|
config?: any;
|
|
164
212
|
} | undefined;
|
|
213
|
+
executedToolCalls?: {
|
|
214
|
+
id: string;
|
|
215
|
+
name: string;
|
|
216
|
+
input: Record<string, any>;
|
|
217
|
+
result?: {
|
|
218
|
+
success: boolean;
|
|
219
|
+
message?: string | undefined;
|
|
220
|
+
error?: string | undefined;
|
|
221
|
+
} | undefined;
|
|
222
|
+
}[] | undefined;
|
|
223
|
+
role: "user" | "assistant" | "system";
|
|
224
|
+
content: string;
|
|
165
225
|
modelInfo?: {
|
|
166
226
|
totalTokens: number;
|
|
167
227
|
} | undefined;
|
|
168
|
-
role: "user" | "assistant" | "system";
|
|
169
|
-
content: string;
|
|
170
228
|
hidden?: boolean | undefined;
|
|
229
|
+
toolCalls?: {
|
|
230
|
+
id: string;
|
|
231
|
+
name: string;
|
|
232
|
+
input: Record<string, any>;
|
|
233
|
+
}[] | undefined;
|
|
234
|
+
toolResults?: {
|
|
235
|
+
toolCallId: string;
|
|
236
|
+
toolName: string;
|
|
237
|
+
result: string;
|
|
238
|
+
}[] | undefined;
|
|
171
239
|
}[]>;
|
|
172
240
|
userInput: import('vue').Ref<string, string>;
|
|
173
241
|
isLoading: import('vue').ComputedRef<boolean>;
|
|
174
242
|
messagesContainer: import('vue').Ref<HTMLElement | null, HTMLElement | null>;
|
|
175
243
|
inputTextarea: import('vue').Ref<HTMLTextAreaElement | null, HTMLTextAreaElement | null>;
|
|
244
|
+
currentPlaceholder: import('vue').ComputedRef<string>;
|
|
245
|
+
isPlaceholderTransitioning: import('vue').Ref<boolean, boolean>;
|
|
176
246
|
handleKeyDown: (event: KeyboardEvent) => void;
|
|
177
247
|
sendMessage: () => Promise<void>;
|
|
178
|
-
|
|
248
|
+
handleStop: () => void;
|
|
249
|
+
getMessageTextWithoutArtifact: (message: ChatMessage) => string;
|
|
179
250
|
getToolDisplayText: (toolName: string) => string;
|
|
180
|
-
|
|
181
|
-
|
|
251
|
+
getToolDisplayName: (toolName: string) => string;
|
|
252
|
+
addMessage: (message: ChatMessage) => void;
|
|
253
|
+
addArtifact: (artifact: ChatArtifact, text?: string) => void;
|
|
182
254
|
clearMessages: () => void;
|
|
183
255
|
scrollToBottom: () => void;
|
|
184
256
|
focusInput: () => void;
|
|
185
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("
|
|
257
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("message-sent" | "response-received" | "artifact-created" | "update:messages" | "title-update")[], import('vue').PublicProps, {
|
|
186
258
|
title: string;
|
|
187
259
|
disabled: boolean;
|
|
188
|
-
messages:
|
|
189
|
-
placeholder: string;
|
|
260
|
+
messages: ChatMessage[];
|
|
261
|
+
placeholder: string | string[];
|
|
190
262
|
editableTitle: boolean;
|
|
191
263
|
showHeader: boolean;
|
|
192
264
|
sendButtonText: string;
|
|
@@ -195,7 +267,9 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
195
267
|
codeLanguage: "trilogy" | "sql";
|
|
196
268
|
systemPrompt: string;
|
|
197
269
|
externalLoading: boolean;
|
|
198
|
-
customSendHandler: ((message: string, messages:
|
|
270
|
+
customSendHandler: ((message: string, messages: ChatMessage[]) => Promise<void>) | null;
|
|
271
|
+
customStopHandler: (() => void) | null;
|
|
272
|
+
stopButtonText: string;
|
|
199
273
|
}, true, {}, {}, {
|
|
200
274
|
EditableTitle: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
201
275
|
modelValue: {
|
|
@@ -271,7 +345,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
271
345
|
Defaults: {};
|
|
272
346
|
}, Readonly<import('vue').ExtractPropTypes<{
|
|
273
347
|
messages: {
|
|
274
|
-
type: PropType<
|
|
348
|
+
type: PropType<ChatMessage[]>;
|
|
275
349
|
default: () => never[];
|
|
276
350
|
};
|
|
277
351
|
title: {
|
|
@@ -287,7 +361,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
287
361
|
default: boolean;
|
|
288
362
|
};
|
|
289
363
|
placeholder: {
|
|
290
|
-
type:
|
|
364
|
+
type: PropType<string | string[]>;
|
|
291
365
|
default: string;
|
|
292
366
|
};
|
|
293
367
|
sendButtonText: {
|
|
@@ -319,15 +393,23 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
319
393
|
default: boolean;
|
|
320
394
|
};
|
|
321
395
|
customSendHandler: {
|
|
322
|
-
type: PropType<((message: string, messages:
|
|
396
|
+
type: PropType<((message: string, messages: ChatMessage[]) => Promise<void>) | null>;
|
|
323
397
|
default: undefined;
|
|
324
398
|
};
|
|
399
|
+
customStopHandler: {
|
|
400
|
+
type: PropType<(() => void) | null>;
|
|
401
|
+
default: undefined;
|
|
402
|
+
};
|
|
403
|
+
stopButtonText: {
|
|
404
|
+
type: StringConstructor;
|
|
405
|
+
default: string;
|
|
406
|
+
};
|
|
325
407
|
}>> & Readonly<{
|
|
326
|
-
"onTitle-update"?: ((...args: any[]) => any) | undefined;
|
|
327
408
|
"onMessage-sent"?: ((...args: any[]) => any) | undefined;
|
|
328
409
|
"onResponse-received"?: ((...args: any[]) => any) | undefined;
|
|
329
410
|
"onArtifact-created"?: ((...args: any[]) => any) | undefined;
|
|
330
411
|
"onUpdate:messages"?: ((...args: any[]) => any) | undefined;
|
|
412
|
+
"onTitle-update"?: ((...args: any[]) => any) | undefined;
|
|
331
413
|
}>, {
|
|
332
414
|
internalMessages: import('vue').Ref<{
|
|
333
415
|
artifact?: {
|
|
@@ -335,24 +417,64 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
335
417
|
data: any;
|
|
336
418
|
config?: any;
|
|
337
419
|
} | undefined;
|
|
420
|
+
executedToolCalls?: {
|
|
421
|
+
id: string;
|
|
422
|
+
name: string;
|
|
423
|
+
input: Record<string, any>;
|
|
424
|
+
result?: {
|
|
425
|
+
success: boolean;
|
|
426
|
+
message?: string | undefined;
|
|
427
|
+
error?: string | undefined;
|
|
428
|
+
} | undefined;
|
|
429
|
+
}[] | undefined;
|
|
430
|
+
role: "user" | "assistant" | "system";
|
|
431
|
+
content: string;
|
|
338
432
|
modelInfo?: {
|
|
339
433
|
totalTokens: number;
|
|
340
434
|
} | undefined;
|
|
341
|
-
role: "user" | "assistant" | "system";
|
|
342
|
-
content: string;
|
|
343
435
|
hidden?: boolean | undefined;
|
|
344
|
-
|
|
436
|
+
toolCalls?: {
|
|
437
|
+
id: string;
|
|
438
|
+
name: string;
|
|
439
|
+
input: Record<string, any>;
|
|
440
|
+
}[] | undefined;
|
|
441
|
+
toolResults?: {
|
|
442
|
+
toolCallId: string;
|
|
443
|
+
toolName: string;
|
|
444
|
+
result: string;
|
|
445
|
+
}[] | undefined;
|
|
446
|
+
}[], ChatMessage[] | {
|
|
345
447
|
artifact?: {
|
|
346
448
|
type: "results" | "chart" | "code" | "custom";
|
|
347
449
|
data: any;
|
|
348
450
|
config?: any;
|
|
349
451
|
} | undefined;
|
|
452
|
+
executedToolCalls?: {
|
|
453
|
+
id: string;
|
|
454
|
+
name: string;
|
|
455
|
+
input: Record<string, any>;
|
|
456
|
+
result?: {
|
|
457
|
+
success: boolean;
|
|
458
|
+
message?: string | undefined;
|
|
459
|
+
error?: string | undefined;
|
|
460
|
+
} | undefined;
|
|
461
|
+
}[] | undefined;
|
|
462
|
+
role: "user" | "assistant" | "system";
|
|
463
|
+
content: string;
|
|
350
464
|
modelInfo?: {
|
|
351
465
|
totalTokens: number;
|
|
352
466
|
} | undefined;
|
|
353
|
-
role: "user" | "assistant" | "system";
|
|
354
|
-
content: string;
|
|
355
467
|
hidden?: boolean | undefined;
|
|
468
|
+
toolCalls?: {
|
|
469
|
+
id: string;
|
|
470
|
+
name: string;
|
|
471
|
+
input: Record<string, any>;
|
|
472
|
+
}[] | undefined;
|
|
473
|
+
toolResults?: {
|
|
474
|
+
toolCallId: string;
|
|
475
|
+
toolName: string;
|
|
476
|
+
result: string;
|
|
477
|
+
}[] | undefined;
|
|
356
478
|
}[]>;
|
|
357
479
|
visibleMessages: import('vue').ComputedRef<{
|
|
358
480
|
artifact?: {
|
|
@@ -360,31 +482,55 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
360
482
|
data: any;
|
|
361
483
|
config?: any;
|
|
362
484
|
} | undefined;
|
|
485
|
+
executedToolCalls?: {
|
|
486
|
+
id: string;
|
|
487
|
+
name: string;
|
|
488
|
+
input: Record<string, any>;
|
|
489
|
+
result?: {
|
|
490
|
+
success: boolean;
|
|
491
|
+
message?: string | undefined;
|
|
492
|
+
error?: string | undefined;
|
|
493
|
+
} | undefined;
|
|
494
|
+
}[] | undefined;
|
|
495
|
+
role: "user" | "assistant" | "system";
|
|
496
|
+
content: string;
|
|
363
497
|
modelInfo?: {
|
|
364
498
|
totalTokens: number;
|
|
365
499
|
} | undefined;
|
|
366
|
-
role: "user" | "assistant" | "system";
|
|
367
|
-
content: string;
|
|
368
500
|
hidden?: boolean | undefined;
|
|
501
|
+
toolCalls?: {
|
|
502
|
+
id: string;
|
|
503
|
+
name: string;
|
|
504
|
+
input: Record<string, any>;
|
|
505
|
+
}[] | undefined;
|
|
506
|
+
toolResults?: {
|
|
507
|
+
toolCallId: string;
|
|
508
|
+
toolName: string;
|
|
509
|
+
result: string;
|
|
510
|
+
}[] | undefined;
|
|
369
511
|
}[]>;
|
|
370
512
|
userInput: import('vue').Ref<string, string>;
|
|
371
513
|
isLoading: import('vue').ComputedRef<boolean>;
|
|
372
514
|
messagesContainer: import('vue').Ref<HTMLElement | null, HTMLElement | null>;
|
|
373
515
|
inputTextarea: import('vue').Ref<HTMLTextAreaElement | null, HTMLTextAreaElement | null>;
|
|
516
|
+
currentPlaceholder: import('vue').ComputedRef<string>;
|
|
517
|
+
isPlaceholderTransitioning: import('vue').Ref<boolean, boolean>;
|
|
374
518
|
handleKeyDown: (event: KeyboardEvent) => void;
|
|
375
519
|
sendMessage: () => Promise<void>;
|
|
376
|
-
|
|
520
|
+
handleStop: () => void;
|
|
521
|
+
getMessageTextWithoutArtifact: (message: ChatMessage) => string;
|
|
377
522
|
getToolDisplayText: (toolName: string) => string;
|
|
378
|
-
|
|
379
|
-
|
|
523
|
+
getToolDisplayName: (toolName: string) => string;
|
|
524
|
+
addMessage: (message: ChatMessage) => void;
|
|
525
|
+
addArtifact: (artifact: ChatArtifact, text?: string) => void;
|
|
380
526
|
clearMessages: () => void;
|
|
381
527
|
scrollToBottom: () => void;
|
|
382
528
|
focusInput: () => void;
|
|
383
529
|
}, {}, {}, {}, {
|
|
384
530
|
title: string;
|
|
385
531
|
disabled: boolean;
|
|
386
|
-
messages:
|
|
387
|
-
placeholder: string;
|
|
532
|
+
messages: ChatMessage[];
|
|
533
|
+
placeholder: string | string[];
|
|
388
534
|
editableTitle: boolean;
|
|
389
535
|
showHeader: boolean;
|
|
390
536
|
sendButtonText: string;
|
|
@@ -393,10 +539,12 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
393
539
|
codeLanguage: "trilogy" | "sql";
|
|
394
540
|
systemPrompt: string;
|
|
395
541
|
externalLoading: boolean;
|
|
396
|
-
customSendHandler: ((message: string, messages:
|
|
542
|
+
customSendHandler: ((message: string, messages: ChatMessage[]) => Promise<void>) | null;
|
|
543
|
+
customStopHandler: (() => void) | null;
|
|
544
|
+
stopButtonText: string;
|
|
397
545
|
}> | null, import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
|
|
398
546
|
messages: {
|
|
399
|
-
type: PropType<
|
|
547
|
+
type: PropType<ChatMessage[]>;
|
|
400
548
|
default: () => never[];
|
|
401
549
|
};
|
|
402
550
|
title: {
|
|
@@ -412,7 +560,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
412
560
|
default: boolean;
|
|
413
561
|
};
|
|
414
562
|
placeholder: {
|
|
415
|
-
type:
|
|
563
|
+
type: PropType<string | string[]>;
|
|
416
564
|
default: string;
|
|
417
565
|
};
|
|
418
566
|
sendButtonText: {
|
|
@@ -444,15 +592,23 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
444
592
|
default: boolean;
|
|
445
593
|
};
|
|
446
594
|
customSendHandler: {
|
|
447
|
-
type: PropType<((message: string, messages:
|
|
595
|
+
type: PropType<((message: string, messages: ChatMessage[]) => Promise<void>) | null>;
|
|
596
|
+
default: undefined;
|
|
597
|
+
};
|
|
598
|
+
customStopHandler: {
|
|
599
|
+
type: PropType<(() => void) | null>;
|
|
448
600
|
default: undefined;
|
|
449
601
|
};
|
|
602
|
+
stopButtonText: {
|
|
603
|
+
type: StringConstructor;
|
|
604
|
+
default: string;
|
|
605
|
+
};
|
|
450
606
|
}>> & Readonly<{
|
|
451
|
-
"onTitle-update"?: ((...args: any[]) => any) | undefined;
|
|
452
607
|
"onMessage-sent"?: ((...args: any[]) => any) | undefined;
|
|
453
608
|
"onResponse-received"?: ((...args: any[]) => any) | undefined;
|
|
454
609
|
"onArtifact-created"?: ((...args: any[]) => any) | undefined;
|
|
455
610
|
"onUpdate:messages"?: ((...args: any[]) => any) | undefined;
|
|
611
|
+
"onTitle-update"?: ((...args: any[]) => any) | undefined;
|
|
456
612
|
}>, {
|
|
457
613
|
internalMessages: import('vue').Ref<{
|
|
458
614
|
artifact?: {
|
|
@@ -460,24 +616,64 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
460
616
|
data: any;
|
|
461
617
|
config?: any;
|
|
462
618
|
} | undefined;
|
|
619
|
+
executedToolCalls?: {
|
|
620
|
+
id: string;
|
|
621
|
+
name: string;
|
|
622
|
+
input: Record<string, any>;
|
|
623
|
+
result?: {
|
|
624
|
+
success: boolean;
|
|
625
|
+
message?: string | undefined;
|
|
626
|
+
error?: string | undefined;
|
|
627
|
+
} | undefined;
|
|
628
|
+
}[] | undefined;
|
|
629
|
+
role: "user" | "assistant" | "system";
|
|
630
|
+
content: string;
|
|
463
631
|
modelInfo?: {
|
|
464
632
|
totalTokens: number;
|
|
465
633
|
} | undefined;
|
|
466
|
-
role: "user" | "assistant" | "system";
|
|
467
|
-
content: string;
|
|
468
634
|
hidden?: boolean | undefined;
|
|
469
|
-
|
|
635
|
+
toolCalls?: {
|
|
636
|
+
id: string;
|
|
637
|
+
name: string;
|
|
638
|
+
input: Record<string, any>;
|
|
639
|
+
}[] | undefined;
|
|
640
|
+
toolResults?: {
|
|
641
|
+
toolCallId: string;
|
|
642
|
+
toolName: string;
|
|
643
|
+
result: string;
|
|
644
|
+
}[] | undefined;
|
|
645
|
+
}[], ChatMessage[] | {
|
|
470
646
|
artifact?: {
|
|
471
647
|
type: "results" | "chart" | "code" | "custom";
|
|
472
648
|
data: any;
|
|
473
649
|
config?: any;
|
|
474
650
|
} | undefined;
|
|
651
|
+
executedToolCalls?: {
|
|
652
|
+
id: string;
|
|
653
|
+
name: string;
|
|
654
|
+
input: Record<string, any>;
|
|
655
|
+
result?: {
|
|
656
|
+
success: boolean;
|
|
657
|
+
message?: string | undefined;
|
|
658
|
+
error?: string | undefined;
|
|
659
|
+
} | undefined;
|
|
660
|
+
}[] | undefined;
|
|
661
|
+
role: "user" | "assistant" | "system";
|
|
662
|
+
content: string;
|
|
475
663
|
modelInfo?: {
|
|
476
664
|
totalTokens: number;
|
|
477
665
|
} | undefined;
|
|
478
|
-
role: "user" | "assistant" | "system";
|
|
479
|
-
content: string;
|
|
480
666
|
hidden?: boolean | undefined;
|
|
667
|
+
toolCalls?: {
|
|
668
|
+
id: string;
|
|
669
|
+
name: string;
|
|
670
|
+
input: Record<string, any>;
|
|
671
|
+
}[] | undefined;
|
|
672
|
+
toolResults?: {
|
|
673
|
+
toolCallId: string;
|
|
674
|
+
toolName: string;
|
|
675
|
+
result: string;
|
|
676
|
+
}[] | undefined;
|
|
481
677
|
}[]>;
|
|
482
678
|
visibleMessages: import('vue').ComputedRef<{
|
|
483
679
|
artifact?: {
|
|
@@ -485,31 +681,55 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
485
681
|
data: any;
|
|
486
682
|
config?: any;
|
|
487
683
|
} | undefined;
|
|
684
|
+
executedToolCalls?: {
|
|
685
|
+
id: string;
|
|
686
|
+
name: string;
|
|
687
|
+
input: Record<string, any>;
|
|
688
|
+
result?: {
|
|
689
|
+
success: boolean;
|
|
690
|
+
message?: string | undefined;
|
|
691
|
+
error?: string | undefined;
|
|
692
|
+
} | undefined;
|
|
693
|
+
}[] | undefined;
|
|
694
|
+
role: "user" | "assistant" | "system";
|
|
695
|
+
content: string;
|
|
488
696
|
modelInfo?: {
|
|
489
697
|
totalTokens: number;
|
|
490
698
|
} | undefined;
|
|
491
|
-
role: "user" | "assistant" | "system";
|
|
492
|
-
content: string;
|
|
493
699
|
hidden?: boolean | undefined;
|
|
700
|
+
toolCalls?: {
|
|
701
|
+
id: string;
|
|
702
|
+
name: string;
|
|
703
|
+
input: Record<string, any>;
|
|
704
|
+
}[] | undefined;
|
|
705
|
+
toolResults?: {
|
|
706
|
+
toolCallId: string;
|
|
707
|
+
toolName: string;
|
|
708
|
+
result: string;
|
|
709
|
+
}[] | undefined;
|
|
494
710
|
}[]>;
|
|
495
711
|
userInput: import('vue').Ref<string, string>;
|
|
496
712
|
isLoading: import('vue').ComputedRef<boolean>;
|
|
497
713
|
messagesContainer: import('vue').Ref<HTMLElement | null, HTMLElement | null>;
|
|
498
714
|
inputTextarea: import('vue').Ref<HTMLTextAreaElement | null, HTMLTextAreaElement | null>;
|
|
715
|
+
currentPlaceholder: import('vue').ComputedRef<string>;
|
|
716
|
+
isPlaceholderTransitioning: import('vue').Ref<boolean, boolean>;
|
|
499
717
|
handleKeyDown: (event: KeyboardEvent) => void;
|
|
500
718
|
sendMessage: () => Promise<void>;
|
|
501
|
-
|
|
719
|
+
handleStop: () => void;
|
|
720
|
+
getMessageTextWithoutArtifact: (message: ChatMessage) => string;
|
|
502
721
|
getToolDisplayText: (toolName: string) => string;
|
|
503
|
-
|
|
504
|
-
|
|
722
|
+
getToolDisplayName: (toolName: string) => string;
|
|
723
|
+
addMessage: (message: ChatMessage) => void;
|
|
724
|
+
addArtifact: (artifact: ChatArtifact, text?: string) => void;
|
|
505
725
|
clearMessages: () => void;
|
|
506
726
|
scrollToBottom: () => void;
|
|
507
727
|
focusInput: () => void;
|
|
508
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("
|
|
728
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("message-sent" | "response-received" | "artifact-created" | "update:messages" | "title-update")[], import('vue').PublicProps, {
|
|
509
729
|
title: string;
|
|
510
730
|
disabled: boolean;
|
|
511
|
-
messages:
|
|
512
|
-
placeholder: string;
|
|
731
|
+
messages: ChatMessage[];
|
|
732
|
+
placeholder: string | string[];
|
|
513
733
|
editableTitle: boolean;
|
|
514
734
|
showHeader: boolean;
|
|
515
735
|
sendButtonText: string;
|
|
@@ -518,7 +738,9 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
518
738
|
codeLanguage: "trilogy" | "sql";
|
|
519
739
|
systemPrompt: string;
|
|
520
740
|
externalLoading: boolean;
|
|
521
|
-
customSendHandler: ((message: string, messages:
|
|
741
|
+
customSendHandler: ((message: string, messages: ChatMessage[]) => Promise<void>) | null;
|
|
742
|
+
customStopHandler: (() => void) | null;
|
|
743
|
+
stopButtonText: string;
|
|
522
744
|
}, true, {}, {}, {
|
|
523
745
|
EditableTitle: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
524
746
|
modelValue: {
|
|
@@ -594,7 +816,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
594
816
|
Defaults: {};
|
|
595
817
|
}, Readonly<import('vue').ExtractPropTypes<{
|
|
596
818
|
messages: {
|
|
597
|
-
type: PropType<
|
|
819
|
+
type: PropType<ChatMessage[]>;
|
|
598
820
|
default: () => never[];
|
|
599
821
|
};
|
|
600
822
|
title: {
|
|
@@ -610,7 +832,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
610
832
|
default: boolean;
|
|
611
833
|
};
|
|
612
834
|
placeholder: {
|
|
613
|
-
type:
|
|
835
|
+
type: PropType<string | string[]>;
|
|
614
836
|
default: string;
|
|
615
837
|
};
|
|
616
838
|
sendButtonText: {
|
|
@@ -642,15 +864,23 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
642
864
|
default: boolean;
|
|
643
865
|
};
|
|
644
866
|
customSendHandler: {
|
|
645
|
-
type: PropType<((message: string, messages:
|
|
867
|
+
type: PropType<((message: string, messages: ChatMessage[]) => Promise<void>) | null>;
|
|
868
|
+
default: undefined;
|
|
869
|
+
};
|
|
870
|
+
customStopHandler: {
|
|
871
|
+
type: PropType<(() => void) | null>;
|
|
646
872
|
default: undefined;
|
|
647
873
|
};
|
|
874
|
+
stopButtonText: {
|
|
875
|
+
type: StringConstructor;
|
|
876
|
+
default: string;
|
|
877
|
+
};
|
|
648
878
|
}>> & Readonly<{
|
|
649
|
-
"onTitle-update"?: ((...args: any[]) => any) | undefined;
|
|
650
879
|
"onMessage-sent"?: ((...args: any[]) => any) | undefined;
|
|
651
880
|
"onResponse-received"?: ((...args: any[]) => any) | undefined;
|
|
652
881
|
"onArtifact-created"?: ((...args: any[]) => any) | undefined;
|
|
653
882
|
"onUpdate:messages"?: ((...args: any[]) => any) | undefined;
|
|
883
|
+
"onTitle-update"?: ((...args: any[]) => any) | undefined;
|
|
654
884
|
}>, {
|
|
655
885
|
internalMessages: import('vue').Ref<{
|
|
656
886
|
artifact?: {
|
|
@@ -658,24 +888,64 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
658
888
|
data: any;
|
|
659
889
|
config?: any;
|
|
660
890
|
} | undefined;
|
|
891
|
+
executedToolCalls?: {
|
|
892
|
+
id: string;
|
|
893
|
+
name: string;
|
|
894
|
+
input: Record<string, any>;
|
|
895
|
+
result?: {
|
|
896
|
+
success: boolean;
|
|
897
|
+
message?: string | undefined;
|
|
898
|
+
error?: string | undefined;
|
|
899
|
+
} | undefined;
|
|
900
|
+
}[] | undefined;
|
|
901
|
+
role: "user" | "assistant" | "system";
|
|
902
|
+
content: string;
|
|
661
903
|
modelInfo?: {
|
|
662
904
|
totalTokens: number;
|
|
663
905
|
} | undefined;
|
|
664
|
-
role: "user" | "assistant" | "system";
|
|
665
|
-
content: string;
|
|
666
906
|
hidden?: boolean | undefined;
|
|
667
|
-
|
|
907
|
+
toolCalls?: {
|
|
908
|
+
id: string;
|
|
909
|
+
name: string;
|
|
910
|
+
input: Record<string, any>;
|
|
911
|
+
}[] | undefined;
|
|
912
|
+
toolResults?: {
|
|
913
|
+
toolCallId: string;
|
|
914
|
+
toolName: string;
|
|
915
|
+
result: string;
|
|
916
|
+
}[] | undefined;
|
|
917
|
+
}[], ChatMessage[] | {
|
|
668
918
|
artifact?: {
|
|
669
919
|
type: "results" | "chart" | "code" | "custom";
|
|
670
920
|
data: any;
|
|
671
921
|
config?: any;
|
|
672
922
|
} | undefined;
|
|
923
|
+
executedToolCalls?: {
|
|
924
|
+
id: string;
|
|
925
|
+
name: string;
|
|
926
|
+
input: Record<string, any>;
|
|
927
|
+
result?: {
|
|
928
|
+
success: boolean;
|
|
929
|
+
message?: string | undefined;
|
|
930
|
+
error?: string | undefined;
|
|
931
|
+
} | undefined;
|
|
932
|
+
}[] | undefined;
|
|
933
|
+
role: "user" | "assistant" | "system";
|
|
934
|
+
content: string;
|
|
673
935
|
modelInfo?: {
|
|
674
936
|
totalTokens: number;
|
|
675
937
|
} | undefined;
|
|
676
|
-
role: "user" | "assistant" | "system";
|
|
677
|
-
content: string;
|
|
678
938
|
hidden?: boolean | undefined;
|
|
939
|
+
toolCalls?: {
|
|
940
|
+
id: string;
|
|
941
|
+
name: string;
|
|
942
|
+
input: Record<string, any>;
|
|
943
|
+
}[] | undefined;
|
|
944
|
+
toolResults?: {
|
|
945
|
+
toolCallId: string;
|
|
946
|
+
toolName: string;
|
|
947
|
+
result: string;
|
|
948
|
+
}[] | undefined;
|
|
679
949
|
}[]>;
|
|
680
950
|
visibleMessages: import('vue').ComputedRef<{
|
|
681
951
|
artifact?: {
|
|
@@ -683,31 +953,55 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
683
953
|
data: any;
|
|
684
954
|
config?: any;
|
|
685
955
|
} | undefined;
|
|
956
|
+
executedToolCalls?: {
|
|
957
|
+
id: string;
|
|
958
|
+
name: string;
|
|
959
|
+
input: Record<string, any>;
|
|
960
|
+
result?: {
|
|
961
|
+
success: boolean;
|
|
962
|
+
message?: string | undefined;
|
|
963
|
+
error?: string | undefined;
|
|
964
|
+
} | undefined;
|
|
965
|
+
}[] | undefined;
|
|
966
|
+
role: "user" | "assistant" | "system";
|
|
967
|
+
content: string;
|
|
686
968
|
modelInfo?: {
|
|
687
969
|
totalTokens: number;
|
|
688
970
|
} | undefined;
|
|
689
|
-
role: "user" | "assistant" | "system";
|
|
690
|
-
content: string;
|
|
691
971
|
hidden?: boolean | undefined;
|
|
972
|
+
toolCalls?: {
|
|
973
|
+
id: string;
|
|
974
|
+
name: string;
|
|
975
|
+
input: Record<string, any>;
|
|
976
|
+
}[] | undefined;
|
|
977
|
+
toolResults?: {
|
|
978
|
+
toolCallId: string;
|
|
979
|
+
toolName: string;
|
|
980
|
+
result: string;
|
|
981
|
+
}[] | undefined;
|
|
692
982
|
}[]>;
|
|
693
983
|
userInput: import('vue').Ref<string, string>;
|
|
694
984
|
isLoading: import('vue').ComputedRef<boolean>;
|
|
695
985
|
messagesContainer: import('vue').Ref<HTMLElement | null, HTMLElement | null>;
|
|
696
986
|
inputTextarea: import('vue').Ref<HTMLTextAreaElement | null, HTMLTextAreaElement | null>;
|
|
987
|
+
currentPlaceholder: import('vue').ComputedRef<string>;
|
|
988
|
+
isPlaceholderTransitioning: import('vue').Ref<boolean, boolean>;
|
|
697
989
|
handleKeyDown: (event: KeyboardEvent) => void;
|
|
698
990
|
sendMessage: () => Promise<void>;
|
|
699
|
-
|
|
991
|
+
handleStop: () => void;
|
|
992
|
+
getMessageTextWithoutArtifact: (message: ChatMessage) => string;
|
|
700
993
|
getToolDisplayText: (toolName: string) => string;
|
|
701
|
-
|
|
702
|
-
|
|
994
|
+
getToolDisplayName: (toolName: string) => string;
|
|
995
|
+
addMessage: (message: ChatMessage) => void;
|
|
996
|
+
addArtifact: (artifact: ChatArtifact, text?: string) => void;
|
|
703
997
|
clearMessages: () => void;
|
|
704
998
|
scrollToBottom: () => void;
|
|
705
999
|
focusInput: () => void;
|
|
706
1000
|
}, {}, {}, {}, {
|
|
707
1001
|
title: string;
|
|
708
1002
|
disabled: boolean;
|
|
709
|
-
messages:
|
|
710
|
-
placeholder: string;
|
|
1003
|
+
messages: ChatMessage[];
|
|
1004
|
+
placeholder: string | string[];
|
|
711
1005
|
editableTitle: boolean;
|
|
712
1006
|
showHeader: boolean;
|
|
713
1007
|
sendButtonText: string;
|
|
@@ -716,7 +1010,9 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
716
1010
|
codeLanguage: "trilogy" | "sql";
|
|
717
1011
|
systemPrompt: string;
|
|
718
1012
|
externalLoading: boolean;
|
|
719
|
-
customSendHandler: ((message: string, messages:
|
|
1013
|
+
customSendHandler: ((message: string, messages: ChatMessage[]) => Promise<void>) | null;
|
|
1014
|
+
customStopHandler: (() => void) | null;
|
|
1015
|
+
stopButtonText: string;
|
|
720
1016
|
}> | null>;
|
|
721
1017
|
artifactExpandedRef: import('vue').Ref<HTMLElement | null, HTMLElement | null>;
|
|
722
1018
|
messages: import('vue').Ref<{
|
|
@@ -725,24 +1021,64 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
725
1021
|
data: any;
|
|
726
1022
|
config?: any;
|
|
727
1023
|
} | undefined;
|
|
1024
|
+
executedToolCalls?: {
|
|
1025
|
+
id: string;
|
|
1026
|
+
name: string;
|
|
1027
|
+
input: Record<string, any>;
|
|
1028
|
+
result?: {
|
|
1029
|
+
success: boolean;
|
|
1030
|
+
message?: string | undefined;
|
|
1031
|
+
error?: string | undefined;
|
|
1032
|
+
} | undefined;
|
|
1033
|
+
}[] | undefined;
|
|
1034
|
+
role: "user" | "assistant" | "system";
|
|
1035
|
+
content: string;
|
|
728
1036
|
modelInfo?: {
|
|
729
1037
|
totalTokens: number;
|
|
730
1038
|
} | undefined;
|
|
731
|
-
role: "user" | "assistant" | "system";
|
|
732
|
-
content: string;
|
|
733
1039
|
hidden?: boolean | undefined;
|
|
1040
|
+
toolCalls?: {
|
|
1041
|
+
id: string;
|
|
1042
|
+
name: string;
|
|
1043
|
+
input: Record<string, any>;
|
|
1044
|
+
}[] | undefined;
|
|
1045
|
+
toolResults?: {
|
|
1046
|
+
toolCallId: string;
|
|
1047
|
+
toolName: string;
|
|
1048
|
+
result: string;
|
|
1049
|
+
}[] | undefined;
|
|
734
1050
|
}[], ChatMessage[] | {
|
|
735
1051
|
artifact?: {
|
|
736
1052
|
type: "results" | "chart" | "code" | "custom";
|
|
737
1053
|
data: any;
|
|
738
1054
|
config?: any;
|
|
739
1055
|
} | undefined;
|
|
1056
|
+
executedToolCalls?: {
|
|
1057
|
+
id: string;
|
|
1058
|
+
name: string;
|
|
1059
|
+
input: Record<string, any>;
|
|
1060
|
+
result?: {
|
|
1061
|
+
success: boolean;
|
|
1062
|
+
message?: string | undefined;
|
|
1063
|
+
error?: string | undefined;
|
|
1064
|
+
} | undefined;
|
|
1065
|
+
}[] | undefined;
|
|
1066
|
+
role: "user" | "assistant" | "system";
|
|
1067
|
+
content: string;
|
|
740
1068
|
modelInfo?: {
|
|
741
1069
|
totalTokens: number;
|
|
742
1070
|
} | undefined;
|
|
743
|
-
role: "user" | "assistant" | "system";
|
|
744
|
-
content: string;
|
|
745
1071
|
hidden?: boolean | undefined;
|
|
1072
|
+
toolCalls?: {
|
|
1073
|
+
id: string;
|
|
1074
|
+
name: string;
|
|
1075
|
+
input: Record<string, any>;
|
|
1076
|
+
}[] | undefined;
|
|
1077
|
+
toolResults?: {
|
|
1078
|
+
toolCallId: string;
|
|
1079
|
+
toolName: string;
|
|
1080
|
+
result: string;
|
|
1081
|
+
}[] | undefined;
|
|
746
1082
|
}[]>;
|
|
747
1083
|
artifacts: import('vue').Ref<{
|
|
748
1084
|
type: "results" | "chart" | "code" | "custom";
|
|
@@ -784,12 +1120,32 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
784
1120
|
data: any;
|
|
785
1121
|
config?: any;
|
|
786
1122
|
} | undefined;
|
|
1123
|
+
executedToolCalls?: {
|
|
1124
|
+
id: string;
|
|
1125
|
+
name: string;
|
|
1126
|
+
input: Record<string, any>;
|
|
1127
|
+
result?: {
|
|
1128
|
+
success: boolean;
|
|
1129
|
+
message?: string | undefined;
|
|
1130
|
+
error?: string | undefined;
|
|
1131
|
+
} | undefined;
|
|
1132
|
+
}[] | undefined;
|
|
1133
|
+
role: "user" | "assistant" | "system";
|
|
1134
|
+
content: string;
|
|
787
1135
|
modelInfo?: {
|
|
788
1136
|
totalTokens: number;
|
|
789
1137
|
} | undefined;
|
|
790
|
-
role: "user" | "assistant" | "system";
|
|
791
|
-
content: string;
|
|
792
1138
|
hidden?: boolean | undefined;
|
|
1139
|
+
toolCalls?: {
|
|
1140
|
+
id: string;
|
|
1141
|
+
name: string;
|
|
1142
|
+
input: Record<string, any>;
|
|
1143
|
+
}[] | undefined;
|
|
1144
|
+
toolResults?: {
|
|
1145
|
+
toolCallId: string;
|
|
1146
|
+
toolName: string;
|
|
1147
|
+
result: string;
|
|
1148
|
+
}[] | undefined;
|
|
793
1149
|
}[];
|
|
794
1150
|
getArtifacts: () => {
|
|
795
1151
|
type: "results" | "chart" | "code" | "custom";
|
|
@@ -800,7 +1156,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
800
1156
|
isResizing: import('vue').Ref<boolean, boolean>;
|
|
801
1157
|
sidebarWidth: import('vue').Ref<number, number>;
|
|
802
1158
|
startResize: (e: MouseEvent) => void;
|
|
803
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("select-symbol" | "
|
|
1159
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("select-symbol" | "message-sent" | "response-received" | "artifact-created" | "update:messages" | "title-update" | "import-change" | "artifact-selected" | "update:artifacts" | "update:activeArtifactIndex")[], "select-symbol" | "message-sent" | "response-received" | "artifact-created" | "update:messages" | "title-update" | "import-change" | "artifact-selected" | "update:artifacts" | "update:activeArtifactIndex", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
804
1160
|
title: {
|
|
805
1161
|
type: StringConstructor;
|
|
806
1162
|
default: string;
|
|
@@ -814,7 +1170,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
814
1170
|
default: boolean;
|
|
815
1171
|
};
|
|
816
1172
|
placeholder: {
|
|
817
|
-
type:
|
|
1173
|
+
type: PropType<string | string[]>;
|
|
818
1174
|
default: string;
|
|
819
1175
|
};
|
|
820
1176
|
systemPrompt: {
|
|
@@ -870,12 +1226,12 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
870
1226
|
};
|
|
871
1227
|
}>> & Readonly<{
|
|
872
1228
|
"onSelect-symbol"?: ((...args: any[]) => any) | undefined;
|
|
873
|
-
"onImport-change"?: ((...args: any[]) => any) | undefined;
|
|
874
|
-
"onTitle-update"?: ((...args: any[]) => any) | undefined;
|
|
875
1229
|
"onMessage-sent"?: ((...args: any[]) => any) | undefined;
|
|
876
1230
|
"onResponse-received"?: ((...args: any[]) => any) | undefined;
|
|
877
1231
|
"onArtifact-created"?: ((...args: any[]) => any) | undefined;
|
|
878
1232
|
"onUpdate:messages"?: ((...args: any[]) => any) | undefined;
|
|
1233
|
+
"onTitle-update"?: ((...args: any[]) => any) | undefined;
|
|
1234
|
+
"onImport-change"?: ((...args: any[]) => any) | undefined;
|
|
879
1235
|
"onArtifact-selected"?: ((...args: any[]) => any) | undefined;
|
|
880
1236
|
"onUpdate:artifacts"?: ((...args: any[]) => any) | undefined;
|
|
881
1237
|
"onUpdate:activeArtifactIndex"?: ((...args: any[]) => any) | undefined;
|
|
@@ -883,15 +1239,15 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
883
1239
|
title: string;
|
|
884
1240
|
disabled: boolean;
|
|
885
1241
|
activeImports: ChatImport[];
|
|
886
|
-
placeholder: string;
|
|
1242
|
+
placeholder: string | string[];
|
|
887
1243
|
symbols: CompletionItem[];
|
|
888
|
-
availableImports: ChatImport[];
|
|
889
1244
|
editableTitle: boolean;
|
|
890
|
-
connectionInfo: string;
|
|
891
1245
|
showHeader: boolean;
|
|
892
1246
|
activeToolName: string;
|
|
893
1247
|
systemPrompt: string;
|
|
894
1248
|
externalLoading: boolean;
|
|
1249
|
+
connectionInfo: string;
|
|
1250
|
+
availableImports: ChatImport[];
|
|
895
1251
|
initialMessages: ChatMessage[];
|
|
896
1252
|
initialArtifacts: ChatArtifact[];
|
|
897
1253
|
initialActiveArtifactIndex: number;
|
|
@@ -902,7 +1258,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
902
1258
|
}, {}, {
|
|
903
1259
|
LLMChat: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
904
1260
|
messages: {
|
|
905
|
-
type: PropType<
|
|
1261
|
+
type: PropType<ChatMessage[]>;
|
|
906
1262
|
default: () => never[];
|
|
907
1263
|
};
|
|
908
1264
|
title: {
|
|
@@ -918,7 +1274,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
918
1274
|
default: boolean;
|
|
919
1275
|
};
|
|
920
1276
|
placeholder: {
|
|
921
|
-
type:
|
|
1277
|
+
type: PropType<string | string[]>;
|
|
922
1278
|
default: string;
|
|
923
1279
|
};
|
|
924
1280
|
sendButtonText: {
|
|
@@ -950,9 +1306,17 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
950
1306
|
default: boolean;
|
|
951
1307
|
};
|
|
952
1308
|
customSendHandler: {
|
|
953
|
-
type: PropType<((message: string, messages:
|
|
1309
|
+
type: PropType<((message: string, messages: ChatMessage[]) => Promise<void>) | null>;
|
|
1310
|
+
default: undefined;
|
|
1311
|
+
};
|
|
1312
|
+
customStopHandler: {
|
|
1313
|
+
type: PropType<(() => void) | null>;
|
|
954
1314
|
default: undefined;
|
|
955
1315
|
};
|
|
1316
|
+
stopButtonText: {
|
|
1317
|
+
type: StringConstructor;
|
|
1318
|
+
default: string;
|
|
1319
|
+
};
|
|
956
1320
|
}>, {
|
|
957
1321
|
internalMessages: import('vue').Ref<{
|
|
958
1322
|
artifact?: {
|
|
@@ -960,24 +1324,64 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
960
1324
|
data: any;
|
|
961
1325
|
config?: any;
|
|
962
1326
|
} | undefined;
|
|
1327
|
+
executedToolCalls?: {
|
|
1328
|
+
id: string;
|
|
1329
|
+
name: string;
|
|
1330
|
+
input: Record<string, any>;
|
|
1331
|
+
result?: {
|
|
1332
|
+
success: boolean;
|
|
1333
|
+
message?: string | undefined;
|
|
1334
|
+
error?: string | undefined;
|
|
1335
|
+
} | undefined;
|
|
1336
|
+
}[] | undefined;
|
|
1337
|
+
role: "user" | "assistant" | "system";
|
|
1338
|
+
content: string;
|
|
963
1339
|
modelInfo?: {
|
|
964
1340
|
totalTokens: number;
|
|
965
1341
|
} | undefined;
|
|
966
|
-
role: "user" | "assistant" | "system";
|
|
967
|
-
content: string;
|
|
968
1342
|
hidden?: boolean | undefined;
|
|
969
|
-
|
|
1343
|
+
toolCalls?: {
|
|
1344
|
+
id: string;
|
|
1345
|
+
name: string;
|
|
1346
|
+
input: Record<string, any>;
|
|
1347
|
+
}[] | undefined;
|
|
1348
|
+
toolResults?: {
|
|
1349
|
+
toolCallId: string;
|
|
1350
|
+
toolName: string;
|
|
1351
|
+
result: string;
|
|
1352
|
+
}[] | undefined;
|
|
1353
|
+
}[], ChatMessage[] | {
|
|
970
1354
|
artifact?: {
|
|
971
1355
|
type: "results" | "chart" | "code" | "custom";
|
|
972
1356
|
data: any;
|
|
973
1357
|
config?: any;
|
|
974
1358
|
} | undefined;
|
|
1359
|
+
executedToolCalls?: {
|
|
1360
|
+
id: string;
|
|
1361
|
+
name: string;
|
|
1362
|
+
input: Record<string, any>;
|
|
1363
|
+
result?: {
|
|
1364
|
+
success: boolean;
|
|
1365
|
+
message?: string | undefined;
|
|
1366
|
+
error?: string | undefined;
|
|
1367
|
+
} | undefined;
|
|
1368
|
+
}[] | undefined;
|
|
1369
|
+
role: "user" | "assistant" | "system";
|
|
1370
|
+
content: string;
|
|
975
1371
|
modelInfo?: {
|
|
976
1372
|
totalTokens: number;
|
|
977
1373
|
} | undefined;
|
|
978
|
-
role: "user" | "assistant" | "system";
|
|
979
|
-
content: string;
|
|
980
1374
|
hidden?: boolean | undefined;
|
|
1375
|
+
toolCalls?: {
|
|
1376
|
+
id: string;
|
|
1377
|
+
name: string;
|
|
1378
|
+
input: Record<string, any>;
|
|
1379
|
+
}[] | undefined;
|
|
1380
|
+
toolResults?: {
|
|
1381
|
+
toolCallId: string;
|
|
1382
|
+
toolName: string;
|
|
1383
|
+
result: string;
|
|
1384
|
+
}[] | undefined;
|
|
981
1385
|
}[]>;
|
|
982
1386
|
visibleMessages: import('vue').ComputedRef<{
|
|
983
1387
|
artifact?: {
|
|
@@ -985,29 +1389,53 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
985
1389
|
data: any;
|
|
986
1390
|
config?: any;
|
|
987
1391
|
} | undefined;
|
|
1392
|
+
executedToolCalls?: {
|
|
1393
|
+
id: string;
|
|
1394
|
+
name: string;
|
|
1395
|
+
input: Record<string, any>;
|
|
1396
|
+
result?: {
|
|
1397
|
+
success: boolean;
|
|
1398
|
+
message?: string | undefined;
|
|
1399
|
+
error?: string | undefined;
|
|
1400
|
+
} | undefined;
|
|
1401
|
+
}[] | undefined;
|
|
1402
|
+
role: "user" | "assistant" | "system";
|
|
1403
|
+
content: string;
|
|
988
1404
|
modelInfo?: {
|
|
989
1405
|
totalTokens: number;
|
|
990
1406
|
} | undefined;
|
|
991
|
-
role: "user" | "assistant" | "system";
|
|
992
|
-
content: string;
|
|
993
1407
|
hidden?: boolean | undefined;
|
|
1408
|
+
toolCalls?: {
|
|
1409
|
+
id: string;
|
|
1410
|
+
name: string;
|
|
1411
|
+
input: Record<string, any>;
|
|
1412
|
+
}[] | undefined;
|
|
1413
|
+
toolResults?: {
|
|
1414
|
+
toolCallId: string;
|
|
1415
|
+
toolName: string;
|
|
1416
|
+
result: string;
|
|
1417
|
+
}[] | undefined;
|
|
994
1418
|
}[]>;
|
|
995
1419
|
userInput: import('vue').Ref<string, string>;
|
|
996
1420
|
isLoading: import('vue').ComputedRef<boolean>;
|
|
997
1421
|
messagesContainer: import('vue').Ref<HTMLElement | null, HTMLElement | null>;
|
|
998
1422
|
inputTextarea: import('vue').Ref<HTMLTextAreaElement | null, HTMLTextAreaElement | null>;
|
|
1423
|
+
currentPlaceholder: import('vue').ComputedRef<string>;
|
|
1424
|
+
isPlaceholderTransitioning: import('vue').Ref<boolean, boolean>;
|
|
999
1425
|
handleKeyDown: (event: KeyboardEvent) => void;
|
|
1000
1426
|
sendMessage: () => Promise<void>;
|
|
1001
|
-
|
|
1427
|
+
handleStop: () => void;
|
|
1428
|
+
getMessageTextWithoutArtifact: (message: ChatMessage) => string;
|
|
1002
1429
|
getToolDisplayText: (toolName: string) => string;
|
|
1003
|
-
|
|
1004
|
-
|
|
1430
|
+
getToolDisplayName: (toolName: string) => string;
|
|
1431
|
+
addMessage: (message: ChatMessage) => void;
|
|
1432
|
+
addArtifact: (artifact: ChatArtifact, text?: string) => void;
|
|
1005
1433
|
clearMessages: () => void;
|
|
1006
1434
|
scrollToBottom: () => void;
|
|
1007
1435
|
focusInput: () => void;
|
|
1008
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("
|
|
1436
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("message-sent" | "response-received" | "artifact-created" | "update:messages" | "title-update")[], "message-sent" | "response-received" | "artifact-created" | "update:messages" | "title-update", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
1009
1437
|
messages: {
|
|
1010
|
-
type: PropType<
|
|
1438
|
+
type: PropType<ChatMessage[]>;
|
|
1011
1439
|
default: () => never[];
|
|
1012
1440
|
};
|
|
1013
1441
|
title: {
|
|
@@ -1023,7 +1451,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
1023
1451
|
default: boolean;
|
|
1024
1452
|
};
|
|
1025
1453
|
placeholder: {
|
|
1026
|
-
type:
|
|
1454
|
+
type: PropType<string | string[]>;
|
|
1027
1455
|
default: string;
|
|
1028
1456
|
};
|
|
1029
1457
|
sendButtonText: {
|
|
@@ -1055,20 +1483,28 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
1055
1483
|
default: boolean;
|
|
1056
1484
|
};
|
|
1057
1485
|
customSendHandler: {
|
|
1058
|
-
type: PropType<((message: string, messages:
|
|
1486
|
+
type: PropType<((message: string, messages: ChatMessage[]) => Promise<void>) | null>;
|
|
1487
|
+
default: undefined;
|
|
1488
|
+
};
|
|
1489
|
+
customStopHandler: {
|
|
1490
|
+
type: PropType<(() => void) | null>;
|
|
1059
1491
|
default: undefined;
|
|
1060
1492
|
};
|
|
1493
|
+
stopButtonText: {
|
|
1494
|
+
type: StringConstructor;
|
|
1495
|
+
default: string;
|
|
1496
|
+
};
|
|
1061
1497
|
}>> & Readonly<{
|
|
1062
|
-
"onTitle-update"?: ((...args: any[]) => any) | undefined;
|
|
1063
1498
|
"onMessage-sent"?: ((...args: any[]) => any) | undefined;
|
|
1064
1499
|
"onResponse-received"?: ((...args: any[]) => any) | undefined;
|
|
1065
1500
|
"onArtifact-created"?: ((...args: any[]) => any) | undefined;
|
|
1066
1501
|
"onUpdate:messages"?: ((...args: any[]) => any) | undefined;
|
|
1502
|
+
"onTitle-update"?: ((...args: any[]) => any) | undefined;
|
|
1067
1503
|
}>, {
|
|
1068
1504
|
title: string;
|
|
1069
1505
|
disabled: boolean;
|
|
1070
|
-
messages:
|
|
1071
|
-
placeholder: string;
|
|
1506
|
+
messages: ChatMessage[];
|
|
1507
|
+
placeholder: string | string[];
|
|
1072
1508
|
editableTitle: boolean;
|
|
1073
1509
|
showHeader: boolean;
|
|
1074
1510
|
sendButtonText: string;
|
|
@@ -1077,7 +1513,9 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
1077
1513
|
codeLanguage: "trilogy" | "sql";
|
|
1078
1514
|
systemPrompt: string;
|
|
1079
1515
|
externalLoading: boolean;
|
|
1080
|
-
customSendHandler: ((message: string, messages:
|
|
1516
|
+
customSendHandler: ((message: string, messages: ChatMessage[]) => Promise<void>) | null;
|
|
1517
|
+
customStopHandler: (() => void) | null;
|
|
1518
|
+
stopButtonText: string;
|
|
1081
1519
|
}, {}, {
|
|
1082
1520
|
EditableTitle: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
1083
1521
|
modelValue: {
|
|
@@ -1167,16 +1605,21 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
1167
1605
|
required: false;
|
|
1168
1606
|
};
|
|
1169
1607
|
symbols: {
|
|
1170
|
-
type: PropType<
|
|
1608
|
+
type: PropType<CompletionItem[]>;
|
|
1171
1609
|
required: false;
|
|
1172
1610
|
};
|
|
1173
1611
|
containerHeight: NumberConstructor;
|
|
1174
1612
|
generatedSql: StringConstructor;
|
|
1613
|
+
trilogySource: StringConstructor;
|
|
1175
1614
|
defaultTab: {
|
|
1176
1615
|
type: StringConstructor;
|
|
1177
1616
|
required: false;
|
|
1178
1617
|
default: null;
|
|
1179
1618
|
};
|
|
1619
|
+
showChatButton: {
|
|
1620
|
+
type: BooleanConstructor;
|
|
1621
|
+
default: boolean;
|
|
1622
|
+
};
|
|
1180
1623
|
}>, {
|
|
1181
1624
|
codeBlock: import('vue').Ref<HTMLElement | null, HTMLElement | null>;
|
|
1182
1625
|
connectionStore: import('pinia').Store<"connections", {
|
|
@@ -1210,13 +1653,14 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
1210
1653
|
eligibleTabs(): string[];
|
|
1211
1654
|
displayTab(): string;
|
|
1212
1655
|
}, {
|
|
1656
|
+
switchToVisualizeTab(): void;
|
|
1213
1657
|
setTab(tab: string): void;
|
|
1214
1658
|
handleReconnect(): Promise<void>;
|
|
1215
1659
|
onChartChange(config: any): void;
|
|
1216
1660
|
activateDrilldown(e: import('../../events/display').DrillDownTriggerEvent): void;
|
|
1217
1661
|
submitDrilldown(selected: string[]): void;
|
|
1218
1662
|
handleLocalRefresh(): void;
|
|
1219
|
-
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin,
|
|
1663
|
+
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("drilldown-click" | "refresh-click" | "config-change" | "open-chat")[], "drilldown-click" | "refresh-click" | "config-change" | "open-chat", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
1220
1664
|
type: {
|
|
1221
1665
|
type: StringConstructor;
|
|
1222
1666
|
required: true;
|
|
@@ -1238,18 +1682,29 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
1238
1682
|
required: false;
|
|
1239
1683
|
};
|
|
1240
1684
|
symbols: {
|
|
1241
|
-
type: PropType<
|
|
1685
|
+
type: PropType<CompletionItem[]>;
|
|
1242
1686
|
required: false;
|
|
1243
1687
|
};
|
|
1244
1688
|
containerHeight: NumberConstructor;
|
|
1245
1689
|
generatedSql: StringConstructor;
|
|
1690
|
+
trilogySource: StringConstructor;
|
|
1246
1691
|
defaultTab: {
|
|
1247
1692
|
type: StringConstructor;
|
|
1248
1693
|
required: false;
|
|
1249
1694
|
default: null;
|
|
1250
1695
|
};
|
|
1251
|
-
|
|
1696
|
+
showChatButton: {
|
|
1697
|
+
type: BooleanConstructor;
|
|
1698
|
+
default: boolean;
|
|
1699
|
+
};
|
|
1700
|
+
}>> & Readonly<{
|
|
1701
|
+
"onDrilldown-click"?: ((...args: any[]) => any) | undefined;
|
|
1702
|
+
"onRefresh-click"?: ((...args: any[]) => any) | undefined;
|
|
1703
|
+
"onConfig-change"?: ((...args: any[]) => any) | undefined;
|
|
1704
|
+
"onOpen-chat"?: ((...args: any[]) => any) | undefined;
|
|
1705
|
+
}>, {
|
|
1252
1706
|
defaultTab: string;
|
|
1707
|
+
showChatButton: boolean;
|
|
1253
1708
|
}, {}, {
|
|
1254
1709
|
DataTable: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
1255
1710
|
headers: {
|
|
@@ -1540,9 +1995,9 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
1540
1995
|
default: boolean;
|
|
1541
1996
|
};
|
|
1542
1997
|
}>> & Readonly<{}>, {
|
|
1998
|
+
onChartConfigChange: (config: ChartConfig) => void;
|
|
1543
1999
|
initialConfig: ChartConfig | null | undefined;
|
|
1544
2000
|
showControls: boolean;
|
|
1545
|
-
onChartConfigChange: (config: ChartConfig) => void;
|
|
1546
2001
|
chartSelection: Object[];
|
|
1547
2002
|
chartTitle: string;
|
|
1548
2003
|
drilldownActive: boolean;
|
|
@@ -1972,14 +2427,17 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
1972
2427
|
keys: boolean;
|
|
1973
2428
|
properties: boolean;
|
|
1974
2429
|
metrics: boolean;
|
|
2430
|
+
showAutoDerived: boolean;
|
|
1975
2431
|
}, {
|
|
1976
2432
|
keys: boolean;
|
|
1977
2433
|
properties: boolean;
|
|
1978
2434
|
metrics: boolean;
|
|
2435
|
+
showAutoDerived: boolean;
|
|
1979
2436
|
} | {
|
|
1980
2437
|
keys: boolean;
|
|
1981
2438
|
properties: boolean;
|
|
1982
2439
|
metrics: boolean;
|
|
2440
|
+
showAutoDerived: boolean;
|
|
1983
2441
|
}>;
|
|
1984
2442
|
isFiltering: import('vue').ComputedRef<boolean>;
|
|
1985
2443
|
tooltip: {
|