@trilogy-data/trilogy-studio-components 0.1.10 → 0.1.11
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-kqIGFHPN.js → ChatCreatorModal-ByXgDUoO.js} +1 -1
- package/dist/{Dashboard-BhcB9-ov.js → Dashboard-D6A2aYgv.js} +3 -3
- package/dist/{DashboardCreatorInline-Cp8fI1iG.js → DashboardCreatorInline-Cgfinl3I.js} +1 -1
- package/dist/{DashboardMobile-nSuC_ygH.js → DashboardMobile-BbZH1Qir.js} +20 -20
- package/dist/{LLMConnectionList-CwfSkiq_.js → LLMConnectionList-Cl3h5pBm.js} +884 -856
- package/dist/LLMView-BRDqi_8s.js +656 -0
- package/dist/Manager-Baa6Lvxg.js +4 -0
- package/dist/{ResultComponent-CDU0FkOQ.js → ResultComponent-RFos0Fha.js} +6 -6
- package/dist/{Sidebar-dZtwrs0v.js → Sidebar-Bvu5hS2B.js} +289 -268
- package/dist/{TutorialPage-kWCo9lD6.js → TutorialPage-ChaeJTUC.js} +4 -4
- package/dist/{WelcomePage-BjLQLYt8.js → WelcomePage-B06IC6Uy.js} +1 -1
- package/dist/chats/chat.d.ts +11 -1
- package/dist/chats/chat.d.ts.map +1 -1
- package/dist/chats/publishArtifactsToDashboard.d.ts +21 -0
- package/dist/chats/publishArtifactsToDashboard.d.ts.map +1 -0
- package/dist/components/editor/Editor.vue.d.ts +1 -2
- package/dist/components/editor/Editor.vue.d.ts.map +1 -1
- package/dist/components/editor/ResultComponent.vue.d.ts +74 -15
- package/dist/components/editor/ResultComponent.vue.d.ts.map +1 -1
- package/dist/components/layout/SidebarLayout.vue.d.ts +14 -2
- package/dist/components/layout/SidebarLayout.vue.d.ts.map +1 -1
- package/dist/components/llm/ArtifactsPane.vue.d.ts +885 -0
- package/dist/components/llm/ArtifactsPane.vue.d.ts.map +1 -0
- package/dist/components/llm/ChatArtifact.vue.d.ts +37 -1
- package/dist/components/llm/ChatArtifact.vue.d.ts.map +1 -1
- package/dist/components/llm/LLMChat.vue.d.ts +18 -3
- package/dist/components/llm/LLMChat.vue.d.ts.map +1 -1
- package/dist/components/llm/LLMChatSplitView.vue.d.ts +858 -702
- package/dist/components/llm/LLMChatSplitView.vue.d.ts.map +1 -1
- package/dist/components/llm/LLMEditorRefinement.vue.d.ts +74 -15
- package/dist/components/llm/LLMEditorRefinement.vue.d.ts.map +1 -1
- package/dist/components/model/ModelCard.vue.d.ts +1 -2
- package/dist/components/model/ModelCard.vue.d.ts.map +1 -1
- package/dist/components/sidebar/ConnectionList.vue.d.ts.map +1 -1
- 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 +2 -2
- 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 +75 -17
- 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.map +1 -1
- package/dist/composables/useToolLoop.d.ts +0 -2
- package/dist/composables/useToolLoop.d.ts.map +1 -1
- package/dist/{cssMode-BgTpWprH.js → cssMode-C091JrjG.js} +1 -1
- 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/results.d.ts.map +1 -1
- package/dist/{freemarker2-BCVHBEgI.js → freemarker2-X1eIBwal.js} +1 -1
- package/dist/{handlebars-CvE5drDj.js → handlebars-BlVeu042.js} +1 -1
- package/dist/{html-CZGBnyei.js → html-WyM-Pvly.js} +1 -1
- package/dist/{htmlMode-CzN0D6_N.js → htmlMode-DQST6Ar_.js} +1 -1
- package/dist/{javascript-D9vXE5ET.js → javascript-CYyejasU.js} +1 -1
- package/dist/{jsonMode-CY69B03N.js → jsonMode-CESsFbpD.js} +1 -1
- package/dist/{liquid-D2Izcg9H.js → liquid-DdP-I3Ox.js} +1 -1
- package/dist/llm/chatAgentPrompt.d.ts +262 -0
- package/dist/llm/chatAgentPrompt.d.ts.map +1 -1
- package/dist/llm/chatHelpers.d.ts +0 -11
- package/dist/llm/chatHelpers.d.ts.map +1 -1
- package/dist/llm/chatToolExecutor.d.ts +10 -0
- package/dist/llm/chatToolExecutor.d.ts.map +1 -1
- package/dist/llm/demo.d.ts +29 -0
- package/dist/llm/demo.d.ts.map +1 -0
- package/dist/llm/editorRefinementToolExecutor.d.ts +4 -0
- package/dist/llm/editorRefinementToolExecutor.d.ts.map +1 -1
- package/dist/llm/editorRefinementTools.d.ts +40 -0
- package/dist/llm/editorRefinementTools.d.ts.map +1 -1
- package/dist/llm/index.d.ts +3 -2
- package/dist/llm/index.d.ts.map +1 -1
- package/dist/llm/openrouter.d.ts +5 -0
- package/dist/llm/openrouter.d.ts.map +1 -1
- package/dist/llm/toolLoopCore.d.ts +36 -7
- package/dist/llm/toolLoopCore.d.ts.map +1 -1
- package/dist/llm/utils.d.ts +4 -1
- package/dist/llm/utils.d.ts.map +1 -1
- package/dist/{main-YvioU1lW.js → main-DP4aLnEK.js} +38043 -37183
- package/dist/main.css +1 -1
- package/dist/main.d.ts +1 -1
- package/dist/main.d.ts.map +1 -1
- package/dist/main.js +10 -10
- package/dist/main.umd.cjs +605 -560
- package/dist/{mdx-DfvKDyTa.js → mdx-VGDZf6-F.js} +1 -1
- package/dist/{python-CmewBYeN.js → python-BiiBBLHE.js} +1 -1
- package/dist/{razor-C-YsC2u-.js → razor-ogBkymZ8.js} +1 -1
- package/dist/stores/chatStore.d.ts.map +1 -1
- package/dist/stores/editorStore.d.ts.map +1 -1
- package/dist/stores/llmStore.d.ts +1 -10
- package/dist/stores/llmStore.d.ts.map +1 -1
- package/dist/stores/queryExecutionService.d.ts +1 -0
- package/dist/stores/queryExecutionService.d.ts.map +1 -1
- package/dist/stores/resolver.d.ts +1 -0
- package/dist/stores/resolver.d.ts.map +1 -1
- package/dist/stores/useScreenNavigation.d.ts.map +1 -1
- package/dist/{tsMode-LfgRVGbQ.js → tsMode-DP-1CE0D.js} +1 -1
- package/dist/{typescript-ChhJ4j27.js → typescript-ByG-a0Ne.js} +1 -1
- package/dist/{useDashboard-vvK-sCbo.js → useDashboard-Dx-2dWkF.js} +1 -1
- package/dist/utility/markdownRenderer.d.ts.map +1 -1
- package/dist/views/LLMView.vue.d.ts +2713 -2140
- package/dist/views/LLMView.vue.d.ts.map +1 -1
- package/dist/views/ModelView.vue.d.ts +2 -4
- package/dist/views/ModelView.vue.d.ts.map +1 -1
- package/dist/views/TutorialPage.vue.d.ts +154 -40
- package/dist/views/TutorialPage.vue.d.ts.map +1 -1
- package/dist/{xml-DM40RTTn.js → xml-DmCesN6f.js} +1 -1
- package/dist/{yaml-0wmwSdSU.js → yaml-DpZLn6t1.js} +1 -1
- package/package.json +1 -1
- package/dist/LLMView-e38fpjum.js +0 -558
- package/dist/Manager-CtK5dHJ8.js +0 -4
|
@@ -64,6 +64,13 @@ export declare const CHAT_TOOLS: ({
|
|
|
64
64
|
};
|
|
65
65
|
chartConfig?: undefined;
|
|
66
66
|
import_name?: undefined;
|
|
67
|
+
markdown?: undefined;
|
|
68
|
+
title?: undefined;
|
|
69
|
+
artifact_id?: undefined;
|
|
70
|
+
start_row?: undefined;
|
|
71
|
+
end_row?: undefined;
|
|
72
|
+
artifact_ids?: undefined;
|
|
73
|
+
message?: undefined;
|
|
67
74
|
};
|
|
68
75
|
required: string[];
|
|
69
76
|
};
|
|
@@ -155,6 +162,13 @@ export declare const CHAT_TOOLS: ({
|
|
|
155
162
|
};
|
|
156
163
|
};
|
|
157
164
|
import_name?: undefined;
|
|
165
|
+
markdown?: undefined;
|
|
166
|
+
title?: undefined;
|
|
167
|
+
artifact_id?: undefined;
|
|
168
|
+
start_row?: undefined;
|
|
169
|
+
end_row?: undefined;
|
|
170
|
+
artifact_ids?: undefined;
|
|
171
|
+
message?: undefined;
|
|
158
172
|
};
|
|
159
173
|
required: string[];
|
|
160
174
|
};
|
|
@@ -171,6 +185,13 @@ export declare const CHAT_TOOLS: ({
|
|
|
171
185
|
query?: undefined;
|
|
172
186
|
connection?: undefined;
|
|
173
187
|
chartConfig?: undefined;
|
|
188
|
+
markdown?: undefined;
|
|
189
|
+
title?: undefined;
|
|
190
|
+
artifact_id?: undefined;
|
|
191
|
+
start_row?: undefined;
|
|
192
|
+
end_row?: undefined;
|
|
193
|
+
artifact_ids?: undefined;
|
|
194
|
+
message?: undefined;
|
|
174
195
|
};
|
|
175
196
|
required: string[];
|
|
176
197
|
};
|
|
@@ -184,9 +205,250 @@ export declare const CHAT_TOOLS: ({
|
|
|
184
205
|
connection?: undefined;
|
|
185
206
|
chartConfig?: undefined;
|
|
186
207
|
import_name?: undefined;
|
|
208
|
+
markdown?: undefined;
|
|
209
|
+
title?: undefined;
|
|
210
|
+
artifact_id?: undefined;
|
|
211
|
+
start_row?: undefined;
|
|
212
|
+
end_row?: undefined;
|
|
213
|
+
artifact_ids?: undefined;
|
|
214
|
+
message?: undefined;
|
|
187
215
|
};
|
|
188
216
|
required: never[];
|
|
189
217
|
};
|
|
218
|
+
} | {
|
|
219
|
+
name: string;
|
|
220
|
+
description: string;
|
|
221
|
+
input_schema: {
|
|
222
|
+
type: string;
|
|
223
|
+
properties: {
|
|
224
|
+
markdown: {
|
|
225
|
+
type: string;
|
|
226
|
+
description: string;
|
|
227
|
+
};
|
|
228
|
+
title: {
|
|
229
|
+
type: string;
|
|
230
|
+
description: string;
|
|
231
|
+
};
|
|
232
|
+
query: {
|
|
233
|
+
type: string;
|
|
234
|
+
description: string;
|
|
235
|
+
};
|
|
236
|
+
connection: {
|
|
237
|
+
type: string;
|
|
238
|
+
description: string;
|
|
239
|
+
};
|
|
240
|
+
chartConfig?: undefined;
|
|
241
|
+
import_name?: undefined;
|
|
242
|
+
artifact_id?: undefined;
|
|
243
|
+
start_row?: undefined;
|
|
244
|
+
end_row?: undefined;
|
|
245
|
+
artifact_ids?: undefined;
|
|
246
|
+
message?: undefined;
|
|
247
|
+
};
|
|
248
|
+
required: string[];
|
|
249
|
+
};
|
|
250
|
+
} | {
|
|
251
|
+
name: string;
|
|
252
|
+
description: string;
|
|
253
|
+
input_schema: {
|
|
254
|
+
type: string;
|
|
255
|
+
properties: {
|
|
256
|
+
artifact_id: {
|
|
257
|
+
type: string;
|
|
258
|
+
description: string;
|
|
259
|
+
};
|
|
260
|
+
query?: undefined;
|
|
261
|
+
connection?: undefined;
|
|
262
|
+
chartConfig?: undefined;
|
|
263
|
+
import_name?: undefined;
|
|
264
|
+
markdown?: undefined;
|
|
265
|
+
title?: undefined;
|
|
266
|
+
start_row?: undefined;
|
|
267
|
+
end_row?: undefined;
|
|
268
|
+
artifact_ids?: undefined;
|
|
269
|
+
message?: undefined;
|
|
270
|
+
};
|
|
271
|
+
required: string[];
|
|
272
|
+
};
|
|
273
|
+
} | {
|
|
274
|
+
name: string;
|
|
275
|
+
description: string;
|
|
276
|
+
input_schema: {
|
|
277
|
+
type: string;
|
|
278
|
+
properties: {
|
|
279
|
+
artifact_id: {
|
|
280
|
+
type: string;
|
|
281
|
+
description: string;
|
|
282
|
+
};
|
|
283
|
+
start_row: {
|
|
284
|
+
type: string;
|
|
285
|
+
description: string;
|
|
286
|
+
};
|
|
287
|
+
end_row: {
|
|
288
|
+
type: string;
|
|
289
|
+
description: string;
|
|
290
|
+
};
|
|
291
|
+
query?: undefined;
|
|
292
|
+
connection?: undefined;
|
|
293
|
+
chartConfig?: undefined;
|
|
294
|
+
import_name?: undefined;
|
|
295
|
+
markdown?: undefined;
|
|
296
|
+
title?: undefined;
|
|
297
|
+
artifact_ids?: undefined;
|
|
298
|
+
message?: undefined;
|
|
299
|
+
};
|
|
300
|
+
required: string[];
|
|
301
|
+
};
|
|
302
|
+
} | {
|
|
303
|
+
name: string;
|
|
304
|
+
description: string;
|
|
305
|
+
input_schema: {
|
|
306
|
+
type: string;
|
|
307
|
+
properties: {
|
|
308
|
+
artifact_id: {
|
|
309
|
+
type: string;
|
|
310
|
+
description: string;
|
|
311
|
+
};
|
|
312
|
+
markdown: {
|
|
313
|
+
type: string;
|
|
314
|
+
description: string;
|
|
315
|
+
};
|
|
316
|
+
title: {
|
|
317
|
+
type: string;
|
|
318
|
+
description: string;
|
|
319
|
+
};
|
|
320
|
+
chartConfig: {
|
|
321
|
+
description: string;
|
|
322
|
+
type: "object";
|
|
323
|
+
properties: {
|
|
324
|
+
readonly chartType: {
|
|
325
|
+
readonly type: "string";
|
|
326
|
+
readonly enum: readonly ["line", "bar", "barh", "point", "geo-map", "tree", "area", "headline", "donut", "heatmap", "boxplot", "treemap", "beeswarm"];
|
|
327
|
+
readonly description: "Type of chart to render";
|
|
328
|
+
};
|
|
329
|
+
readonly xField: {
|
|
330
|
+
readonly type: "string";
|
|
331
|
+
readonly description: "Field name for x-axis. Longitude for geo-map charts if geofield not provided.";
|
|
332
|
+
};
|
|
333
|
+
readonly yField: {
|
|
334
|
+
readonly type: "string";
|
|
335
|
+
readonly description: "Field name for y-axis. Latitude for geo-map charts if geofield not provided.";
|
|
336
|
+
};
|
|
337
|
+
readonly yField2: {
|
|
338
|
+
readonly type: "string";
|
|
339
|
+
readonly description: "Secondary y-axis field (optional)";
|
|
340
|
+
};
|
|
341
|
+
readonly colorField: {
|
|
342
|
+
readonly type: "string";
|
|
343
|
+
readonly description: "Field for color encoding (optional)";
|
|
344
|
+
};
|
|
345
|
+
readonly sizeField: {
|
|
346
|
+
readonly type: "string";
|
|
347
|
+
readonly description: "Field for size encoding (optional)";
|
|
348
|
+
};
|
|
349
|
+
readonly groupField: {
|
|
350
|
+
readonly type: "string";
|
|
351
|
+
readonly description: "Field for grouping data (optional)";
|
|
352
|
+
};
|
|
353
|
+
readonly trellisField: {
|
|
354
|
+
readonly type: "string";
|
|
355
|
+
readonly description: "Field for small multiples/faceting columns (optional)";
|
|
356
|
+
};
|
|
357
|
+
readonly trellisRowField: {
|
|
358
|
+
readonly type: "string";
|
|
359
|
+
readonly description: "Field for small multiples/faceting rows (optional)";
|
|
360
|
+
};
|
|
361
|
+
readonly geoField: {
|
|
362
|
+
readonly type: "string";
|
|
363
|
+
readonly description: "Field for geographic data (optional)";
|
|
364
|
+
};
|
|
365
|
+
readonly annotationField: {
|
|
366
|
+
readonly type: "string";
|
|
367
|
+
readonly description: "Field for data point annotations/labels (optional)";
|
|
368
|
+
};
|
|
369
|
+
readonly hideLegend: {
|
|
370
|
+
readonly type: "boolean";
|
|
371
|
+
readonly description: "Whether to hide the legend (optional)";
|
|
372
|
+
};
|
|
373
|
+
readonly showTitle: {
|
|
374
|
+
readonly type: "boolean";
|
|
375
|
+
readonly description: "Whether to show the chart title (optional)";
|
|
376
|
+
};
|
|
377
|
+
readonly scaleX: {
|
|
378
|
+
readonly type: "string";
|
|
379
|
+
readonly enum: readonly ["linear", "log", "sqrt"];
|
|
380
|
+
readonly description: "Scale type for x-axis (optional)";
|
|
381
|
+
};
|
|
382
|
+
readonly scaleY: {
|
|
383
|
+
readonly type: "string";
|
|
384
|
+
readonly enum: readonly ["linear", "log", "sqrt"];
|
|
385
|
+
readonly description: "Scale type for y-axis (optional)";
|
|
386
|
+
};
|
|
387
|
+
readonly linkY2: {
|
|
388
|
+
readonly type: "boolean";
|
|
389
|
+
readonly description: "Whether to link the secondary y-axis scale to the primary y-axis (optional)";
|
|
390
|
+
};
|
|
391
|
+
};
|
|
392
|
+
};
|
|
393
|
+
query?: undefined;
|
|
394
|
+
connection?: undefined;
|
|
395
|
+
import_name?: undefined;
|
|
396
|
+
start_row?: undefined;
|
|
397
|
+
end_row?: undefined;
|
|
398
|
+
artifact_ids?: undefined;
|
|
399
|
+
message?: undefined;
|
|
400
|
+
};
|
|
401
|
+
required: string[];
|
|
402
|
+
};
|
|
403
|
+
} | {
|
|
404
|
+
name: string;
|
|
405
|
+
description: string;
|
|
406
|
+
input_schema: {
|
|
407
|
+
type: string;
|
|
408
|
+
properties: {
|
|
409
|
+
artifact_ids: {
|
|
410
|
+
type: string;
|
|
411
|
+
items: {
|
|
412
|
+
type: string;
|
|
413
|
+
};
|
|
414
|
+
description: string;
|
|
415
|
+
};
|
|
416
|
+
query?: undefined;
|
|
417
|
+
connection?: undefined;
|
|
418
|
+
chartConfig?: undefined;
|
|
419
|
+
import_name?: undefined;
|
|
420
|
+
markdown?: undefined;
|
|
421
|
+
title?: undefined;
|
|
422
|
+
artifact_id?: undefined;
|
|
423
|
+
start_row?: undefined;
|
|
424
|
+
end_row?: undefined;
|
|
425
|
+
message?: undefined;
|
|
426
|
+
};
|
|
427
|
+
required: string[];
|
|
428
|
+
};
|
|
429
|
+
} | {
|
|
430
|
+
name: string;
|
|
431
|
+
description: string;
|
|
432
|
+
input_schema: {
|
|
433
|
+
type: string;
|
|
434
|
+
properties: {
|
|
435
|
+
message: {
|
|
436
|
+
type: string;
|
|
437
|
+
description: string;
|
|
438
|
+
};
|
|
439
|
+
query?: undefined;
|
|
440
|
+
connection?: undefined;
|
|
441
|
+
chartConfig?: undefined;
|
|
442
|
+
import_name?: undefined;
|
|
443
|
+
markdown?: undefined;
|
|
444
|
+
title?: undefined;
|
|
445
|
+
artifact_id?: undefined;
|
|
446
|
+
start_row?: undefined;
|
|
447
|
+
end_row?: undefined;
|
|
448
|
+
artifact_ids?: undefined;
|
|
449
|
+
};
|
|
450
|
+
required: string[];
|
|
451
|
+
};
|
|
190
452
|
})[];
|
|
191
453
|
export interface ChatAgentPromptOptions {
|
|
192
454
|
dataConnectionName: string | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chatAgentPrompt.d.ts","sourceRoot":"","sources":["../../llm/chatAgentPrompt.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,eAAe,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAuPtB,CAAA;AAED,MAAM,WAAW,sBAAsB;IACrC,kBAAkB,EAAE,MAAM,GAAG,IAAI,CAAA;IACjC,oBAAoB,EAAE,MAAM,EAAE,CAAA;IAC9B,iBAAiB,CAAC,EAAE,iBAAiB,EAAE,CAAA;IACvC,aAAa,CAAC,EAAE,UAAU,EAAE,CAAA;IAC5B,6BAA6B,CAAC,EAAE,UAAU,EAAE,CAAA;IAC5C,sBAAsB,CAAC,EAAE,OAAO,CAAA;CACjC;AAED,wBAAgB,0BAA0B,CAAC,OAAO,EAAE,sBAAsB,GAAG,MAAM,CAsFlF"}
|
|
@@ -4,17 +4,6 @@ import { LLMMessage } from './base';
|
|
|
4
4
|
* Designed to work with fast/lightweight models.
|
|
5
5
|
*/
|
|
6
6
|
export declare function createChatNamePrompt(messages: LLMMessage[]): string;
|
|
7
|
-
/**
|
|
8
|
-
* Creates a prompt to evaluate if the LLM should auto-continue after a response.
|
|
9
|
-
* This is used to detect when the LLM has stated an intention to do something
|
|
10
|
-
* but hasn't actually done it (e.g., "I'll execute this query now").
|
|
11
|
-
*/
|
|
12
|
-
export declare function createAutoContinuePrompt(lastAssistantMessage: string): string;
|
|
13
|
-
/**
|
|
14
|
-
* Parses the auto-continue evaluation response.
|
|
15
|
-
* Returns true if the LLM should auto-continue.
|
|
16
|
-
*/
|
|
17
|
-
export declare function parseAutoContinueResponse(response: string): boolean;
|
|
18
7
|
/**
|
|
19
8
|
* Extracts a clean chat name from an LLM response.
|
|
20
9
|
* Handles various response formats and cleans up the output.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chatHelpers.d.ts","sourceRoot":"","sources":["../../llm/chatHelpers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAA;AAExC;;;GAGG;AACH,wBAAgB,oBAAoB,CAAC,QAAQ,EAAE,UAAU,EAAE,GAAG,MAAM,CAwBnE;AAED
|
|
1
|
+
{"version":3,"file":"chatHelpers.d.ts","sourceRoot":"","sources":["../../llm/chatHelpers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAA;AAExC;;;GAGG;AACH,wBAAgB,oBAAoB,CAAC,QAAQ,EAAE,UAAU,EAAE,GAAG,MAAM,CAwBnE;AAED;;;GAGG;AACH,wBAAgB,eAAe,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAwBxD"}
|
|
@@ -7,12 +7,15 @@ import { ChartConfig } from '../editors/results';
|
|
|
7
7
|
export interface ToolCallResult {
|
|
8
8
|
success: boolean;
|
|
9
9
|
artifact?: ChatArtifact;
|
|
10
|
+
artifactId?: string;
|
|
10
11
|
error?: string;
|
|
11
12
|
message?: string;
|
|
12
13
|
executionTime?: number;
|
|
13
14
|
query?: string;
|
|
14
15
|
generatedSql?: string;
|
|
15
16
|
triggersSymbolRefresh?: boolean;
|
|
17
|
+
terminatesLoop?: boolean;
|
|
18
|
+
awaitsUserInput?: boolean;
|
|
16
19
|
}
|
|
17
20
|
export interface ToolCallInput {
|
|
18
21
|
query: string;
|
|
@@ -35,5 +38,12 @@ export declare class ChatToolExecutor {
|
|
|
35
38
|
private listAvailableImports;
|
|
36
39
|
getAvailableImports(connectionName: string): ChatImport[];
|
|
37
40
|
private connectDataConnection;
|
|
41
|
+
private createMarkdown;
|
|
42
|
+
private listArtifacts;
|
|
43
|
+
private getArtifact;
|
|
44
|
+
private getArtifactRows;
|
|
45
|
+
private updateArtifact;
|
|
46
|
+
private reorderArtifacts;
|
|
47
|
+
private hideArtifacts;
|
|
38
48
|
}
|
|
39
49
|
//# sourceMappingURL=chatToolExecutor.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chatToolExecutor.d.ts","sourceRoot":"","sources":["../../llm/chatToolExecutor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,qBAAqB,MAAM,iCAAiC,CAAA;AAExE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAA;AACpE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAA;AACxD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAC5D,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"chatToolExecutor.d.ts","sourceRoot":"","sources":["../../llm/chatToolExecutor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,qBAAqB,MAAM,iCAAiC,CAAA;AAExE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAA;AACpE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAA;AACxD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAC5D,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,UAAU,EAAsB,MAAM,eAAe,CAAA;AACtF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAA;AAIrD,MAAM,WAAW,cAAc;IAC7B,OAAO,EAAE,OAAO,CAAA;IAChB,QAAQ,CAAC,EAAE,YAAY,CAAA;IACvB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,qBAAq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base';
|
|
3
|
+
export declare const DEMO_TOKEN_SERVICE_URL = "https://open-router-token-service.fly.dev";
|
|
4
|
+
/**
|
|
5
|
+
* DemoProvider is a dollar-limited, TTL-limited OpenRouter connection
|
|
6
|
+
* whose API key is minted on demand from our token service rather than
|
|
7
|
+
* supplied by the user. The key is never persisted to storage — every
|
|
8
|
+
* reconnect fetches a fresh (but idempotent-per-IP) token.
|
|
9
|
+
*/
|
|
10
|
+
export declare class DemoProvider extends OpenRouterProvider {
|
|
11
|
+
type: string;
|
|
12
|
+
constructor(name: string, model: string);
|
|
13
|
+
/**
|
|
14
|
+
* Fetches a fresh demo token then delegates to OpenRouterProvider.reset()
|
|
15
|
+
* to validate the key and load available models.
|
|
16
|
+
* The token fetch is NOT treated as a user-initiated change so it does
|
|
17
|
+
* not set this.changed = true.
|
|
18
|
+
*/
|
|
19
|
+
reset(): Promise<void>;
|
|
20
|
+
/**
|
|
21
|
+
* If the OpenRouter key returns a 401 (demo key expired after ~1 hour),
|
|
22
|
+
* automatically fetch a fresh token and retry the request once.
|
|
23
|
+
*/
|
|
24
|
+
generateCompletion(options: LLMRequestOptions, history?: LLMMessage[] | null): Promise<LLMResponse>;
|
|
25
|
+
static getDefaultModel(models: string[]): string;
|
|
26
|
+
toJSON(): object;
|
|
27
|
+
static fromJSON(json: Record<string, any>): Promise<DemoProvider>;
|
|
28
|
+
}
|
|
29
|
+
//# sourceMappingURL=demo.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"demo.d.ts","sourceRoot":"","sources":["../../llm/demo.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAA;AACjD,OAAO,KAAK,EAAE,iBAAiB,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAA;AAGxE,eAAO,MAAM,sBAAsB,8CAA8C,CAAA;AAiBjF;;;;;GAKG;AAEH,qBAAa,YAAa,SAAQ,kBAAkB;IAC3C,IAAI,EAAE,MAAM,CAAS;gBAEhB,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM;IAKvC;;;;;OAKG;IACG,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAO5B;;;OAGG;IACG,kBAAkB,CACtB,OAAO,EAAE,iBAAiB,EAC1B,OAAO,GAAE,UAAU,EAAE,GAAG,IAAW,GAClC,OAAO,CAAC,WAAW,CAAC;IAYvB,MAAM,CAAC,eAAe,CAAC,MAAM,EAAE,MAAM,EAAE,GAAG,MAAM;IAkBhD,MAAM,IAAI,MAAM;WAYH,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,OAAO,CAAC,YAAY,CAAC;CAMxE"}
|
|
@@ -7,6 +7,7 @@ import { CompletionItem } from '../stores/resolver';
|
|
|
7
7
|
export interface ToolCallResult {
|
|
8
8
|
success: boolean;
|
|
9
9
|
artifact?: ChatArtifact;
|
|
10
|
+
artifactId?: string;
|
|
10
11
|
error?: string;
|
|
11
12
|
message?: string;
|
|
12
13
|
executionTime?: number;
|
|
@@ -49,6 +50,8 @@ export declare class EditorRefinementToolExecutor {
|
|
|
49
50
|
private connectionStore;
|
|
50
51
|
private editorStore;
|
|
51
52
|
private editorContext;
|
|
53
|
+
/** Artifacts created during this session — used by get_artifact_rows */
|
|
54
|
+
private artifactRegistry;
|
|
52
55
|
constructor(queryExecutionService: QueryExecutionService, connectionStore: ConnectionStoreType, editorContext: EditorContext, editorStore?: EditorStoreType);
|
|
53
56
|
executeToolCall(toolName: string, toolInput: Record<string, any>): Promise<ToolCallResult>;
|
|
54
57
|
private validateQuery;
|
|
@@ -58,6 +61,7 @@ export declare class EditorRefinementToolExecutor {
|
|
|
58
61
|
private editChartConfig;
|
|
59
62
|
private editEditor;
|
|
60
63
|
private runActiveEditorQuery;
|
|
64
|
+
private getArtifactRows;
|
|
61
65
|
private requestClose;
|
|
62
66
|
private closeSession;
|
|
63
67
|
private connectDataConnection;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"editorRefinementToolExecutor.d.ts","sourceRoot":"","sources":["../../llm/editorRefinementToolExecutor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,qBAAqB,MAAM,iCAAiC,CAAA;AAExE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAA;AACpE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAC5D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;
|
|
1
|
+
{"version":3,"file":"editorRefinementToolExecutor.d.ts","sourceRoot":"","sources":["../../llm/editorRefinementToolExecutor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,qBAAqB,MAAM,iCAAiC,CAAA;AAExE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAA;AACpE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAC5D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AAEjD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAA;AACrD,OAAO,KAAK,EAAgB,cAAc,EAAE,MAAM,oBAAoB,CAAA;AAGtE,MAAM,WAAW,cAAc;IAC7B,OAAO,EAAE,OAAO,CAAA;IAChB,QAAQ,CAAC,EAAE,YAAY,CAAA;IACvB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,gBAAgB,CAAC,EAAE,cAAc,EAAE,CAAA;CACp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WAAW,CAAC,EAAE,eAAe;IAQzB,eAAe,CAAC,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,OAAO,CAAC,cAAc,CAAC;YAiClF,aAAa;IAgE3B,OAAO,CAAC,mBAAmB;YAKb,QAAQ;YAuGR,WAAW;IA0CzB,OAAO,CAAC,eAAe;YAsBT,UAAU;YAwCV,oBAAoB;IAwElC,OAAO,CAAC,eAAe;IAkCvB,OAAO,CAAC,YAAY;IAUpB,OAAO,CAAC,YAAY;YAgBN,qBAAqB;IAwCnC,OAAO,CAAC,eAAe;IAUvB,OAAO,CAAC,iBAAiB;CAsB1B"}
|
|
@@ -35,6 +35,9 @@ export declare const EDITOR_REFINEMENT_TOOLS: ({
|
|
|
35
35
|
};
|
|
36
36
|
chartConfig?: undefined;
|
|
37
37
|
content?: undefined;
|
|
38
|
+
artifact_id?: undefined;
|
|
39
|
+
start_row?: undefined;
|
|
40
|
+
end_row?: undefined;
|
|
38
41
|
message?: undefined;
|
|
39
42
|
};
|
|
40
43
|
required: string[];
|
|
@@ -120,6 +123,9 @@ export declare const EDITOR_REFINEMENT_TOOLS: ({
|
|
|
120
123
|
};
|
|
121
124
|
query?: undefined;
|
|
122
125
|
content?: undefined;
|
|
126
|
+
artifact_id?: undefined;
|
|
127
|
+
start_row?: undefined;
|
|
128
|
+
end_row?: undefined;
|
|
123
129
|
message?: undefined;
|
|
124
130
|
};
|
|
125
131
|
required: string[];
|
|
@@ -136,6 +142,9 @@ export declare const EDITOR_REFINEMENT_TOOLS: ({
|
|
|
136
142
|
};
|
|
137
143
|
query?: undefined;
|
|
138
144
|
chartConfig?: undefined;
|
|
145
|
+
artifact_id?: undefined;
|
|
146
|
+
start_row?: undefined;
|
|
147
|
+
end_row?: undefined;
|
|
139
148
|
message?: undefined;
|
|
140
149
|
};
|
|
141
150
|
required: string[];
|
|
@@ -149,10 +158,38 @@ export declare const EDITOR_REFINEMENT_TOOLS: ({
|
|
|
149
158
|
query?: undefined;
|
|
150
159
|
chartConfig?: undefined;
|
|
151
160
|
content?: undefined;
|
|
161
|
+
artifact_id?: undefined;
|
|
162
|
+
start_row?: undefined;
|
|
163
|
+
end_row?: undefined;
|
|
152
164
|
message?: undefined;
|
|
153
165
|
};
|
|
154
166
|
required: never[];
|
|
155
167
|
};
|
|
168
|
+
} | {
|
|
169
|
+
name: string;
|
|
170
|
+
description: string;
|
|
171
|
+
input_schema: {
|
|
172
|
+
type: string;
|
|
173
|
+
properties: {
|
|
174
|
+
artifact_id: {
|
|
175
|
+
type: string;
|
|
176
|
+
description: string;
|
|
177
|
+
};
|
|
178
|
+
start_row: {
|
|
179
|
+
type: string;
|
|
180
|
+
description: string;
|
|
181
|
+
};
|
|
182
|
+
end_row: {
|
|
183
|
+
type: string;
|
|
184
|
+
description: string;
|
|
185
|
+
};
|
|
186
|
+
query?: undefined;
|
|
187
|
+
chartConfig?: undefined;
|
|
188
|
+
content?: undefined;
|
|
189
|
+
message?: undefined;
|
|
190
|
+
};
|
|
191
|
+
required: string[];
|
|
192
|
+
};
|
|
156
193
|
} | {
|
|
157
194
|
name: string;
|
|
158
195
|
description: string;
|
|
@@ -166,6 +203,9 @@ export declare const EDITOR_REFINEMENT_TOOLS: ({
|
|
|
166
203
|
query?: undefined;
|
|
167
204
|
chartConfig?: undefined;
|
|
168
205
|
content?: undefined;
|
|
206
|
+
artifact_id?: undefined;
|
|
207
|
+
start_row?: undefined;
|
|
208
|
+
end_row?: undefined;
|
|
169
209
|
};
|
|
170
210
|
required: string[];
|
|
171
211
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"editorRefinementTools.d.ts","sourceRoot":"","sources":["../../llm/editorRefinementTools.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAA;AACtD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAA;AACrD,OAAO,KAAK,EAA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EAAE,cAAc,EAAE,CAAA;CACrC;AAED,wBAAgB,2BAA2B,CAAC,OAAO,EAAE,uBAAuB,GAAG,MAAM,CAiFpF"}
|
package/dist/llm/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { LLMProvider } from './base';
|
|
2
|
+
export { DemoProvider } from './demo';
|
|
2
3
|
export type { LLMRequestOptions, LLMResponse, LLMMessage } from './base';
|
|
3
4
|
export { OpenAIProvider } from './openai';
|
|
4
5
|
export { AnthropicProvider } from './anthropic';
|
|
@@ -8,8 +9,8 @@ export type { OpenRouterModel, OpenRouterOAuthConfig } from './openrouter';
|
|
|
8
9
|
export { createPrompt, createFilterPrompt, createDashboardPrompt } from './data/prompts';
|
|
9
10
|
export { createChatNamePrompt, extractChatName } from './chatHelpers';
|
|
10
11
|
export type { ModelConceptInput } from './data/models';
|
|
11
|
-
export { buildChatAgentSystemPrompt, buildCustomTrilogyPrompt, CHAT_TOOLS
|
|
12
|
-
export type { ChatAgentPromptOptions, TrilogyPromptContext
|
|
12
|
+
export { buildChatAgentSystemPrompt, buildCustomTrilogyPrompt, CHAT_TOOLS } from './chatAgentPrompt';
|
|
13
|
+
export type { ChatAgentPromptOptions, TrilogyPromptContext } from './chatAgentPrompt';
|
|
13
14
|
export { EDITOR_REFINEMENT_TOOLS, buildEditorRefinementPrompt } from './editorRefinementTools';
|
|
14
15
|
export type { EditorRefinementContext } from './editorRefinementTools';
|
|
15
16
|
export { EditorRefinementToolExecutor } from './editorRefinementToolExecutor';
|
package/dist/llm/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../llm/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAA;AACpC,YAAY,EAAE,iBAAiB,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAA;AACxE,OAAO,EAAE,cAAc,EAAE,MAAM,UAA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E,sBAAsB,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAA;AAGrF,OAAO,EAAE,uBAAuB,EAAE,2BAA2B,EAAE,MAAM,yBAAyB,CAAA;AAC9F,YAAY,EAAE,uBAAuB,EAAE,MAAM,yBAAyB,CAAA;AACtE,OAAO,EAAE,4BAA4B,EAAE,MAAM,gCAAgC,CAAA;AAC7E,YAAY,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA"}
|
package/dist/llm/openrouter.d.ts
CHANGED
|
@@ -80,6 +80,11 @@ export declare class OpenRouterProvider extends LLMProvider {
|
|
|
80
80
|
httpReferer?: string;
|
|
81
81
|
appTitle?: string;
|
|
82
82
|
});
|
|
83
|
+
/**
|
|
84
|
+
* Extract a rich error message from an OpenRouter error response body.
|
|
85
|
+
* Expected body format: {"error":{"message":"...","code":401}}
|
|
86
|
+
*/
|
|
87
|
+
static extractErrorMessage(response: Response): Promise<string>;
|
|
83
88
|
/**
|
|
84
89
|
* Get headers for OpenRouter API requests
|
|
85
90
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"openrouter.d.ts","sourceRoot":"","sources":["../../llm/openrouter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAA;AACpC,OAAO,KAAK,EAAE,iBAAiB,EAAE,WAAW,EAAE,UAAU,EAAe,MAAM,QAAQ,CAAA;AACrF,OAAO,EAAkB,KAAK,YAAY,EAAE,MAAM,SAAS,CAAA;AAE3D;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,EAAE,MAAM,CAAA;IACf,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,cAAc,EAAE,MAAM,CAAA;IACtB,YAAY,CAAC,EAAE;QACb,QAAQ,EAAE,MAAM,CAAA;QAChB,SAAS,EAAE,MAAM,CAAA;QACjB,aAAa,EA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IACH,MAAM,CAAC,oBAAoB,IAAI,MAAM;IASrC;;;;OAIG;WACU,qBAAqB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;CAUtE"}
|
|
@@ -4,7 +4,6 @@ import { ToolCallResult } from './editorRefinementToolExecutor';
|
|
|
4
4
|
/** Interface for LLM operations needed by the tool loop */
|
|
5
5
|
export interface LLMAdapter {
|
|
6
6
|
generateCompletion(connectionName: string, options: LLMRequestOptions, messages: LLMMessage[]): Promise<LLMResponse>;
|
|
7
|
-
shouldAutoContinue(connectionName: string, responseText: string): Promise<boolean>;
|
|
8
7
|
}
|
|
9
8
|
/** Interface for persisting messages during tool loop execution */
|
|
10
9
|
export interface MessagePersistence {
|
|
@@ -33,14 +32,20 @@ export interface ToolLoopConfig {
|
|
|
33
32
|
tools: any[];
|
|
34
33
|
/** Maximum iterations before stopping (safety limit) */
|
|
35
34
|
maxIterations?: number;
|
|
36
|
-
/** Maximum auto-continue attempts when LLM doesn't call tools */
|
|
37
|
-
maxAutoContinue?: number;
|
|
38
35
|
/** Build system prompt - called each iteration to allow dynamic prompts */
|
|
39
36
|
buildSystemPrompt: () => string;
|
|
40
37
|
/** Optional callback invoked after each tool execution */
|
|
41
38
|
onToolResult?: (toolName: string, result: ToolCallResult) => void;
|
|
42
39
|
/** Optional callback when a tool returns awaitsUserInput */
|
|
43
40
|
onAwaitsUserInput?: (result: ToolCallResult, executedToolCalls: ChatToolCall[]) => void;
|
|
41
|
+
/** Message sent to agent when it responds with text but no tool call. Defaults to a generic reminder. */
|
|
42
|
+
noToolCallReminder?: string;
|
|
43
|
+
/**
|
|
44
|
+
* If true, terminate the loop when the LLM responds with text but no tool calls,
|
|
45
|
+
* instead of re-prompting. Use this for standalone/embedded chat modes where the
|
|
46
|
+
* LLM's plain text response is the final answer.
|
|
47
|
+
*/
|
|
48
|
+
terminateOnNoToolCall?: boolean;
|
|
44
49
|
}
|
|
45
50
|
/** Result from running the tool loop */
|
|
46
51
|
export interface ToolLoopResult {
|
|
@@ -48,20 +53,44 @@ export interface ToolLoopResult {
|
|
|
48
53
|
finalMessage?: string;
|
|
49
54
|
stopped?: boolean;
|
|
50
55
|
}
|
|
56
|
+
/**
|
|
57
|
+
* Maximum number of data rows to include in a tool result sent to the LLM.
|
|
58
|
+
* When results exceed this limit, the first and last (MAX_TOOL_RESULT_ROWS / 2) rows
|
|
59
|
+
* are shown with a truncation notice in between.
|
|
60
|
+
*/
|
|
61
|
+
export declare const MAX_TOOL_RESULT_ROWS = 100;
|
|
62
|
+
/**
|
|
63
|
+
* Truncate a deserialized query result object if it has more rows than MAX_TOOL_RESULT_ROWS.
|
|
64
|
+
* Returns the (possibly truncated) data array and the number of rows cut.
|
|
65
|
+
*
|
|
66
|
+
* The caller is responsible for rendering the cut notice between the two halves.
|
|
67
|
+
*/
|
|
68
|
+
export declare function truncateResultRows(jsonData: any): {
|
|
69
|
+
head: any[];
|
|
70
|
+
tail: any[];
|
|
71
|
+
totalRows: number;
|
|
72
|
+
cutCount: number;
|
|
73
|
+
};
|
|
51
74
|
/**
|
|
52
75
|
* Format a tool result for sending to the LLM.
|
|
53
76
|
* Handles artifacts, messages, and errors consistently.
|
|
77
|
+
* Includes artifact IDs so the LLM can reference them in follow-up tool calls.
|
|
78
|
+
* Large result sets are truncated to MAX_TOOL_RESULT_ROWS rows (head + tail)
|
|
79
|
+
* with a cut notice; the agent can use get_artifact_rows to fetch any range.
|
|
54
80
|
*/
|
|
55
81
|
export declare function formatToolResultText(result: ToolCallResult): string;
|
|
56
82
|
/**
|
|
57
83
|
* Core tool loop execution.
|
|
58
84
|
* Runs the LLM conversation with tool calls until:
|
|
59
|
-
* -
|
|
60
|
-
* - A tool returns
|
|
61
|
-
* -
|
|
62
|
-
* - Max iterations reached
|
|
85
|
+
* - A tool returns terminatesLoop: true (agent explicitly signals done)
|
|
86
|
+
* - A tool returns awaitsUserInput: true (agent pauses for user input)
|
|
87
|
+
* - Max iterations reached (safety limit)
|
|
63
88
|
* - Abort signal triggered
|
|
64
89
|
* - An error occurs
|
|
90
|
+
*
|
|
91
|
+
* If the LLM responds with text and no tool calls, it is re-prompted with a
|
|
92
|
+
* reminder to call a tool. The agent must explicitly call a termination tool
|
|
93
|
+
* (e.g. return_to_user, request_close) to return control to the user.
|
|
65
94
|
*/
|
|
66
95
|
export declare function runToolLoop(userMessage: string, llmConnectionName: string, llmAdapter: LLMAdapter, messagePersistence: MessagePersistence, toolExecutorFactory: ToolExecutorFactory, stateUpdater: ExecutionStateUpdater, config: ToolLoopConfig): Promise<ToolLoopResult>;
|
|
67
96
|
//# sourceMappingURL=toolLoopCore.d.ts.map
|