@lightdash/common 0.2105.0 → 0.2106.1
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/cjs/.tsbuildinfo +1 -1
- package/dist/cjs/ee/AiAgent/schemas/parser.d.ts +213 -213
- package/dist/cjs/ee/AiAgent/schemas/parser.d.ts.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/parser.js +5 -2
- package/dist/cjs/ee/AiAgent/schemas/parser.js.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/visualizations/index.d.ts +4 -4
- package/dist/cjs/ee/AiAgent/schemas/visualizations/index.d.ts.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/visualizations/index.js +2 -5
- package/dist/cjs/ee/AiAgent/schemas/visualizations/index.js.map +1 -1
- package/dist/esm/.tsbuildinfo +1 -1
- package/dist/esm/ee/AiAgent/schemas/parser.d.ts +213 -213
- package/dist/esm/ee/AiAgent/schemas/parser.d.ts.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/parser.js +5 -2
- package/dist/esm/ee/AiAgent/schemas/parser.js.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/visualizations/index.d.ts +4 -4
- package/dist/esm/ee/AiAgent/schemas/visualizations/index.d.ts.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/visualizations/index.js +2 -5
- package/dist/esm/ee/AiAgent/schemas/visualizations/index.js.map +1 -1
- package/dist/types/.tsbuildinfo +1 -1
- package/dist/types/ee/AiAgent/schemas/parser.d.ts +213 -213
- package/dist/types/ee/AiAgent/schemas/parser.d.ts.map +1 -1
- package/dist/types/ee/AiAgent/schemas/parser.js +5 -2
- package/dist/types/ee/AiAgent/schemas/parser.js.map +1 -1
- package/dist/types/ee/AiAgent/schemas/visualizations/index.d.ts +4 -4
- package/dist/types/ee/AiAgent/schemas/visualizations/index.d.ts.map +1 -1
- package/dist/types/ee/AiAgent/schemas/visualizations/index.js +2 -5
- package/dist/types/ee/AiAgent/schemas/visualizations/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -5,89 +5,7 @@ import { type ToolName } from './visualizations';
|
|
|
5
5
|
* @param toolArgs - The tool args to parse
|
|
6
6
|
* @returns The parsed tool args
|
|
7
7
|
*/
|
|
8
|
-
export declare const parseToolArgs: (toolName: ToolName, toolArgs: unknown) => import("zod").
|
|
9
|
-
followUpTools: import("..").AiResultType[];
|
|
10
|
-
tableCalculations: ({
|
|
11
|
-
name: string;
|
|
12
|
-
fieldId: string;
|
|
13
|
-
type: "percent_change_from_previous";
|
|
14
|
-
displayName: string;
|
|
15
|
-
orderBy: {
|
|
16
|
-
fieldId: string;
|
|
17
|
-
order: "asc" | "desc" | null;
|
|
18
|
-
}[];
|
|
19
|
-
} | {
|
|
20
|
-
name: string;
|
|
21
|
-
fieldId: string;
|
|
22
|
-
type: "percent_of_previous_value";
|
|
23
|
-
displayName: string;
|
|
24
|
-
orderBy: {
|
|
25
|
-
fieldId: string;
|
|
26
|
-
order: "asc" | "desc" | null;
|
|
27
|
-
}[];
|
|
28
|
-
} | {
|
|
29
|
-
name: string;
|
|
30
|
-
fieldId: string;
|
|
31
|
-
type: "percent_of_column_total";
|
|
32
|
-
displayName: string;
|
|
33
|
-
partitionBy: string[] | null;
|
|
34
|
-
} | {
|
|
35
|
-
name: string;
|
|
36
|
-
fieldId: string;
|
|
37
|
-
type: "rank_in_column";
|
|
38
|
-
displayName: string;
|
|
39
|
-
} | {
|
|
40
|
-
name: string;
|
|
41
|
-
fieldId: string;
|
|
42
|
-
type: "running_total";
|
|
43
|
-
displayName: string;
|
|
44
|
-
} | {
|
|
45
|
-
name: string;
|
|
46
|
-
fieldId: string | null;
|
|
47
|
-
type: "window_function";
|
|
48
|
-
displayName: string;
|
|
49
|
-
orderBy: {
|
|
50
|
-
fieldId: string;
|
|
51
|
-
order: "asc" | "desc" | null;
|
|
52
|
-
}[] | null;
|
|
53
|
-
partitionBy: string[] | null;
|
|
54
|
-
windowFunction: import("../../..").WindowFunctionType;
|
|
55
|
-
frame: {
|
|
56
|
-
start: {
|
|
57
|
-
type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
|
|
58
|
-
offset: number | null;
|
|
59
|
-
} | null;
|
|
60
|
-
end: {
|
|
61
|
-
type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
|
|
62
|
-
offset: number | null;
|
|
63
|
-
};
|
|
64
|
-
frameType: "rows" | "range";
|
|
65
|
-
} | null;
|
|
66
|
-
})[] | null;
|
|
67
|
-
type: import("..").AiResultType.TABLE_RESULT;
|
|
68
|
-
description: string;
|
|
69
|
-
filters: import("../../..").Filters;
|
|
70
|
-
customMetrics: {
|
|
71
|
-
name: string;
|
|
72
|
-
label: string;
|
|
73
|
-
table: string;
|
|
74
|
-
type: import("../../..").MetricType.PERCENTILE | import("../../..").MetricType.AVERAGE | import("../../..").MetricType.COUNT | import("../../..").MetricType.COUNT_DISTINCT | import("../../..").MetricType.SUM | import("../../..").MetricType.MIN | import("../../..").MetricType.MAX | import("../../..").MetricType.MEDIAN;
|
|
75
|
-
description: string;
|
|
76
|
-
baseDimensionName: string;
|
|
77
|
-
}[] | null;
|
|
78
|
-
title: string;
|
|
79
|
-
vizConfig: {
|
|
80
|
-
dimensions: string[];
|
|
81
|
-
metrics: string[];
|
|
82
|
-
limit: number | null;
|
|
83
|
-
exploreName: string;
|
|
84
|
-
sorts: {
|
|
85
|
-
fieldId: string;
|
|
86
|
-
descending: boolean;
|
|
87
|
-
nullsFirst: boolean | null;
|
|
88
|
-
}[];
|
|
89
|
-
};
|
|
90
|
-
}> | import("zod").SafeParseError<{
|
|
8
|
+
export declare const parseToolArgs: (toolName: ToolName, toolArgs: unknown) => import("zod").SafeParseReturnType<{
|
|
91
9
|
type: import("..").AiResultType.TABLE_RESULT;
|
|
92
10
|
description: string;
|
|
93
11
|
filters: {
|
|
@@ -618,7 +536,7 @@ export declare const parseToolArgs: (toolName: ToolName, toolArgs: unknown) => i
|
|
|
618
536
|
description: string;
|
|
619
537
|
baseDimensionName: string;
|
|
620
538
|
}[] | null | undefined;
|
|
621
|
-
}
|
|
539
|
+
}, {
|
|
622
540
|
followUpTools: import("..").AiResultType[];
|
|
623
541
|
tableCalculations: ({
|
|
624
542
|
name: string;
|
|
@@ -677,7 +595,7 @@ export declare const parseToolArgs: (toolName: ToolName, toolArgs: unknown) => i
|
|
|
677
595
|
frameType: "rows" | "range";
|
|
678
596
|
} | null;
|
|
679
597
|
})[] | null;
|
|
680
|
-
type: import("..").AiResultType.
|
|
598
|
+
type: import("..").AiResultType.TABLE_RESULT;
|
|
681
599
|
description: string;
|
|
682
600
|
filters: import("../../..").Filters;
|
|
683
601
|
customMetrics: {
|
|
@@ -690,6 +608,8 @@ export declare const parseToolArgs: (toolName: ToolName, toolArgs: unknown) => i
|
|
|
690
608
|
}[] | null;
|
|
691
609
|
title: string;
|
|
692
610
|
vizConfig: {
|
|
611
|
+
dimensions: string[];
|
|
612
|
+
metrics: string[];
|
|
693
613
|
limit: number | null;
|
|
694
614
|
exploreName: string;
|
|
695
615
|
sorts: {
|
|
@@ -697,14 +617,8 @@ export declare const parseToolArgs: (toolName: ToolName, toolArgs: unknown) => i
|
|
|
697
617
|
descending: boolean;
|
|
698
618
|
nullsFirst: boolean | null;
|
|
699
619
|
}[];
|
|
700
|
-
xDimension: string;
|
|
701
|
-
yMetrics: string[];
|
|
702
|
-
breakdownByDimension: string | null;
|
|
703
|
-
xAxisLabel: string;
|
|
704
|
-
yAxisLabel: string;
|
|
705
|
-
lineType: "line" | "area";
|
|
706
620
|
};
|
|
707
|
-
}> | import("zod").
|
|
621
|
+
}> | import("zod").SafeParseReturnType<{
|
|
708
622
|
type: import("..").AiResultType.TIME_SERIES_RESULT;
|
|
709
623
|
description: string;
|
|
710
624
|
filters: {
|
|
@@ -1239,7 +1153,7 @@ export declare const parseToolArgs: (toolName: ToolName, toolArgs: unknown) => i
|
|
|
1239
1153
|
description: string;
|
|
1240
1154
|
baseDimensionName: string;
|
|
1241
1155
|
}[] | null | undefined;
|
|
1242
|
-
}
|
|
1156
|
+
}, {
|
|
1243
1157
|
followUpTools: import("..").AiResultType[];
|
|
1244
1158
|
tableCalculations: ({
|
|
1245
1159
|
name: string;
|
|
@@ -1298,7 +1212,7 @@ export declare const parseToolArgs: (toolName: ToolName, toolArgs: unknown) => i
|
|
|
1298
1212
|
frameType: "rows" | "range";
|
|
1299
1213
|
} | null;
|
|
1300
1214
|
})[] | null;
|
|
1301
|
-
type: import("..").AiResultType.
|
|
1215
|
+
type: import("..").AiResultType.TIME_SERIES_RESULT;
|
|
1302
1216
|
description: string;
|
|
1303
1217
|
filters: import("../../..").Filters;
|
|
1304
1218
|
customMetrics: {
|
|
@@ -1321,12 +1235,11 @@ export declare const parseToolArgs: (toolName: ToolName, toolArgs: unknown) => i
|
|
|
1321
1235
|
xDimension: string;
|
|
1322
1236
|
yMetrics: string[];
|
|
1323
1237
|
breakdownByDimension: string | null;
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
yAxisLabel: string | null;
|
|
1238
|
+
xAxisLabel: string;
|
|
1239
|
+
yAxisLabel: string;
|
|
1240
|
+
lineType: "line" | "area";
|
|
1328
1241
|
};
|
|
1329
|
-
}> | import("zod").
|
|
1242
|
+
}> | import("zod").SafeParseReturnType<{
|
|
1330
1243
|
type: import("..").AiResultType.VERTICAL_BAR_RESULT;
|
|
1331
1244
|
description: string;
|
|
1332
1245
|
filters: {
|
|
@@ -1862,7 +1775,94 @@ export declare const parseToolArgs: (toolName: ToolName, toolArgs: unknown) => i
|
|
|
1862
1775
|
description: string;
|
|
1863
1776
|
baseDimensionName: string;
|
|
1864
1777
|
}[] | null | undefined;
|
|
1865
|
-
}
|
|
1778
|
+
}, {
|
|
1779
|
+
followUpTools: import("..").AiResultType[];
|
|
1780
|
+
tableCalculations: ({
|
|
1781
|
+
name: string;
|
|
1782
|
+
fieldId: string;
|
|
1783
|
+
type: "percent_change_from_previous";
|
|
1784
|
+
displayName: string;
|
|
1785
|
+
orderBy: {
|
|
1786
|
+
fieldId: string;
|
|
1787
|
+
order: "asc" | "desc" | null;
|
|
1788
|
+
}[];
|
|
1789
|
+
} | {
|
|
1790
|
+
name: string;
|
|
1791
|
+
fieldId: string;
|
|
1792
|
+
type: "percent_of_previous_value";
|
|
1793
|
+
displayName: string;
|
|
1794
|
+
orderBy: {
|
|
1795
|
+
fieldId: string;
|
|
1796
|
+
order: "asc" | "desc" | null;
|
|
1797
|
+
}[];
|
|
1798
|
+
} | {
|
|
1799
|
+
name: string;
|
|
1800
|
+
fieldId: string;
|
|
1801
|
+
type: "percent_of_column_total";
|
|
1802
|
+
displayName: string;
|
|
1803
|
+
partitionBy: string[] | null;
|
|
1804
|
+
} | {
|
|
1805
|
+
name: string;
|
|
1806
|
+
fieldId: string;
|
|
1807
|
+
type: "rank_in_column";
|
|
1808
|
+
displayName: string;
|
|
1809
|
+
} | {
|
|
1810
|
+
name: string;
|
|
1811
|
+
fieldId: string;
|
|
1812
|
+
type: "running_total";
|
|
1813
|
+
displayName: string;
|
|
1814
|
+
} | {
|
|
1815
|
+
name: string;
|
|
1816
|
+
fieldId: string | null;
|
|
1817
|
+
type: "window_function";
|
|
1818
|
+
displayName: string;
|
|
1819
|
+
orderBy: {
|
|
1820
|
+
fieldId: string;
|
|
1821
|
+
order: "asc" | "desc" | null;
|
|
1822
|
+
}[] | null;
|
|
1823
|
+
partitionBy: string[] | null;
|
|
1824
|
+
windowFunction: import("../../..").WindowFunctionType;
|
|
1825
|
+
frame: {
|
|
1826
|
+
start: {
|
|
1827
|
+
type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
|
|
1828
|
+
offset: number | null;
|
|
1829
|
+
} | null;
|
|
1830
|
+
end: {
|
|
1831
|
+
type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
|
|
1832
|
+
offset: number | null;
|
|
1833
|
+
};
|
|
1834
|
+
frameType: "rows" | "range";
|
|
1835
|
+
} | null;
|
|
1836
|
+
})[] | null;
|
|
1837
|
+
type: import("..").AiResultType.VERTICAL_BAR_RESULT;
|
|
1838
|
+
description: string;
|
|
1839
|
+
filters: import("../../..").Filters;
|
|
1840
|
+
customMetrics: {
|
|
1841
|
+
name: string;
|
|
1842
|
+
label: string;
|
|
1843
|
+
table: string;
|
|
1844
|
+
type: import("../../..").MetricType.PERCENTILE | import("../../..").MetricType.AVERAGE | import("../../..").MetricType.COUNT | import("../../..").MetricType.COUNT_DISTINCT | import("../../..").MetricType.SUM | import("../../..").MetricType.MIN | import("../../..").MetricType.MAX | import("../../..").MetricType.MEDIAN;
|
|
1845
|
+
description: string;
|
|
1846
|
+
baseDimensionName: string;
|
|
1847
|
+
}[] | null;
|
|
1848
|
+
title: string;
|
|
1849
|
+
vizConfig: {
|
|
1850
|
+
limit: number | null;
|
|
1851
|
+
exploreName: string;
|
|
1852
|
+
sorts: {
|
|
1853
|
+
fieldId: string;
|
|
1854
|
+
descending: boolean;
|
|
1855
|
+
nullsFirst: boolean | null;
|
|
1856
|
+
}[];
|
|
1857
|
+
xDimension: string;
|
|
1858
|
+
yMetrics: string[];
|
|
1859
|
+
breakdownByDimension: string | null;
|
|
1860
|
+
stackBars: boolean | null;
|
|
1861
|
+
xAxisType: "time" | "category";
|
|
1862
|
+
xAxisLabel: string | null;
|
|
1863
|
+
yAxisLabel: string | null;
|
|
1864
|
+
};
|
|
1865
|
+
}> | import("zod").SafeParseReturnType<{
|
|
1866
1866
|
type: import("..").AiResultType.DASHBOARD_RESULT;
|
|
1867
1867
|
description: string;
|
|
1868
1868
|
title: string;
|
|
@@ -2731,7 +2731,7 @@ export declare const parseToolArgs: (toolName: ToolName, toolArgs: unknown) => i
|
|
|
2731
2731
|
yAxisLabel: string | null;
|
|
2732
2732
|
};
|
|
2733
2733
|
})[];
|
|
2734
|
-
}
|
|
2734
|
+
}, {
|
|
2735
2735
|
visualizations: ({
|
|
2736
2736
|
followUpTools: import("..").AiResultType[];
|
|
2737
2737
|
tableCalculations: ({
|
|
@@ -2991,102 +2991,7 @@ export declare const parseToolArgs: (toolName: ToolName, toolArgs: unknown) => i
|
|
|
2991
2991
|
type: import("..").AiResultType.DASHBOARD_RESULT;
|
|
2992
2992
|
description: string;
|
|
2993
2993
|
title: string;
|
|
2994
|
-
}> | import("zod").
|
|
2995
|
-
filters: import("../../..").Filters;
|
|
2996
|
-
tableCalculations: ({
|
|
2997
|
-
name: string;
|
|
2998
|
-
fieldId: string;
|
|
2999
|
-
type: "percent_change_from_previous";
|
|
3000
|
-
displayName: string;
|
|
3001
|
-
orderBy: {
|
|
3002
|
-
fieldId: string;
|
|
3003
|
-
order: "asc" | "desc" | null;
|
|
3004
|
-
}[];
|
|
3005
|
-
} | {
|
|
3006
|
-
name: string;
|
|
3007
|
-
fieldId: string;
|
|
3008
|
-
type: "percent_of_previous_value";
|
|
3009
|
-
displayName: string;
|
|
3010
|
-
orderBy: {
|
|
3011
|
-
fieldId: string;
|
|
3012
|
-
order: "asc" | "desc" | null;
|
|
3013
|
-
}[];
|
|
3014
|
-
} | {
|
|
3015
|
-
name: string;
|
|
3016
|
-
fieldId: string;
|
|
3017
|
-
type: "percent_of_column_total";
|
|
3018
|
-
displayName: string;
|
|
3019
|
-
partitionBy: string[] | null;
|
|
3020
|
-
} | {
|
|
3021
|
-
name: string;
|
|
3022
|
-
fieldId: string;
|
|
3023
|
-
type: "rank_in_column";
|
|
3024
|
-
displayName: string;
|
|
3025
|
-
} | {
|
|
3026
|
-
name: string;
|
|
3027
|
-
fieldId: string;
|
|
3028
|
-
type: "running_total";
|
|
3029
|
-
displayName: string;
|
|
3030
|
-
} | {
|
|
3031
|
-
name: string;
|
|
3032
|
-
fieldId: string | null;
|
|
3033
|
-
type: "window_function";
|
|
3034
|
-
displayName: string;
|
|
3035
|
-
orderBy: {
|
|
3036
|
-
fieldId: string;
|
|
3037
|
-
order: "asc" | "desc" | null;
|
|
3038
|
-
}[] | null;
|
|
3039
|
-
partitionBy: string[] | null;
|
|
3040
|
-
windowFunction: import("../../..").WindowFunctionType;
|
|
3041
|
-
frame: {
|
|
3042
|
-
start: {
|
|
3043
|
-
type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
|
|
3044
|
-
offset: number | null;
|
|
3045
|
-
} | null;
|
|
3046
|
-
end: {
|
|
3047
|
-
type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
|
|
3048
|
-
offset: number | null;
|
|
3049
|
-
};
|
|
3050
|
-
frameType: "rows" | "range";
|
|
3051
|
-
} | null;
|
|
3052
|
-
})[] | null;
|
|
3053
|
-
type: import("..").AiResultType.QUERY_RESULT;
|
|
3054
|
-
description: string;
|
|
3055
|
-
chartConfig: {
|
|
3056
|
-
groupBy: string[] | null;
|
|
3057
|
-
stackBars: boolean | null;
|
|
3058
|
-
xAxisType: "time" | "category" | null;
|
|
3059
|
-
xAxisLabel: string;
|
|
3060
|
-
yAxisLabel: string;
|
|
3061
|
-
lineType: "line" | "area" | null;
|
|
3062
|
-
defaultVizType: "table" | "bar" | "line" | "scatter" | "pie" | "funnel" | "horizontal";
|
|
3063
|
-
xAxisDimension: string | null;
|
|
3064
|
-
yAxisMetrics: string[] | null;
|
|
3065
|
-
funnelDataInput: "row" | "column" | null;
|
|
3066
|
-
secondaryYAxisMetric: string | null;
|
|
3067
|
-
secondaryYAxisLabel: string | null;
|
|
3068
|
-
} | null;
|
|
3069
|
-
customMetrics: {
|
|
3070
|
-
name: string;
|
|
3071
|
-
label: string;
|
|
3072
|
-
table: string;
|
|
3073
|
-
type: import("../../..").MetricType.PERCENTILE | import("../../..").MetricType.AVERAGE | import("../../..").MetricType.COUNT | import("../../..").MetricType.COUNT_DISTINCT | import("../../..").MetricType.SUM | import("../../..").MetricType.MIN | import("../../..").MetricType.MAX | import("../../..").MetricType.MEDIAN;
|
|
3074
|
-
description: string;
|
|
3075
|
-
baseDimensionName: string;
|
|
3076
|
-
}[] | null;
|
|
3077
|
-
title: string;
|
|
3078
|
-
queryConfig: {
|
|
3079
|
-
dimensions: string[];
|
|
3080
|
-
metrics: string[];
|
|
3081
|
-
limit: number | null;
|
|
3082
|
-
exploreName: string;
|
|
3083
|
-
sorts: {
|
|
3084
|
-
fieldId: string;
|
|
3085
|
-
descending: boolean;
|
|
3086
|
-
nullsFirst: boolean | null;
|
|
3087
|
-
}[];
|
|
3088
|
-
};
|
|
3089
|
-
}> | import("zod").SafeParseError<{
|
|
2994
|
+
}> | import("zod").SafeParseReturnType<{
|
|
3090
2995
|
type: import("..").AiResultType.QUERY_RESULT;
|
|
3091
2996
|
description: string;
|
|
3092
2997
|
filters: {
|
|
@@ -3385,6 +3290,101 @@ export declare const parseToolArgs: (toolName: ToolName, toolArgs: unknown) => i
|
|
|
3385
3290
|
description: string;
|
|
3386
3291
|
baseDimensionName: string;
|
|
3387
3292
|
}[] | null | undefined;
|
|
3293
|
+
}, {
|
|
3294
|
+
filters: import("../../..").Filters;
|
|
3295
|
+
tableCalculations: ({
|
|
3296
|
+
name: string;
|
|
3297
|
+
fieldId: string;
|
|
3298
|
+
type: "percent_change_from_previous";
|
|
3299
|
+
displayName: string;
|
|
3300
|
+
orderBy: {
|
|
3301
|
+
fieldId: string;
|
|
3302
|
+
order: "asc" | "desc" | null;
|
|
3303
|
+
}[];
|
|
3304
|
+
} | {
|
|
3305
|
+
name: string;
|
|
3306
|
+
fieldId: string;
|
|
3307
|
+
type: "percent_of_previous_value";
|
|
3308
|
+
displayName: string;
|
|
3309
|
+
orderBy: {
|
|
3310
|
+
fieldId: string;
|
|
3311
|
+
order: "asc" | "desc" | null;
|
|
3312
|
+
}[];
|
|
3313
|
+
} | {
|
|
3314
|
+
name: string;
|
|
3315
|
+
fieldId: string;
|
|
3316
|
+
type: "percent_of_column_total";
|
|
3317
|
+
displayName: string;
|
|
3318
|
+
partitionBy: string[] | null;
|
|
3319
|
+
} | {
|
|
3320
|
+
name: string;
|
|
3321
|
+
fieldId: string;
|
|
3322
|
+
type: "rank_in_column";
|
|
3323
|
+
displayName: string;
|
|
3324
|
+
} | {
|
|
3325
|
+
name: string;
|
|
3326
|
+
fieldId: string;
|
|
3327
|
+
type: "running_total";
|
|
3328
|
+
displayName: string;
|
|
3329
|
+
} | {
|
|
3330
|
+
name: string;
|
|
3331
|
+
fieldId: string | null;
|
|
3332
|
+
type: "window_function";
|
|
3333
|
+
displayName: string;
|
|
3334
|
+
orderBy: {
|
|
3335
|
+
fieldId: string;
|
|
3336
|
+
order: "asc" | "desc" | null;
|
|
3337
|
+
}[] | null;
|
|
3338
|
+
partitionBy: string[] | null;
|
|
3339
|
+
windowFunction: import("../../..").WindowFunctionType;
|
|
3340
|
+
frame: {
|
|
3341
|
+
start: {
|
|
3342
|
+
type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
|
|
3343
|
+
offset: number | null;
|
|
3344
|
+
} | null;
|
|
3345
|
+
end: {
|
|
3346
|
+
type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
|
|
3347
|
+
offset: number | null;
|
|
3348
|
+
};
|
|
3349
|
+
frameType: "rows" | "range";
|
|
3350
|
+
} | null;
|
|
3351
|
+
})[] | null;
|
|
3352
|
+
type: import("..").AiResultType.QUERY_RESULT;
|
|
3353
|
+
description: string;
|
|
3354
|
+
chartConfig: {
|
|
3355
|
+
groupBy: string[] | null;
|
|
3356
|
+
stackBars: boolean | null;
|
|
3357
|
+
xAxisType: "time" | "category" | null;
|
|
3358
|
+
xAxisLabel: string;
|
|
3359
|
+
yAxisLabel: string;
|
|
3360
|
+
lineType: "line" | "area" | null;
|
|
3361
|
+
defaultVizType: "table" | "bar" | "line" | "scatter" | "pie" | "funnel" | "horizontal";
|
|
3362
|
+
xAxisDimension: string | null;
|
|
3363
|
+
yAxisMetrics: string[] | null;
|
|
3364
|
+
funnelDataInput: "row" | "column" | null;
|
|
3365
|
+
secondaryYAxisMetric: string | null;
|
|
3366
|
+
secondaryYAxisLabel: string | null;
|
|
3367
|
+
} | null;
|
|
3368
|
+
customMetrics: {
|
|
3369
|
+
name: string;
|
|
3370
|
+
label: string;
|
|
3371
|
+
table: string;
|
|
3372
|
+
type: import("../../..").MetricType.PERCENTILE | import("../../..").MetricType.AVERAGE | import("../../..").MetricType.COUNT | import("../../..").MetricType.COUNT_DISTINCT | import("../../..").MetricType.SUM | import("../../..").MetricType.MIN | import("../../..").MetricType.MAX | import("../../..").MetricType.MEDIAN;
|
|
3373
|
+
description: string;
|
|
3374
|
+
baseDimensionName: string;
|
|
3375
|
+
}[] | null;
|
|
3376
|
+
title: string;
|
|
3377
|
+
queryConfig: {
|
|
3378
|
+
dimensions: string[];
|
|
3379
|
+
metrics: string[];
|
|
3380
|
+
limit: number | null;
|
|
3381
|
+
exploreName: string;
|
|
3382
|
+
sorts: {
|
|
3383
|
+
fieldId: string;
|
|
3384
|
+
descending: boolean;
|
|
3385
|
+
nullsFirst: boolean | null;
|
|
3386
|
+
}[];
|
|
3387
|
+
};
|
|
3388
3388
|
}> | import("zod").SafeParseSuccess<{
|
|
3389
3389
|
visualizations: {
|
|
3390
3390
|
filters: import("../../..").Filters;
|
|
@@ -3485,69 +3485,69 @@ export declare const parseToolArgs: (toolName: ToolName, toolArgs: unknown) => i
|
|
|
3485
3485
|
type: import("..").AiResultType.DASHBOARD_V2_RESULT;
|
|
3486
3486
|
description: string;
|
|
3487
3487
|
title: string;
|
|
3488
|
-
}> | import("zod").
|
|
3488
|
+
}> | import("zod").SafeParseReturnType<{
|
|
3489
3489
|
type: "find_charts";
|
|
3490
3490
|
page: number | null;
|
|
3491
3491
|
chartSearchQueries: {
|
|
3492
3492
|
label: string;
|
|
3493
3493
|
}[];
|
|
3494
|
-
}
|
|
3494
|
+
}, {
|
|
3495
3495
|
type: "find_charts";
|
|
3496
3496
|
page: number | null;
|
|
3497
3497
|
chartSearchQueries: {
|
|
3498
3498
|
label: string;
|
|
3499
3499
|
}[];
|
|
3500
|
-
}> | import("zod").
|
|
3500
|
+
}> | import("zod").SafeParseReturnType<{
|
|
3501
3501
|
type: "find_content";
|
|
3502
3502
|
searchQueries: {
|
|
3503
3503
|
label: string;
|
|
3504
3504
|
}[];
|
|
3505
|
-
}
|
|
3505
|
+
}, {
|
|
3506
3506
|
type: "find_content";
|
|
3507
3507
|
searchQueries: {
|
|
3508
3508
|
label: string;
|
|
3509
3509
|
}[];
|
|
3510
|
-
}> | import("zod").
|
|
3510
|
+
}> | import("zod").SafeParseReturnType<{
|
|
3511
3511
|
type: "find_dashboards";
|
|
3512
3512
|
page: number | null;
|
|
3513
3513
|
dashboardSearchQueries: {
|
|
3514
3514
|
label: string;
|
|
3515
3515
|
}[];
|
|
3516
|
-
}
|
|
3516
|
+
}, {
|
|
3517
3517
|
type: "find_dashboards";
|
|
3518
3518
|
page: number | null;
|
|
3519
3519
|
dashboardSearchQueries: {
|
|
3520
3520
|
label: string;
|
|
3521
3521
|
}[];
|
|
3522
|
-
}> | import("zod").
|
|
3522
|
+
}> | import("zod").SafeParseReturnType<{
|
|
3523
3523
|
type: "find_explores";
|
|
3524
3524
|
exploreName: string | null;
|
|
3525
3525
|
page: number | null;
|
|
3526
3526
|
} | {
|
|
3527
3527
|
type: "find_explores_v2";
|
|
3528
3528
|
exploreName: string;
|
|
3529
|
-
}
|
|
3529
|
+
}, {
|
|
3530
3530
|
type: "find_explores";
|
|
3531
3531
|
exploreName: string | null;
|
|
3532
3532
|
page: number | null;
|
|
3533
3533
|
} | {
|
|
3534
3534
|
type: "find_explores_v2";
|
|
3535
3535
|
exploreName: string;
|
|
3536
|
-
}> | import("zod").
|
|
3536
|
+
}> | import("zod").SafeParseReturnType<{
|
|
3537
3537
|
table: string;
|
|
3538
3538
|
type: "find_fields";
|
|
3539
3539
|
page: number | null;
|
|
3540
3540
|
fieldSearchQueries: {
|
|
3541
3541
|
label: string;
|
|
3542
3542
|
}[];
|
|
3543
|
-
}
|
|
3543
|
+
}, {
|
|
3544
3544
|
table: string;
|
|
3545
3545
|
type: "find_fields";
|
|
3546
3546
|
page: number | null;
|
|
3547
3547
|
fieldSearchQueries: {
|
|
3548
3548
|
label: string;
|
|
3549
3549
|
}[];
|
|
3550
|
-
}> | import("zod").
|
|
3550
|
+
}> | import("zod").SafeParseReturnType<{
|
|
3551
3551
|
type: import("..").AiResultType.IMPROVE_CONTEXT;
|
|
3552
3552
|
category: "explore_selection" | "field_selection" | "filter_logic" | "calculation" | "other";
|
|
3553
3553
|
originalQuery: string;
|
|
@@ -3555,7 +3555,7 @@ export declare const parseToolArgs: (toolName: ToolName, toolArgs: unknown) => i
|
|
|
3555
3555
|
correctResponse: string;
|
|
3556
3556
|
confidence: number;
|
|
3557
3557
|
suggestedInstruction: string;
|
|
3558
|
-
}
|
|
3558
|
+
}, {
|
|
3559
3559
|
type: import("..").AiResultType.IMPROVE_CONTEXT;
|
|
3560
3560
|
category: "explore_selection" | "field_selection" | "filter_logic" | "calculation" | "other";
|
|
3561
3561
|
originalQuery: string;
|
|
@@ -3563,7 +3563,7 @@ export declare const parseToolArgs: (toolName: ToolName, toolArgs: unknown) => i
|
|
|
3563
3563
|
correctResponse: string;
|
|
3564
3564
|
confidence: number;
|
|
3565
3565
|
suggestedInstruction: string;
|
|
3566
|
-
}> | import("zod").
|
|
3566
|
+
}> | import("zod").SafeParseReturnType<{
|
|
3567
3567
|
type: import("..").AiResultType.PROPOSE_CHANGE;
|
|
3568
3568
|
entityTableName: string;
|
|
3569
3569
|
rationale: string;
|
|
@@ -3646,7 +3646,7 @@ export declare const parseToolArgs: (toolName: ToolName, toolArgs: unknown) => i
|
|
|
3646
3646
|
};
|
|
3647
3647
|
entityType: "metric";
|
|
3648
3648
|
};
|
|
3649
|
-
}
|
|
3649
|
+
}, {
|
|
3650
3650
|
type: import("..").AiResultType.PROPOSE_CHANGE;
|
|
3651
3651
|
entityTableName: string;
|
|
3652
3652
|
rationale: string;
|
|
@@ -3729,7 +3729,7 @@ export declare const parseToolArgs: (toolName: ToolName, toolArgs: unknown) => i
|
|
|
3729
3729
|
};
|
|
3730
3730
|
entityType: "metric";
|
|
3731
3731
|
};
|
|
3732
|
-
}> | import("zod").
|
|
3732
|
+
}> | import("zod").SafeParseReturnType<{
|
|
3733
3733
|
fieldId: string;
|
|
3734
3734
|
table: string;
|
|
3735
3735
|
type: "search_field_values";
|
|
@@ -3939,7 +3939,7 @@ export declare const parseToolArgs: (toolName: ToolName, toolArgs: unknown) => i
|
|
|
3939
3939
|
type: "and" | "or";
|
|
3940
3940
|
} | null;
|
|
3941
3941
|
query: string | null;
|
|
3942
|
-
}
|
|
3942
|
+
}, {
|
|
3943
3943
|
filters: import("../../..").Filters | undefined;
|
|
3944
3944
|
query: string;
|
|
3945
3945
|
fieldId: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parser.d.ts","sourceRoot":"","sources":["../../../../../src/ee/AiAgent/schemas/parser.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAEjD;;;;;GAKG;AACH,eAAO,MAAM,aAAa,aAAc,QAAQ,YAAY,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA0ClE,CAAC"}
|
|
@@ -23,9 +23,12 @@ export const parseToolArgs = (toolName, toolArgs) => {
|
|
|
23
23
|
case 'generateTimeSeriesVizConfig':
|
|
24
24
|
return toolTimeSeriesArgsSchemaTransformed.safeParse(toolArgs);
|
|
25
25
|
case 'generateDashboard':
|
|
26
|
+
// try v2 then v1
|
|
27
|
+
const v2Result = toolDashboardV2ArgsSchemaTransformed.safeParse(toolArgs);
|
|
28
|
+
if (v2Result.success) {
|
|
29
|
+
return v2Result;
|
|
30
|
+
}
|
|
26
31
|
return toolDashboardArgsSchemaTransformed.safeParse(toolArgs);
|
|
27
|
-
case 'generateDashboardV2':
|
|
28
|
-
return toolDashboardV2ArgsSchemaTransformed.safeParse(toolArgs);
|
|
29
32
|
case 'findDashboards':
|
|
30
33
|
return toolFindDashboardsArgsSchemaTransformed.safeParse(toolArgs);
|
|
31
34
|
case 'findCharts':
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parser.js","sourceRoot":"","sources":["../../../../../src/ee/AiAgent/schemas/parser.ts"],"names":[],"mappings":"AAAA,OAAO,iBAAiB,MAAM,kCAAkC,CAAC;AACjE,OAAO,EAC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SAAS,CAAC,QAAQ,CAAC,CAAC;QAC3D,KAAK,UAAU;YACX,OAAO,iCAAiC,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;QACjE;YACI,OAAO,iBAAiB,CACpB,QAAQ,EACR,sBAAsB,QAAQ,EAAE,CACnC,CAAC;IACV,CAAC;AACL,CAAC,CAAC"}
|
|
@@ -2,11 +2,11 @@ import { z } from 'zod';
|
|
|
2
2
|
export * from './tableViz';
|
|
3
3
|
export * from './timeSeriesViz';
|
|
4
4
|
export * from './verticalBarViz';
|
|
5
|
-
export declare const ToolNameSchema: z.ZodEnum<["generateBarVizConfig", "generateTableVizConfig", "generateTimeSeriesVizConfig", "generateDashboard", "
|
|
5
|
+
export declare const ToolNameSchema: z.ZodEnum<["generateBarVizConfig", "generateTableVizConfig", "generateTimeSeriesVizConfig", "generateDashboard", "findContent", "findExplores", "findFields", "searchFieldValues", "findDashboards", "findCharts", "improveContext", "proposeChange", "runQuery"]>;
|
|
6
6
|
export type ToolName = z.infer<typeof ToolNameSchema>;
|
|
7
7
|
export declare const isToolName: (toolName: string) => toolName is ToolName;
|
|
8
|
-
export declare const ToolDisplayMessagesSchema: z.ZodRecord<z.ZodEnum<["generateBarVizConfig", "generateTableVizConfig", "generateTimeSeriesVizConfig", "generateDashboard", "
|
|
9
|
-
export declare const TOOL_DISPLAY_MESSAGES: Partial<Record<"generateBarVizConfig" | "generateTableVizConfig" | "generateTimeSeriesVizConfig" | "generateDashboard" | "
|
|
10
|
-
export declare const TOOL_DISPLAY_MESSAGES_AFTER_TOOL_CALL: Partial<Record<"generateBarVizConfig" | "generateTableVizConfig" | "generateTimeSeriesVizConfig" | "generateDashboard" | "
|
|
8
|
+
export declare const ToolDisplayMessagesSchema: z.ZodRecord<z.ZodEnum<["generateBarVizConfig", "generateTableVizConfig", "generateTimeSeriesVizConfig", "generateDashboard", "findContent", "findExplores", "findFields", "searchFieldValues", "findDashboards", "findCharts", "improveContext", "proposeChange", "runQuery"]>, z.ZodString>;
|
|
9
|
+
export declare const TOOL_DISPLAY_MESSAGES: Partial<Record<"generateBarVizConfig" | "generateTableVizConfig" | "generateTimeSeriesVizConfig" | "generateDashboard" | "findContent" | "findExplores" | "findFields" | "searchFieldValues" | "findDashboards" | "findCharts" | "improveContext" | "proposeChange" | "runQuery", string>>;
|
|
10
|
+
export declare const TOOL_DISPLAY_MESSAGES_AFTER_TOOL_CALL: Partial<Record<"generateBarVizConfig" | "generateTableVizConfig" | "generateTimeSeriesVizConfig" | "generateDashboard" | "findContent" | "findExplores" | "findFields" | "searchFieldValues" | "findDashboards" | "findCharts" | "improveContext" | "proposeChange" | "runQuery", string>>;
|
|
11
11
|
export declare const AVAILABLE_VISUALIZATION_TYPES: readonly ["generateBarVizConfig", "generateTableVizConfig", "generateTimeSeriesVizConfig"];
|
|
12
12
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/visualizations/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AASjC,eAAO,MAAM,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/visualizations/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AASjC,eAAO,MAAM,cAAc,oQAYzB,CAAC;AAEH,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAEtD,eAAO,MAAM,UAAU,aAAc,MAAM,KAAG,QAAQ,IAAI,QACZ,CAAC;AAG/C,eAAO,MAAM,yBAAyB,8RAAuC,CAAC;AAE9E,eAAO,MAAM,qBAAqB,4RAYhC,CAAC;AAGH,eAAO,MAAM,qCAAqC,4RAa5C,CAAC;AAEP,eAAO,MAAM,6BAA6B,4FAAqB,CAAC"}
|