@lightdash/common 0.1969.1 → 0.1971.0
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/ee/AiAgent/schemas/customMetrics.d.ts +42 -0
- package/dist/cjs/ee/AiAgent/schemas/customMetrics.d.ts.map +1 -0
- package/dist/cjs/ee/AiAgent/schemas/customMetrics.js +50 -0
- package/dist/cjs/ee/AiAgent/schemas/customMetrics.js.map +1 -0
- package/dist/cjs/ee/AiAgent/schemas/index.d.ts +106 -6
- package/dist/cjs/ee/AiAgent/schemas/index.d.ts.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/index.js +1 -0
- package/dist/cjs/ee/AiAgent/schemas/index.js.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolTableVizArgs.d.ts +87 -7
- package/dist/cjs/ee/AiAgent/schemas/tools/toolTableVizArgs.d.ts.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolTableVizArgs.js +8 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolTableVizArgs.js.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolTimeSeriesArgs.d.ts +86 -6
- package/dist/cjs/ee/AiAgent/schemas/tools/toolTimeSeriesArgs.d.ts.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolTimeSeriesArgs.js +4 -0
- package/dist/cjs/ee/AiAgent/schemas/tools/toolTimeSeriesArgs.js.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolVerticalBarArgs.d.ts +87 -7
- package/dist/cjs/ee/AiAgent/schemas/tools/toolVerticalBarArgs.d.ts.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolVerticalBarArgs.js +8 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolVerticalBarArgs.js.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/visualizations/tableViz.d.ts +7 -1
- package/dist/cjs/ee/AiAgent/schemas/visualizations/tableViz.d.ts.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/visualizations/tableViz.js +2 -1
- package/dist/cjs/ee/AiAgent/schemas/visualizations/tableViz.js.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/visualizations/timeSeriesViz.d.ts +7 -1
- package/dist/cjs/ee/AiAgent/schemas/visualizations/timeSeriesViz.d.ts.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/visualizations/timeSeriesViz.js +2 -1
- package/dist/cjs/ee/AiAgent/schemas/visualizations/timeSeriesViz.js.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/visualizations/verticalBarViz.d.ts +7 -1
- package/dist/cjs/ee/AiAgent/schemas/visualizations/verticalBarViz.d.ts.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/visualizations/verticalBarViz.js +2 -1
- package/dist/cjs/ee/AiAgent/schemas/visualizations/verticalBarViz.js.map +1 -1
- package/dist/cjs/ee/AiAgent/types.d.ts +4 -2
- package/dist/cjs/ee/AiAgent/types.d.ts.map +1 -1
- package/dist/cjs/ee/AiAgent/utils.d.ts +24 -3
- package/dist/cjs/ee/AiAgent/utils.d.ts.map +1 -1
- package/dist/cjs/ee/AiAgent/utils.js +18 -3
- package/dist/cjs/ee/AiAgent/utils.js.map +1 -1
- package/dist/cjs/utils/additionalMetrics.d.ts +7 -1
- package/dist/cjs/utils/additionalMetrics.d.ts.map +1 -1
- package/dist/cjs/utils/additionalMetrics.js +36 -1
- package/dist/cjs/utils/additionalMetrics.js.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/customMetrics.d.ts +42 -0
- package/dist/esm/ee/AiAgent/schemas/customMetrics.d.ts.map +1 -0
- package/dist/esm/ee/AiAgent/schemas/customMetrics.js +47 -0
- package/dist/esm/ee/AiAgent/schemas/customMetrics.js.map +1 -0
- package/dist/esm/ee/AiAgent/schemas/index.d.ts +106 -6
- package/dist/esm/ee/AiAgent/schemas/index.d.ts.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/index.js +1 -0
- package/dist/esm/ee/AiAgent/schemas/index.js.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/toolTableVizArgs.d.ts +87 -7
- package/dist/esm/ee/AiAgent/schemas/tools/toolTableVizArgs.d.ts.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/toolTableVizArgs.js +8 -1
- package/dist/esm/ee/AiAgent/schemas/tools/toolTableVizArgs.js.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/toolTimeSeriesArgs.d.ts +86 -6
- package/dist/esm/ee/AiAgent/schemas/tools/toolTimeSeriesArgs.d.ts.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/toolTimeSeriesArgs.js +4 -0
- package/dist/esm/ee/AiAgent/schemas/tools/toolTimeSeriesArgs.js.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/toolVerticalBarArgs.d.ts +87 -7
- package/dist/esm/ee/AiAgent/schemas/tools/toolVerticalBarArgs.d.ts.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/toolVerticalBarArgs.js +8 -1
- package/dist/esm/ee/AiAgent/schemas/tools/toolVerticalBarArgs.js.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/visualizations/tableViz.d.ts +7 -1
- package/dist/esm/ee/AiAgent/schemas/visualizations/tableViz.d.ts.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/visualizations/tableViz.js +2 -1
- package/dist/esm/ee/AiAgent/schemas/visualizations/tableViz.js.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/visualizations/timeSeriesViz.d.ts +7 -1
- package/dist/esm/ee/AiAgent/schemas/visualizations/timeSeriesViz.d.ts.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/visualizations/timeSeriesViz.js +2 -1
- package/dist/esm/ee/AiAgent/schemas/visualizations/timeSeriesViz.js.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/visualizations/verticalBarViz.d.ts +7 -1
- package/dist/esm/ee/AiAgent/schemas/visualizations/verticalBarViz.d.ts.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/visualizations/verticalBarViz.js +2 -1
- package/dist/esm/ee/AiAgent/schemas/visualizations/verticalBarViz.js.map +1 -1
- package/dist/esm/ee/AiAgent/types.d.ts +4 -2
- package/dist/esm/ee/AiAgent/types.d.ts.map +1 -1
- package/dist/esm/ee/AiAgent/utils.d.ts +24 -3
- package/dist/esm/ee/AiAgent/utils.d.ts.map +1 -1
- package/dist/esm/ee/AiAgent/utils.js +18 -3
- package/dist/esm/ee/AiAgent/utils.js.map +1 -1
- package/dist/esm/utils/additionalMetrics.d.ts +7 -1
- package/dist/esm/utils/additionalMetrics.d.ts.map +1 -1
- package/dist/esm/utils/additionalMetrics.js +34 -0
- package/dist/esm/utils/additionalMetrics.js.map +1 -1
- package/dist/tsconfig.types.tsbuildinfo +1 -1
- package/dist/types/ee/AiAgent/schemas/customMetrics.d.ts +42 -0
- package/dist/types/ee/AiAgent/schemas/customMetrics.d.ts.map +1 -0
- package/dist/types/ee/AiAgent/schemas/index.d.ts +106 -6
- package/dist/types/ee/AiAgent/schemas/index.d.ts.map +1 -1
- package/dist/types/ee/AiAgent/schemas/tools/toolTableVizArgs.d.ts +87 -7
- package/dist/types/ee/AiAgent/schemas/tools/toolTableVizArgs.d.ts.map +1 -1
- package/dist/types/ee/AiAgent/schemas/tools/toolTimeSeriesArgs.d.ts +86 -6
- package/dist/types/ee/AiAgent/schemas/tools/toolTimeSeriesArgs.d.ts.map +1 -1
- package/dist/types/ee/AiAgent/schemas/tools/toolVerticalBarArgs.d.ts +87 -7
- package/dist/types/ee/AiAgent/schemas/tools/toolVerticalBarArgs.d.ts.map +1 -1
- package/dist/types/ee/AiAgent/schemas/visualizations/tableViz.d.ts +7 -1
- package/dist/types/ee/AiAgent/schemas/visualizations/tableViz.d.ts.map +1 -1
- package/dist/types/ee/AiAgent/schemas/visualizations/timeSeriesViz.d.ts +7 -1
- package/dist/types/ee/AiAgent/schemas/visualizations/timeSeriesViz.d.ts.map +1 -1
- package/dist/types/ee/AiAgent/schemas/visualizations/verticalBarViz.d.ts +7 -1
- package/dist/types/ee/AiAgent/schemas/visualizations/verticalBarViz.d.ts.map +1 -1
- package/dist/types/ee/AiAgent/types.d.ts +4 -2
- package/dist/types/ee/AiAgent/types.d.ts.map +1 -1
- package/dist/types/ee/AiAgent/utils.d.ts +24 -3
- package/dist/types/ee/AiAgent/utils.d.ts.map +1 -1
- package/dist/types/utils/additionalMetrics.d.ts +7 -1
- package/dist/types/utils/additionalMetrics.d.ts.map +1 -1
- package/package.json +1 -1
@@ -0,0 +1,42 @@
|
|
1
|
+
import { z } from 'zod';
|
2
|
+
import { MetricType } from '../../../types/field';
|
3
|
+
export declare const customMetricBaseSchema: z.ZodObject<{
|
4
|
+
name: z.ZodString;
|
5
|
+
label: z.ZodString;
|
6
|
+
baseDimensionName: z.ZodString;
|
7
|
+
table: z.ZodString;
|
8
|
+
type: z.ZodEnum<[MetricType.AVERAGE, MetricType.COUNT, MetricType.COUNT_DISTINCT, MetricType.MAX, MetricType.MIN, MetricType.SUM, MetricType.PERCENTILE, MetricType.MEDIAN]>;
|
9
|
+
}, "strip", z.ZodTypeAny, {
|
10
|
+
name: string;
|
11
|
+
label: string;
|
12
|
+
table: string;
|
13
|
+
type: MetricType.PERCENTILE | MetricType.AVERAGE | MetricType.COUNT | MetricType.COUNT_DISTINCT | MetricType.SUM | MetricType.MIN | MetricType.MAX | MetricType.MEDIAN;
|
14
|
+
baseDimensionName: string;
|
15
|
+
}, {
|
16
|
+
name: string;
|
17
|
+
label: string;
|
18
|
+
table: string;
|
19
|
+
type: MetricType.PERCENTILE | MetricType.AVERAGE | MetricType.COUNT | MetricType.COUNT_DISTINCT | MetricType.SUM | MetricType.MIN | MetricType.MAX | MetricType.MEDIAN;
|
20
|
+
baseDimensionName: string;
|
21
|
+
}>;
|
22
|
+
export type CustomMetricBaseSchema = z.infer<typeof customMetricBaseSchema>;
|
23
|
+
export declare const customMetricsSchema: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
24
|
+
name: z.ZodString;
|
25
|
+
label: z.ZodString;
|
26
|
+
baseDimensionName: z.ZodString;
|
27
|
+
table: z.ZodString;
|
28
|
+
type: z.ZodEnum<[MetricType.AVERAGE, MetricType.COUNT, MetricType.COUNT_DISTINCT, MetricType.MAX, MetricType.MIN, MetricType.SUM, MetricType.PERCENTILE, MetricType.MEDIAN]>;
|
29
|
+
}, "strip", z.ZodTypeAny, {
|
30
|
+
name: string;
|
31
|
+
label: string;
|
32
|
+
table: string;
|
33
|
+
type: MetricType.PERCENTILE | MetricType.AVERAGE | MetricType.COUNT | MetricType.COUNT_DISTINCT | MetricType.SUM | MetricType.MIN | MetricType.MAX | MetricType.MEDIAN;
|
34
|
+
baseDimensionName: string;
|
35
|
+
}, {
|
36
|
+
name: string;
|
37
|
+
label: string;
|
38
|
+
table: string;
|
39
|
+
type: MetricType.PERCENTILE | MetricType.AVERAGE | MetricType.COUNT | MetricType.COUNT_DISTINCT | MetricType.SUM | MetricType.MIN | MetricType.MAX | MetricType.MEDIAN;
|
40
|
+
baseDimensionName: string;
|
41
|
+
}>, "many">>;
|
42
|
+
//# sourceMappingURL=customMetrics.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"customMetrics.d.ts","sourceRoot":"","sources":["../../../../../src/ee/AiAgent/schemas/customMetrics.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;EAmCjC,CAAC;AAEH,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAE5E,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;YAmB3B,CAAC"}
|
@@ -0,0 +1,50 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.customMetricsSchema = exports.customMetricBaseSchema = void 0;
|
4
|
+
const zod_1 = require("zod");
|
5
|
+
const field_1 = require("../../../types/field");
|
6
|
+
exports.customMetricBaseSchema = zod_1.z.object({
|
7
|
+
name: zod_1.z
|
8
|
+
.string()
|
9
|
+
.describe('Unique metric name using snake_case (e.g., "avg_customer_age", "total_revenue")'),
|
10
|
+
label: zod_1.z
|
11
|
+
.string()
|
12
|
+
.describe('Human-readable label for the metric (e.g., "Average Customer Age", "Total Revenue")'),
|
13
|
+
baseDimensionName: zod_1.z
|
14
|
+
.string()
|
15
|
+
.describe('Name of the base dimension/column this metric calculates from'),
|
16
|
+
table: zod_1.z
|
17
|
+
.string()
|
18
|
+
.describe('Table name where the base column exists. Match with available dimensions in the explore.'),
|
19
|
+
type: zod_1.z
|
20
|
+
.enum([
|
21
|
+
field_1.MetricType.AVERAGE,
|
22
|
+
field_1.MetricType.COUNT,
|
23
|
+
field_1.MetricType.COUNT_DISTINCT,
|
24
|
+
field_1.MetricType.MAX,
|
25
|
+
field_1.MetricType.MIN,
|
26
|
+
field_1.MetricType.SUM,
|
27
|
+
field_1.MetricType.PERCENTILE,
|
28
|
+
field_1.MetricType.MEDIAN,
|
29
|
+
])
|
30
|
+
.describe(`Choose based on the user's request. If the base dimension type is STRING, TIMESTAMP, DATE, BOOLEAN, use COUNT_DISTINCT, COUNT, MIN, MAX. If the base dimension type is NUMBER, use MIN, MAX, SUM, PERCENTILE, MEDIAN, AVERAGE, COUNT_DISTINCT, COUNT. If the base dimension type is BOOLEAN, use COUNT_DISTINCT, COUNT.`),
|
31
|
+
});
|
32
|
+
exports.customMetricsSchema = zod_1.z
|
33
|
+
.array(exports.customMetricBaseSchema)
|
34
|
+
.nullable()
|
35
|
+
.describe(`Create custom metrics when requested metrics don't exist. Only create if no existing metric matches the user's request. Use null if no custom metrics needed.
|
36
|
+
|
37
|
+
IMPORTANT: If the user requests metrics that don't exist (like "average customer age"), create them using the customMetrics field. Analyze available dimensions from findFields results and create appropriate SQL aggregations.
|
38
|
+
|
39
|
+
When using custom metrics:
|
40
|
+
1. Create the metric in customMetrics array with just the metric name (e.g., "avg_customer_age")
|
41
|
+
2. Reference it in metrics array using the format "table_metricname" (e.g., "customers_avg_customer_age")
|
42
|
+
3. Reference it in sorts array using the format "table_metricname" (e.g., "customers_avg_customer_age")
|
43
|
+
4. DO NOT use the raw metric name in metrics or sorts arrays
|
44
|
+
|
45
|
+
For example:
|
46
|
+
- "Show me average customer age sorted descending" →
|
47
|
+
customMetrics: [{name: "avg_customer_age", label: "Average Customer Age", type: "AVERAGE", baseDimensionName: "age", table: "customers"}]
|
48
|
+
metrics: ["customers_avg_customer_age"]
|
49
|
+
sorts: [{fieldId: "customers_avg_customer_age", descending: true}]`);
|
50
|
+
//# sourceMappingURL=customMetrics.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"customMetrics.js","sourceRoot":"","sources":["../../../../../src/ee/AiAgent/schemas/customMetrics.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,gDAAkD;AAErC,QAAA,sBAAsB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC3C,IAAI,EAAE,OAAC;SACF,MAAM,EAAE;SACR,QAAQ,CACL,iFAAiF,CACpF;IACL,KAAK,EAAE,OAAC;SACH,MAAM,EAAE;SACR,QAAQ,CACL,qFAAqF,CACxF;IACL,iBAAiB,EAAE,OAAC;SACf,MAAM,EAAE;SACR,QAAQ,CACL,+DAA+D,CAClE;IACL,KAAK,EAAE,OAAC;SACH,MAAM,EAAE;SACR,QAAQ,CACL,0FAA0F,CAC7F;IACL,IAAI,EAAE,OAAC;SACF,IAAI,CAAC;QACF,kBAAU,CAAC,OAAO;QAClB,kBAAU,CAAC,KAAK;QAChB,kBAAU,CAAC,cAAc;QACzB,kBAAU,CAAC,GAAG;QACd,kBAAU,CAAC,GAAG;QACd,kBAAU,CAAC,GAAG;QACd,kBAAU,CAAC,UAAU;QACrB,kBAAU,CAAC,MAAM;KACpB,CAAC;SACD,QAAQ,CACL,yTAAyT,CAC5T;CACR,CAAC,CAAC;AAIU,QAAA,mBAAmB,GAAG,OAAC;KAC/B,KAAK,CAAC,8BAAsB,CAAC;KAC7B,QAAQ,EAAE;KACV,QAAQ,CACL;;;;;;;;;;;;;;mFAc2E,CAC9E,CAAC"}
|
@@ -1,4 +1,5 @@
|
|
1
1
|
import { z } from 'zod';
|
2
|
+
export * from './customMetrics';
|
2
3
|
export * from './filters';
|
3
4
|
export * from './tools';
|
4
5
|
export * from './visualizations';
|
@@ -80,6 +81,25 @@ export declare const AgentToolCallArgsSchema: z.ZodDiscriminatedUnion<"type", [z
|
|
80
81
|
}>, z.ZodObject<{
|
81
82
|
type: z.ZodLiteral<import("..").AiResultType.VERTICAL_BAR_RESULT>;
|
82
83
|
} & {
|
84
|
+
customMetrics: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
85
|
+
name: z.ZodString;
|
86
|
+
label: z.ZodString;
|
87
|
+
baseDimensionName: z.ZodString;
|
88
|
+
table: z.ZodString;
|
89
|
+
type: z.ZodEnum<[import("../../..").MetricType.AVERAGE, import("../../..").MetricType.COUNT, import("../../..").MetricType.COUNT_DISTINCT, import("../../..").MetricType.MAX, import("../../..").MetricType.MIN, import("../../..").MetricType.SUM, import("../../..").MetricType.PERCENTILE, import("../../..").MetricType.MEDIAN]>;
|
90
|
+
}, "strip", z.ZodTypeAny, {
|
91
|
+
name: string;
|
92
|
+
label: string;
|
93
|
+
table: string;
|
94
|
+
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;
|
95
|
+
baseDimensionName: string;
|
96
|
+
}, {
|
97
|
+
name: string;
|
98
|
+
label: string;
|
99
|
+
table: string;
|
100
|
+
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;
|
101
|
+
baseDimensionName: string;
|
102
|
+
}>, "many">>;
|
83
103
|
vizConfig: z.ZodObject<{
|
84
104
|
exploreName: z.ZodString;
|
85
105
|
xDimension: z.ZodString;
|
@@ -1266,6 +1286,14 @@ export declare const AgentToolCallArgsSchema: z.ZodDiscriminatedUnion<"type", [z
|
|
1266
1286
|
})[] | null;
|
1267
1287
|
type: "and" | "or";
|
1268
1288
|
} | null;
|
1289
|
+
customMetrics: {
|
1290
|
+
name: string;
|
1291
|
+
label: string;
|
1292
|
+
table: string;
|
1293
|
+
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;
|
1294
|
+
baseDimensionName: string;
|
1295
|
+
}[] | null;
|
1296
|
+
title: string;
|
1269
1297
|
vizConfig: {
|
1270
1298
|
limit: number | null;
|
1271
1299
|
exploreName: string;
|
@@ -1282,7 +1310,6 @@ export declare const AgentToolCallArgsSchema: z.ZodDiscriminatedUnion<"type", [z
|
|
1282
1310
|
stackBars: boolean | null;
|
1283
1311
|
xAxisType: "time" | "category";
|
1284
1312
|
};
|
1285
|
-
title: string;
|
1286
1313
|
followUpTools: (import("..").FollowUpTools.GENERATE_BAR_VIZ | import("..").FollowUpTools.GENERATE_TIME_SERIES_VIZ)[];
|
1287
1314
|
}, {
|
1288
1315
|
type: import("..").AiResultType.VERTICAL_BAR_RESULT;
|
@@ -1468,6 +1495,14 @@ export declare const AgentToolCallArgsSchema: z.ZodDiscriminatedUnion<"type", [z
|
|
1468
1495
|
})[] | null;
|
1469
1496
|
type: "and" | "or";
|
1470
1497
|
} | null;
|
1498
|
+
customMetrics: {
|
1499
|
+
name: string;
|
1500
|
+
label: string;
|
1501
|
+
table: string;
|
1502
|
+
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;
|
1503
|
+
baseDimensionName: string;
|
1504
|
+
}[] | null;
|
1505
|
+
title: string;
|
1471
1506
|
vizConfig: {
|
1472
1507
|
limit: number | null;
|
1473
1508
|
exploreName: string;
|
@@ -1484,11 +1519,29 @@ export declare const AgentToolCallArgsSchema: z.ZodDiscriminatedUnion<"type", [z
|
|
1484
1519
|
stackBars: boolean | null;
|
1485
1520
|
xAxisType: "time" | "category";
|
1486
1521
|
};
|
1487
|
-
title: string;
|
1488
1522
|
followUpTools: (import("..").FollowUpTools.GENERATE_BAR_VIZ | import("..").FollowUpTools.GENERATE_TIME_SERIES_VIZ)[];
|
1489
1523
|
}>, z.ZodObject<{
|
1490
1524
|
type: z.ZodLiteral<import("..").AiResultType.TABLE_RESULT>;
|
1491
1525
|
} & {
|
1526
|
+
customMetrics: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
1527
|
+
name: z.ZodString;
|
1528
|
+
label: z.ZodString;
|
1529
|
+
baseDimensionName: z.ZodString;
|
1530
|
+
table: z.ZodString;
|
1531
|
+
type: z.ZodEnum<[import("../../..").MetricType.AVERAGE, import("../../..").MetricType.COUNT, import("../../..").MetricType.COUNT_DISTINCT, import("../../..").MetricType.MAX, import("../../..").MetricType.MIN, import("../../..").MetricType.SUM, import("../../..").MetricType.PERCENTILE, import("../../..").MetricType.MEDIAN]>;
|
1532
|
+
}, "strip", z.ZodTypeAny, {
|
1533
|
+
name: string;
|
1534
|
+
label: string;
|
1535
|
+
table: string;
|
1536
|
+
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;
|
1537
|
+
baseDimensionName: string;
|
1538
|
+
}, {
|
1539
|
+
name: string;
|
1540
|
+
label: string;
|
1541
|
+
table: string;
|
1542
|
+
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;
|
1543
|
+
baseDimensionName: string;
|
1544
|
+
}>, "many">>;
|
1492
1545
|
vizConfig: z.ZodObject<{
|
1493
1546
|
exploreName: z.ZodString;
|
1494
1547
|
metrics: z.ZodArray<z.ZodString, "many">;
|
@@ -2660,6 +2713,14 @@ export declare const AgentToolCallArgsSchema: z.ZodDiscriminatedUnion<"type", [z
|
|
2660
2713
|
})[] | null;
|
2661
2714
|
type: "and" | "or";
|
2662
2715
|
} | null;
|
2716
|
+
customMetrics: {
|
2717
|
+
name: string;
|
2718
|
+
label: string;
|
2719
|
+
table: string;
|
2720
|
+
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;
|
2721
|
+
baseDimensionName: string;
|
2722
|
+
}[] | null;
|
2723
|
+
title: string;
|
2663
2724
|
vizConfig: {
|
2664
2725
|
dimensions: string[];
|
2665
2726
|
metrics: string[];
|
@@ -2671,7 +2732,6 @@ export declare const AgentToolCallArgsSchema: z.ZodDiscriminatedUnion<"type", [z
|
|
2671
2732
|
nullsFirst: boolean | null;
|
2672
2733
|
}[];
|
2673
2734
|
};
|
2674
|
-
title: string;
|
2675
2735
|
followUpTools: (import("..").FollowUpTools.GENERATE_BAR_VIZ | import("..").FollowUpTools.GENERATE_TIME_SERIES_VIZ)[];
|
2676
2736
|
}, {
|
2677
2737
|
type: import("..").AiResultType.TABLE_RESULT;
|
@@ -2857,6 +2917,14 @@ export declare const AgentToolCallArgsSchema: z.ZodDiscriminatedUnion<"type", [z
|
|
2857
2917
|
})[] | null;
|
2858
2918
|
type: "and" | "or";
|
2859
2919
|
} | null;
|
2920
|
+
customMetrics: {
|
2921
|
+
name: string;
|
2922
|
+
label: string;
|
2923
|
+
table: string;
|
2924
|
+
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;
|
2925
|
+
baseDimensionName: string;
|
2926
|
+
}[] | null;
|
2927
|
+
title: string;
|
2860
2928
|
vizConfig: {
|
2861
2929
|
dimensions: string[];
|
2862
2930
|
metrics: string[];
|
@@ -2868,11 +2936,29 @@ export declare const AgentToolCallArgsSchema: z.ZodDiscriminatedUnion<"type", [z
|
|
2868
2936
|
nullsFirst: boolean | null;
|
2869
2937
|
}[];
|
2870
2938
|
};
|
2871
|
-
title: string;
|
2872
2939
|
followUpTools: (import("..").FollowUpTools.GENERATE_BAR_VIZ | import("..").FollowUpTools.GENERATE_TIME_SERIES_VIZ)[];
|
2873
2940
|
}>, z.ZodObject<{
|
2874
2941
|
type: z.ZodLiteral<import("..").AiResultType.TIME_SERIES_RESULT>;
|
2875
2942
|
} & {
|
2943
|
+
customMetrics: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
2944
|
+
name: z.ZodString;
|
2945
|
+
label: z.ZodString;
|
2946
|
+
baseDimensionName: z.ZodString;
|
2947
|
+
table: z.ZodString;
|
2948
|
+
type: z.ZodEnum<[import("../../..").MetricType.AVERAGE, import("../../..").MetricType.COUNT, import("../../..").MetricType.COUNT_DISTINCT, import("../../..").MetricType.MAX, import("../../..").MetricType.MIN, import("../../..").MetricType.SUM, import("../../..").MetricType.PERCENTILE, import("../../..").MetricType.MEDIAN]>;
|
2949
|
+
}, "strip", z.ZodTypeAny, {
|
2950
|
+
name: string;
|
2951
|
+
label: string;
|
2952
|
+
table: string;
|
2953
|
+
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;
|
2954
|
+
baseDimensionName: string;
|
2955
|
+
}, {
|
2956
|
+
name: string;
|
2957
|
+
label: string;
|
2958
|
+
table: string;
|
2959
|
+
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;
|
2960
|
+
baseDimensionName: string;
|
2961
|
+
}>, "many">>;
|
2876
2962
|
vizConfig: z.ZodObject<{
|
2877
2963
|
exploreName: z.ZodString;
|
2878
2964
|
xDimension: z.ZodString;
|
@@ -4056,6 +4142,14 @@ export declare const AgentToolCallArgsSchema: z.ZodDiscriminatedUnion<"type", [z
|
|
4056
4142
|
})[] | null;
|
4057
4143
|
type: "and" | "or";
|
4058
4144
|
} | null;
|
4145
|
+
customMetrics: {
|
4146
|
+
name: string;
|
4147
|
+
label: string;
|
4148
|
+
table: string;
|
4149
|
+
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;
|
4150
|
+
baseDimensionName: string;
|
4151
|
+
}[] | null;
|
4152
|
+
title: string;
|
4059
4153
|
vizConfig: {
|
4060
4154
|
limit: number | null;
|
4061
4155
|
exploreName: string;
|
@@ -4071,7 +4165,6 @@ export declare const AgentToolCallArgsSchema: z.ZodDiscriminatedUnion<"type", [z
|
|
4071
4165
|
xAxisLabel: string | null;
|
4072
4166
|
yAxisLabel: string | null;
|
4073
4167
|
};
|
4074
|
-
title: string;
|
4075
4168
|
followUpTools: (import("..").FollowUpTools.GENERATE_BAR_VIZ | import("..").FollowUpTools.GENERATE_TIME_SERIES_VIZ)[];
|
4076
4169
|
}, {
|
4077
4170
|
type: import("..").AiResultType.TIME_SERIES_RESULT;
|
@@ -4257,6 +4350,14 @@ export declare const AgentToolCallArgsSchema: z.ZodDiscriminatedUnion<"type", [z
|
|
4257
4350
|
})[] | null;
|
4258
4351
|
type: "and" | "or";
|
4259
4352
|
} | null;
|
4353
|
+
customMetrics: {
|
4354
|
+
name: string;
|
4355
|
+
label: string;
|
4356
|
+
table: string;
|
4357
|
+
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;
|
4358
|
+
baseDimensionName: string;
|
4359
|
+
}[] | null;
|
4360
|
+
title: string;
|
4260
4361
|
vizConfig: {
|
4261
4362
|
limit: number | null;
|
4262
4363
|
exploreName: string;
|
@@ -4272,7 +4373,6 @@ export declare const AgentToolCallArgsSchema: z.ZodDiscriminatedUnion<"type", [z
|
|
4272
4373
|
xAxisLabel: string | null;
|
4273
4374
|
yAxisLabel: string | null;
|
4274
4375
|
};
|
4275
|
-
title: string;
|
4276
4376
|
followUpTools: (import("..").FollowUpTools.GENERATE_BAR_VIZ | import("..").FollowUpTools.GENERATE_TIME_SERIES_VIZ)[];
|
4277
4377
|
}>, z.ZodObject<{
|
4278
4378
|
type: z.ZodLiteral<"find_explores">;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/ee/AiAgent/schemas/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAWxB,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,kBAAkB,CAAC;AAEjC,eAAO,MAAM,uBAAuB
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/ee/AiAgent/schemas/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAWxB,cAAc,iBAAiB,CAAC;AAChC,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,kBAAkB,CAAC;AAEjC,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAQlC,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC"}
|
@@ -4,6 +4,7 @@ exports.AgentToolCallArgsSchema = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
5
5
|
const zod_1 = require("zod");
|
6
6
|
const tools_1 = require("./tools");
|
7
|
+
tslib_1.__exportStar(require("./customMetrics"), exports);
|
7
8
|
tslib_1.__exportStar(require("./filters"), exports);
|
8
9
|
tslib_1.__exportStar(require("./tools"), exports);
|
9
10
|
tslib_1.__exportStar(require("./visualizations"), exports);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/ee/AiAgent/schemas/index.ts"],"names":[],"mappings":";;;;AAAA,6BAAwB;AACxB,mCAQiB;AAEjB,oDAA0B;AAC1B,kDAAwB;AACxB,2DAAiC;AAEpB,QAAA,uBAAuB,GAAG,OAAC,CAAC,kBAAkB,CAAC,MAAM,EAAE;IAChE,gCAAwB;IACxB,oCAA4B;IAC5B,gCAAwB;IACxB,iCAAyB;IACzB,8BAAsB;IACtB,gCAAwB;IACxB,kCAA0B;CAC7B,CAAC,CAAC"}
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/ee/AiAgent/schemas/index.ts"],"names":[],"mappings":";;;;AAAA,6BAAwB;AACxB,mCAQiB;AAEjB,0DAAgC;AAChC,oDAA0B;AAC1B,kDAAwB;AACxB,2DAAiC;AAEpB,QAAA,uBAAuB,GAAG,OAAC,CAAC,kBAAkB,CAAC,MAAM,EAAE;IAChE,gCAAwB;IACxB,oCAA4B;IAC5B,gCAAwB;IACxB,iCAAyB;IACzB,8BAAsB;IACtB,gCAAwB;IACxB,kCAA0B;CAC7B,CAAC,CAAC"}
|
@@ -5,6 +5,25 @@ export declare const TOOL_TABLE_VIZ_DESCRIPTION = "Use this tool to query data t
|
|
5
5
|
export declare const toolTableVizArgsSchema: z.ZodObject<{
|
6
6
|
type: z.ZodLiteral<AiResultType.TABLE_RESULT>;
|
7
7
|
} & {
|
8
|
+
customMetrics: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
9
|
+
name: z.ZodString;
|
10
|
+
label: z.ZodString;
|
11
|
+
baseDimensionName: z.ZodString;
|
12
|
+
table: z.ZodString;
|
13
|
+
type: z.ZodEnum<[import("../../../..").MetricType.AVERAGE, import("../../../..").MetricType.COUNT, import("../../../..").MetricType.COUNT_DISTINCT, import("../../../..").MetricType.MAX, import("../../../..").MetricType.MIN, import("../../../..").MetricType.SUM, import("../../../..").MetricType.PERCENTILE, import("../../../..").MetricType.MEDIAN]>;
|
14
|
+
}, "strip", z.ZodTypeAny, {
|
15
|
+
name: string;
|
16
|
+
label: string;
|
17
|
+
table: string;
|
18
|
+
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;
|
19
|
+
baseDimensionName: string;
|
20
|
+
}, {
|
21
|
+
name: string;
|
22
|
+
label: string;
|
23
|
+
table: string;
|
24
|
+
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;
|
25
|
+
baseDimensionName: string;
|
26
|
+
}>, "many">>;
|
8
27
|
vizConfig: z.ZodObject<{
|
9
28
|
exploreName: z.ZodString;
|
10
29
|
metrics: z.ZodArray<z.ZodString, "many">;
|
@@ -1176,6 +1195,14 @@ export declare const toolTableVizArgsSchema: z.ZodObject<{
|
|
1176
1195
|
})[] | null;
|
1177
1196
|
type: "and" | "or";
|
1178
1197
|
} | null;
|
1198
|
+
customMetrics: {
|
1199
|
+
name: string;
|
1200
|
+
label: string;
|
1201
|
+
table: string;
|
1202
|
+
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;
|
1203
|
+
baseDimensionName: string;
|
1204
|
+
}[] | null;
|
1205
|
+
title: string;
|
1179
1206
|
vizConfig: {
|
1180
1207
|
dimensions: string[];
|
1181
1208
|
metrics: string[];
|
@@ -1187,7 +1214,6 @@ export declare const toolTableVizArgsSchema: z.ZodObject<{
|
|
1187
1214
|
nullsFirst: boolean | null;
|
1188
1215
|
}[];
|
1189
1216
|
};
|
1190
|
-
title: string;
|
1191
1217
|
followUpTools: (FollowUpTools.GENERATE_BAR_VIZ | FollowUpTools.GENERATE_TIME_SERIES_VIZ)[];
|
1192
1218
|
}, {
|
1193
1219
|
type: AiResultType.TABLE_RESULT;
|
@@ -1373,6 +1399,14 @@ export declare const toolTableVizArgsSchema: z.ZodObject<{
|
|
1373
1399
|
})[] | null;
|
1374
1400
|
type: "and" | "or";
|
1375
1401
|
} | null;
|
1402
|
+
customMetrics: {
|
1403
|
+
name: string;
|
1404
|
+
label: string;
|
1405
|
+
table: string;
|
1406
|
+
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;
|
1407
|
+
baseDimensionName: string;
|
1408
|
+
}[] | null;
|
1409
|
+
title: string;
|
1376
1410
|
vizConfig: {
|
1377
1411
|
dimensions: string[];
|
1378
1412
|
metrics: string[];
|
@@ -1384,13 +1418,11 @@ export declare const toolTableVizArgsSchema: z.ZodObject<{
|
|
1384
1418
|
nullsFirst: boolean | null;
|
1385
1419
|
}[];
|
1386
1420
|
};
|
1387
|
-
title: string;
|
1388
1421
|
followUpTools: (FollowUpTools.GENERATE_BAR_VIZ | FollowUpTools.GENERATE_TIME_SERIES_VIZ)[];
|
1389
1422
|
}>;
|
1390
1423
|
export type ToolTableVizArgs = z.infer<typeof toolTableVizArgsSchema>;
|
1391
1424
|
export declare const toolTableVizArgsSchemaTransformed: z.ZodEffects<z.ZodObject<{
|
1392
1425
|
type: z.ZodLiteral<AiResultType.TABLE_RESULT>;
|
1393
|
-
} & {
|
1394
1426
|
vizConfig: z.ZodObject<{
|
1395
1427
|
exploreName: z.ZodString;
|
1396
1428
|
metrics: z.ZodArray<z.ZodString, "many">;
|
@@ -2378,6 +2410,26 @@ export declare const toolTableVizArgsSchemaTransformed: z.ZodEffects<z.ZodObject
|
|
2378
2410
|
followUpTools: z.ZodArray<z.ZodUnion<[z.ZodLiteral<FollowUpTools.GENERATE_BAR_VIZ>, z.ZodLiteral<FollowUpTools.GENERATE_TIME_SERIES_VIZ>]>, "many">;
|
2379
2411
|
title: z.ZodString;
|
2380
2412
|
description: z.ZodString;
|
2413
|
+
} & {
|
2414
|
+
customMetrics: z.ZodDefault<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
2415
|
+
name: z.ZodString;
|
2416
|
+
label: z.ZodString;
|
2417
|
+
baseDimensionName: z.ZodString;
|
2418
|
+
table: z.ZodString;
|
2419
|
+
type: z.ZodEnum<[import("../../../..").MetricType.AVERAGE, import("../../../..").MetricType.COUNT, import("../../../..").MetricType.COUNT_DISTINCT, import("../../../..").MetricType.MAX, import("../../../..").MetricType.MIN, import("../../../..").MetricType.SUM, import("../../../..").MetricType.PERCENTILE, import("../../../..").MetricType.MEDIAN]>;
|
2420
|
+
}, "strip", z.ZodTypeAny, {
|
2421
|
+
name: string;
|
2422
|
+
label: string;
|
2423
|
+
table: string;
|
2424
|
+
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;
|
2425
|
+
baseDimensionName: string;
|
2426
|
+
}, {
|
2427
|
+
name: string;
|
2428
|
+
label: string;
|
2429
|
+
table: string;
|
2430
|
+
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;
|
2431
|
+
baseDimensionName: string;
|
2432
|
+
}>, "many">>>;
|
2381
2433
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
2382
2434
|
type: AiResultType.TABLE_RESULT;
|
2383
2435
|
description: string;
|
@@ -2562,6 +2614,14 @@ export declare const toolTableVizArgsSchemaTransformed: z.ZodEffects<z.ZodObject
|
|
2562
2614
|
})[] | null;
|
2563
2615
|
type: "and" | "or";
|
2564
2616
|
} | null;
|
2617
|
+
customMetrics: {
|
2618
|
+
name: string;
|
2619
|
+
label: string;
|
2620
|
+
table: string;
|
2621
|
+
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;
|
2622
|
+
baseDimensionName: string;
|
2623
|
+
}[] | null;
|
2624
|
+
title: string;
|
2565
2625
|
vizConfig: {
|
2566
2626
|
dimensions: string[];
|
2567
2627
|
metrics: string[];
|
@@ -2573,7 +2633,6 @@ export declare const toolTableVizArgsSchemaTransformed: z.ZodEffects<z.ZodObject
|
|
2573
2633
|
nullsFirst: boolean | null;
|
2574
2634
|
}[];
|
2575
2635
|
};
|
2576
|
-
title: string;
|
2577
2636
|
followUpTools: (FollowUpTools.GENERATE_BAR_VIZ | FollowUpTools.GENERATE_TIME_SERIES_VIZ)[];
|
2578
2637
|
}, {
|
2579
2638
|
type: AiResultType.TABLE_RESULT;
|
@@ -2759,6 +2818,7 @@ export declare const toolTableVizArgsSchemaTransformed: z.ZodEffects<z.ZodObject
|
|
2759
2818
|
})[] | null;
|
2760
2819
|
type: "and" | "or";
|
2761
2820
|
} | null;
|
2821
|
+
title: string;
|
2762
2822
|
vizConfig: {
|
2763
2823
|
dimensions: string[];
|
2764
2824
|
metrics: string[];
|
@@ -2770,12 +2830,26 @@ export declare const toolTableVizArgsSchemaTransformed: z.ZodEffects<z.ZodObject
|
|
2770
2830
|
nullsFirst: boolean | null;
|
2771
2831
|
}[];
|
2772
2832
|
};
|
2773
|
-
title: string;
|
2774
2833
|
followUpTools: (FollowUpTools.GENERATE_BAR_VIZ | FollowUpTools.GENERATE_TIME_SERIES_VIZ)[];
|
2834
|
+
customMetrics?: {
|
2835
|
+
name: string;
|
2836
|
+
label: string;
|
2837
|
+
table: string;
|
2838
|
+
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;
|
2839
|
+
baseDimensionName: string;
|
2840
|
+
}[] | null | undefined;
|
2775
2841
|
}>, {
|
2776
2842
|
filters: import("../../../..").Filters;
|
2777
2843
|
type: AiResultType.TABLE_RESULT;
|
2778
2844
|
description: string;
|
2845
|
+
customMetrics: {
|
2846
|
+
name: string;
|
2847
|
+
label: string;
|
2848
|
+
table: string;
|
2849
|
+
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;
|
2850
|
+
baseDimensionName: string;
|
2851
|
+
}[] | null;
|
2852
|
+
title: string;
|
2779
2853
|
vizConfig: {
|
2780
2854
|
dimensions: string[];
|
2781
2855
|
metrics: string[];
|
@@ -2787,7 +2861,6 @@ export declare const toolTableVizArgsSchemaTransformed: z.ZodEffects<z.ZodObject
|
|
2787
2861
|
nullsFirst: boolean | null;
|
2788
2862
|
}[];
|
2789
2863
|
};
|
2790
|
-
title: string;
|
2791
2864
|
followUpTools: (FollowUpTools.GENERATE_BAR_VIZ | FollowUpTools.GENERATE_TIME_SERIES_VIZ)[];
|
2792
2865
|
}, {
|
2793
2866
|
type: AiResultType.TABLE_RESULT;
|
@@ -2973,6 +3046,7 @@ export declare const toolTableVizArgsSchemaTransformed: z.ZodEffects<z.ZodObject
|
|
2973
3046
|
})[] | null;
|
2974
3047
|
type: "and" | "or";
|
2975
3048
|
} | null;
|
3049
|
+
title: string;
|
2976
3050
|
vizConfig: {
|
2977
3051
|
dimensions: string[];
|
2978
3052
|
metrics: string[];
|
@@ -2984,8 +3058,14 @@ export declare const toolTableVizArgsSchemaTransformed: z.ZodEffects<z.ZodObject
|
|
2984
3058
|
nullsFirst: boolean | null;
|
2985
3059
|
}[];
|
2986
3060
|
};
|
2987
|
-
title: string;
|
2988
3061
|
followUpTools: (FollowUpTools.GENERATE_BAR_VIZ | FollowUpTools.GENERATE_TIME_SERIES_VIZ)[];
|
3062
|
+
customMetrics?: {
|
3063
|
+
name: string;
|
3064
|
+
label: string;
|
3065
|
+
table: string;
|
3066
|
+
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;
|
3067
|
+
baseDimensionName: string;
|
3068
|
+
}[] | null | undefined;
|
2989
3069
|
}>;
|
2990
3070
|
export type ToolTableVizArgsTransformed = z.infer<typeof toolTableVizArgsSchemaTransformed>;
|
2991
3071
|
//# sourceMappingURL=toolTableVizArgs.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"toolTableVizArgs.d.ts","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/tools/toolTableVizArgs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAQvC,CAAC;AAER,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAC7C,OAAO,iCAAiC,CAC3C,CAAC"}
|
@@ -5,6 +5,7 @@ const tslib_1 = require("tslib");
|
|
5
5
|
const zod_1 = require("zod");
|
6
6
|
const followUpTools_1 = require("../../followUpTools");
|
7
7
|
const types_1 = require("../../types");
|
8
|
+
const customMetrics_1 = require("../customMetrics");
|
8
9
|
const filters_1 = require("../filters");
|
9
10
|
const toolSchemaBuilder_1 = require("../toolSchemaBuilder");
|
10
11
|
const visualizationMetadata_1 = tslib_1.__importDefault(require("../visualizationMetadata"));
|
@@ -13,6 +14,7 @@ exports.TOOL_TABLE_VIZ_DESCRIPTION = `Use this tool to query data to display in
|
|
13
14
|
exports.toolTableVizArgsSchema = (0, toolSchemaBuilder_1.createToolSchema)(types_1.AiResultType.TABLE_RESULT, exports.TOOL_TABLE_VIZ_DESCRIPTION)
|
14
15
|
.extend({
|
15
16
|
...visualizationMetadata_1.default.shape,
|
17
|
+
customMetrics: customMetrics_1.customMetricsSchema,
|
16
18
|
vizConfig: visualizations_1.tableVizConfigSchema,
|
17
19
|
filters: filters_1.filtersSchema
|
18
20
|
.nullable()
|
@@ -25,7 +27,12 @@ exports.toolTableVizArgsSchema = (0, toolSchemaBuilder_1.createToolSchema)(types
|
|
25
27
|
.describe('The actions the User can ask for after the AI has generated the table.'),
|
26
28
|
})
|
27
29
|
.build();
|
28
|
-
exports.toolTableVizArgsSchemaTransformed = exports.toolTableVizArgsSchema
|
30
|
+
exports.toolTableVizArgsSchemaTransformed = exports.toolTableVizArgsSchema
|
31
|
+
.extend({
|
32
|
+
// backwards compatibility for old viz configs without customMetrics
|
33
|
+
customMetrics: customMetrics_1.customMetricsSchema.default(null),
|
34
|
+
})
|
35
|
+
.transform((data) => ({
|
29
36
|
...data,
|
30
37
|
filters: filters_1.filtersSchemaTransformed.parse(data.filters),
|
31
38
|
}));
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"toolTableVizArgs.js","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/tools/toolTableVizArgs.ts"],"names":[],"mappings":";;;;AAAA,6BAAwB;AACxB,uDAAoD;AACpD,uCAA2C;AAC3C,wCAAqE;AACrE,4DAAwD;AACxD,6FAAmE;AACnE,sDAAyD;AAE5C,QAAA,0BAA0B,GAAG,uFAAuF,CAAC;AAErH,QAAA,sBAAsB,GAAG,IAAA,oCAAgB,EAClD,oBAAY,CAAC,YAAY,EACzB,kCAA0B,CAC7B;KACI,MAAM,CAAC;IACJ,GAAG,+BAA2B,CAAC,KAAK;IACpC,SAAS,EAAE,qCAAoB;IAC/B,OAAO,EAAE,uBAAa;SACjB,QAAQ,EAAE;SACV,QAAQ,CACL,oFAAoF,CACvF;IACL,aAAa,EAAE,OAAC;SACX,KAAK,CACF,OAAC,CAAC,KAAK,CAAC;QACJ,OAAC,CAAC,OAAO,CAAC,6BAAa,CAAC,gBAAgB,CAAC;QACzC,OAAC,CAAC,OAAO,CAAC,6BAAa,CAAC,wBAAwB,CAAC;KACpD,CAAC,CACL;SACA,QAAQ,CACL,wEAAwE,CAC3E;CACR,CAAC;KACD,KAAK,EAAE,CAAC;AAIA,QAAA,iCAAiC,
|
1
|
+
{"version":3,"file":"toolTableVizArgs.js","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/tools/toolTableVizArgs.ts"],"names":[],"mappings":";;;;AAAA,6BAAwB;AACxB,uDAAoD;AACpD,uCAA2C;AAC3C,oDAAuD;AACvD,wCAAqE;AACrE,4DAAwD;AACxD,6FAAmE;AACnE,sDAAyD;AAE5C,QAAA,0BAA0B,GAAG,uFAAuF,CAAC;AAErH,QAAA,sBAAsB,GAAG,IAAA,oCAAgB,EAClD,oBAAY,CAAC,YAAY,EACzB,kCAA0B,CAC7B;KACI,MAAM,CAAC;IACJ,GAAG,+BAA2B,CAAC,KAAK;IACpC,aAAa,EAAE,mCAAmB;IAClC,SAAS,EAAE,qCAAoB;IAC/B,OAAO,EAAE,uBAAa;SACjB,QAAQ,EAAE;SACV,QAAQ,CACL,oFAAoF,CACvF;IACL,aAAa,EAAE,OAAC;SACX,KAAK,CACF,OAAC,CAAC,KAAK,CAAC;QACJ,OAAC,CAAC,OAAO,CAAC,6BAAa,CAAC,gBAAgB,CAAC;QACzC,OAAC,CAAC,OAAO,CAAC,6BAAa,CAAC,wBAAwB,CAAC;KACpD,CAAC,CACL;SACA,QAAQ,CACL,wEAAwE,CAC3E;CACR,CAAC;KACD,KAAK,EAAE,CAAC;AAIA,QAAA,iCAAiC,GAAG,8BAAsB;KAClE,MAAM,CAAC;IACJ,oEAAoE;IACpE,aAAa,EAAE,mCAAmB,CAAC,OAAO,CAAC,IAAI,CAAC;CACnD,CAAC;KACD,SAAS,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;IAClB,GAAG,IAAI;IACP,OAAO,EAAE,kCAAwB,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC;CACxD,CAAC,CAAC,CAAC"}
|