@lightdash/common 0.1893.0 → 0.1894.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/index.d.ts +21 -15
- package/dist/cjs/ee/AiAgent/schemas/index.d.ts.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/toolSchemaBuilder.d.ts +14 -0
- package/dist/cjs/ee/AiAgent/schemas/toolSchemaBuilder.d.ts.map +1 -0
- package/dist/cjs/ee/AiAgent/schemas/toolSchemaBuilder.js +35 -0
- package/dist/cjs/ee/AiAgent/schemas/toolSchemaBuilder.js.map +1 -0
- package/dist/cjs/ee/AiAgent/schemas/tools/toolFindDashboardsArgs.d.ts +7 -2
- package/dist/cjs/ee/AiAgent/schemas/tools/toolFindDashboardsArgs.d.ts.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolFindDashboardsArgs.js +21 -9
- package/dist/cjs/ee/AiAgent/schemas/tools/toolFindDashboardsArgs.js.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolFindExploresArgs.d.ts +7 -2
- package/dist/cjs/ee/AiAgent/schemas/tools/toolFindExploresArgs.d.ts.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolFindExploresArgs.js +19 -9
- package/dist/cjs/ee/AiAgent/schemas/tools/toolFindExploresArgs.js.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolFindFieldsArgs.d.ts +7 -2
- package/dist/cjs/ee/AiAgent/schemas/tools/toolFindFieldsArgs.d.ts.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolFindFieldsArgs.js +20 -9
- package/dist/cjs/ee/AiAgent/schemas/tools/toolFindFieldsArgs.js.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolTableVizArgs.d.ts +9 -8
- package/dist/cjs/ee/AiAgent/schemas/tools/toolTableVizArgs.d.ts.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolTableVizArgs.js +8 -4
- package/dist/cjs/ee/AiAgent/schemas/tools/toolTableVizArgs.js.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolTimeSeriesArgs.d.ts +8 -7
- package/dist/cjs/ee/AiAgent/schemas/tools/toolTimeSeriesArgs.d.ts.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolTimeSeriesArgs.js +8 -4
- package/dist/cjs/ee/AiAgent/schemas/tools/toolTimeSeriesArgs.js.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolVerticalBarArgs.d.ts +9 -8
- package/dist/cjs/ee/AiAgent/schemas/tools/toolVerticalBarArgs.d.ts.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolVerticalBarArgs.js +8 -4
- package/dist/cjs/ee/AiAgent/schemas/tools/toolVerticalBarArgs.js.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/index.d.ts +21 -15
- package/dist/esm/ee/AiAgent/schemas/index.d.ts.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/toolSchemaBuilder.d.ts +14 -0
- package/dist/esm/ee/AiAgent/schemas/toolSchemaBuilder.d.ts.map +1 -0
- package/dist/esm/ee/AiAgent/schemas/toolSchemaBuilder.js +31 -0
- package/dist/esm/ee/AiAgent/schemas/toolSchemaBuilder.js.map +1 -0
- package/dist/esm/ee/AiAgent/schemas/tools/toolFindDashboardsArgs.d.ts +7 -2
- package/dist/esm/ee/AiAgent/schemas/tools/toolFindDashboardsArgs.d.ts.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/toolFindDashboardsArgs.js +20 -8
- package/dist/esm/ee/AiAgent/schemas/tools/toolFindDashboardsArgs.js.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/toolFindExploresArgs.d.ts +7 -2
- package/dist/esm/ee/AiAgent/schemas/tools/toolFindExploresArgs.d.ts.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/toolFindExploresArgs.js +18 -8
- package/dist/esm/ee/AiAgent/schemas/tools/toolFindExploresArgs.js.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/toolFindFieldsArgs.d.ts +7 -2
- package/dist/esm/ee/AiAgent/schemas/tools/toolFindFieldsArgs.d.ts.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/toolFindFieldsArgs.js +19 -8
- package/dist/esm/ee/AiAgent/schemas/tools/toolFindFieldsArgs.js.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/toolTableVizArgs.d.ts +9 -8
- package/dist/esm/ee/AiAgent/schemas/tools/toolTableVizArgs.d.ts.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/toolTableVizArgs.js +7 -3
- package/dist/esm/ee/AiAgent/schemas/tools/toolTableVizArgs.js.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/toolTimeSeriesArgs.d.ts +8 -7
- package/dist/esm/ee/AiAgent/schemas/tools/toolTimeSeriesArgs.d.ts.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/toolTimeSeriesArgs.js +7 -3
- package/dist/esm/ee/AiAgent/schemas/tools/toolTimeSeriesArgs.js.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/toolVerticalBarArgs.d.ts +9 -8
- package/dist/esm/ee/AiAgent/schemas/tools/toolVerticalBarArgs.d.ts.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/toolVerticalBarArgs.js +7 -3
- package/dist/esm/ee/AiAgent/schemas/tools/toolVerticalBarArgs.js.map +1 -1
- package/dist/tsconfig.types.tsbuildinfo +1 -1
- package/dist/types/ee/AiAgent/schemas/index.d.ts +21 -15
- package/dist/types/ee/AiAgent/schemas/index.d.ts.map +1 -1
- package/dist/types/ee/AiAgent/schemas/toolSchemaBuilder.d.ts +14 -0
- package/dist/types/ee/AiAgent/schemas/toolSchemaBuilder.d.ts.map +1 -0
- package/dist/types/ee/AiAgent/schemas/tools/toolFindDashboardsArgs.d.ts +7 -2
- package/dist/types/ee/AiAgent/schemas/tools/toolFindDashboardsArgs.d.ts.map +1 -1
- package/dist/types/ee/AiAgent/schemas/tools/toolFindExploresArgs.d.ts +7 -2
- package/dist/types/ee/AiAgent/schemas/tools/toolFindExploresArgs.d.ts.map +1 -1
- package/dist/types/ee/AiAgent/schemas/tools/toolFindFieldsArgs.d.ts +7 -2
- package/dist/types/ee/AiAgent/schemas/tools/toolFindFieldsArgs.d.ts.map +1 -1
- package/dist/types/ee/AiAgent/schemas/tools/toolTableVizArgs.d.ts +9 -8
- package/dist/types/ee/AiAgent/schemas/tools/toolTableVizArgs.d.ts.map +1 -1
- package/dist/types/ee/AiAgent/schemas/tools/toolTimeSeriesArgs.d.ts +8 -7
- package/dist/types/ee/AiAgent/schemas/tools/toolTimeSeriesArgs.d.ts.map +1 -1
- package/dist/types/ee/AiAgent/schemas/tools/toolVerticalBarArgs.d.ts +9 -8
- package/dist/types/ee/AiAgent/schemas/tools/toolVerticalBarArgs.d.ts.map +1 -1
- package/package.json +1 -1
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"toolTimeSeriesArgs.d.ts","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/tools/toolTimeSeriesArgs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;
|
1
|
+
{"version":3,"file":"toolTimeSeriesArgs.d.ts","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/tools/toolTimeSeriesArgs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAM3C,eAAO,MAAM,gCAAgC,mDAAmD,CAAC;AAEjG,eAAO,MAAM,w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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAWzC,CAAC;AAER,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CAC/C,OAAO,mCAAmC,CAC7C,CAAC"}
|
@@ -1,15 +1,18 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.toolTimeSeriesArgsSchemaTransformed = exports.toolTimeSeriesArgsSchema = void 0;
|
3
|
+
exports.toolTimeSeriesArgsSchemaTransformed = exports.toolTimeSeriesArgsSchema = exports.TOOL_TIME_SERIES_VIZ_DESCRIPTION = void 0;
|
4
4
|
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
8
|
const filters_1 = require("../filters");
|
9
|
+
const toolSchemaBuilder_1 = require("../toolSchemaBuilder");
|
9
10
|
const visualizationMetadata_1 = tslib_1.__importDefault(require("../visualizationMetadata"));
|
10
11
|
const timeSeriesViz_1 = require("../visualizations/timeSeriesViz");
|
11
|
-
exports.
|
12
|
-
|
12
|
+
exports.TOOL_TIME_SERIES_VIZ_DESCRIPTION = `Use this tool to generate a Time Series Chart.`;
|
13
|
+
exports.toolTimeSeriesArgsSchema = (0, toolSchemaBuilder_1.createToolSchema)(types_1.AiResultType.TIME_SERIES_RESULT, exports.TOOL_TIME_SERIES_VIZ_DESCRIPTION)
|
14
|
+
.extend({
|
15
|
+
...visualizationMetadata_1.default.shape,
|
13
16
|
vizConfig: timeSeriesViz_1.timeSeriesMetricVizConfigSchema,
|
14
17
|
filters: filters_1.filtersSchema
|
15
18
|
.nullable()
|
@@ -20,7 +23,8 @@ exports.toolTimeSeriesArgsSchema = visualizationMetadata_1.default.extend({
|
|
20
23
|
zod_1.z.literal(followUpTools_1.FollowUpTools.GENERATE_TIME_SERIES_VIZ),
|
21
24
|
]))
|
22
25
|
.describe(`The actions the User can ask for after the AI has generated the chart. NEVER include ${followUpTools_1.FollowUpTools.GENERATE_TIME_SERIES_VIZ} in this list.`),
|
23
|
-
})
|
26
|
+
})
|
27
|
+
.build();
|
24
28
|
exports.toolTimeSeriesArgsSchemaTransformed = exports.toolTimeSeriesArgsSchema
|
25
29
|
.extend({
|
26
30
|
// backwards compatibility for old viz configs
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"toolTimeSeriesArgs.js","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/tools/toolTimeSeriesArgs.ts"],"names":[],"mappings":";;;;AAAA,6BAAwB;AACxB,uDAAoD;AACpD,uCAA2C;AAC3C,wCAAqE;AACrE,6FAAmE;AACnE,mEAAkF;AAErE,QAAA,
|
1
|
+
{"version":3,"file":"toolTimeSeriesArgs.js","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/tools/toolTimeSeriesArgs.ts"],"names":[],"mappings":";;;;AAAA,6BAAwB;AACxB,uDAAoD;AACpD,uCAA2C;AAC3C,wCAAqE;AACrE,4DAAwD;AACxD,6FAAmE;AACnE,mEAAkF;AAErE,QAAA,gCAAgC,GAAG,gDAAgD,CAAC;AAEpF,QAAA,wBAAwB,GAAG,IAAA,oCAAgB,EACpD,oBAAY,CAAC,kBAAkB,EAC/B,wCAAgC,CACnC;KACI,MAAM,CAAC;IACJ,GAAG,+BAA2B,CAAC,KAAK;IACpC,SAAS,EAAE,+CAA+B;IAC1C,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,wFAAwF,6BAAa,CAAC,wBAAwB,gBAAgB,CACjJ;CACR,CAAC;KACD,KAAK,EAAE,CAAC;AAIA,QAAA,mCAAmC,GAAG,gCAAwB;KACtE,MAAM,CAAC;IACJ,8CAA8C;IAC9C,SAAS,EAAE,+CAA+B,CAAC,MAAM,CAAC;QAC9C,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;QAClC,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;KACrC,CAAC;CACL,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"}
|
@@ -1,11 +1,10 @@
|
|
1
1
|
import { z } from 'zod';
|
2
2
|
import { FollowUpTools } from '../../followUpTools';
|
3
3
|
import { AiResultType } from '../../types';
|
4
|
+
export declare const TOOL_VERTICAL_BAR_VIZ_DESCRIPTION = "Use this tool to generate a Bar Chart Visualization.";
|
4
5
|
export declare const toolVerticalBarArgsSchema: z.ZodObject<{
|
5
|
-
title: z.ZodString;
|
6
|
-
description: z.ZodString;
|
7
|
-
} & {
|
8
6
|
type: z.ZodLiteral<AiResultType.VERTICAL_BAR_RESULT>;
|
7
|
+
} & {
|
9
8
|
vizConfig: z.ZodObject<{
|
10
9
|
exploreName: z.ZodString;
|
11
10
|
xDimension: z.ZodString;
|
@@ -1001,7 +1000,9 @@ export declare const toolVerticalBarArgsSchema: z.ZodObject<{
|
|
1001
1000
|
})[] | null;
|
1002
1001
|
}>>;
|
1003
1002
|
followUpTools: z.ZodArray<z.ZodUnion<[z.ZodLiteral<FollowUpTools.GENERATE_BAR_VIZ>, z.ZodLiteral<FollowUpTools.GENERATE_TIME_SERIES_VIZ>]>, "many">;
|
1004
|
-
|
1003
|
+
title: z.ZodString;
|
1004
|
+
description: z.ZodString;
|
1005
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
1005
1006
|
type: AiResultType.VERTICAL_BAR_RESULT;
|
1006
1007
|
filters: {
|
1007
1008
|
type: "and" | "or";
|
@@ -1406,10 +1407,8 @@ export declare const toolVerticalBarArgsSchema: z.ZodObject<{
|
|
1406
1407
|
}>;
|
1407
1408
|
export type ToolVerticalBarArgs = z.infer<typeof toolVerticalBarArgsSchema>;
|
1408
1409
|
export declare const toolVerticalBarArgsSchemaTransformed: z.ZodEffects<z.ZodObject<{
|
1409
|
-
title: z.ZodString;
|
1410
|
-
description: z.ZodString;
|
1411
|
-
} & {
|
1412
1410
|
type: z.ZodLiteral<AiResultType.VERTICAL_BAR_RESULT>;
|
1411
|
+
} & {
|
1413
1412
|
vizConfig: z.ZodObject<{
|
1414
1413
|
exploreName: z.ZodString;
|
1415
1414
|
xDimension: z.ZodString;
|
@@ -2405,7 +2404,9 @@ export declare const toolVerticalBarArgsSchemaTransformed: z.ZodEffects<z.ZodObj
|
|
2405
2404
|
})[] | null;
|
2406
2405
|
}>>;
|
2407
2406
|
followUpTools: z.ZodArray<z.ZodUnion<[z.ZodLiteral<FollowUpTools.GENERATE_BAR_VIZ>, z.ZodLiteral<FollowUpTools.GENERATE_TIME_SERIES_VIZ>]>, "many">;
|
2408
|
-
|
2407
|
+
title: z.ZodString;
|
2408
|
+
description: z.ZodString;
|
2409
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
2409
2410
|
type: AiResultType.VERTICAL_BAR_RESULT;
|
2410
2411
|
filters: {
|
2411
2412
|
type: "and" | "or";
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"toolVerticalBarArgs.d.ts","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/tools/toolVerticalBarArgs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,YAAY,EAA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAI1C,CAAC;AAER,MAAM,MAAM,8BAA8B,GAAG,CAAC,CAAC,KAAK,CAChD,OAAO,oCAAoC,CAC9C,CAAC"}
|
@@ -1,15 +1,18 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.toolVerticalBarArgsSchemaTransformed = exports.toolVerticalBarArgsSchema = void 0;
|
3
|
+
exports.toolVerticalBarArgsSchemaTransformed = exports.toolVerticalBarArgsSchema = exports.TOOL_VERTICAL_BAR_VIZ_DESCRIPTION = void 0;
|
4
4
|
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
8
|
const filters_1 = require("../filters");
|
9
|
+
const toolSchemaBuilder_1 = require("../toolSchemaBuilder");
|
9
10
|
const visualizationMetadata_1 = tslib_1.__importDefault(require("../visualizationMetadata"));
|
10
11
|
const visualizations_1 = require("../visualizations");
|
11
|
-
exports.
|
12
|
-
|
12
|
+
exports.TOOL_VERTICAL_BAR_VIZ_DESCRIPTION = `Use this tool to generate a Bar Chart Visualization.`;
|
13
|
+
exports.toolVerticalBarArgsSchema = (0, toolSchemaBuilder_1.createToolSchema)(types_1.AiResultType.VERTICAL_BAR_RESULT, exports.TOOL_VERTICAL_BAR_VIZ_DESCRIPTION)
|
14
|
+
.extend({
|
15
|
+
...visualizationMetadata_1.default.shape,
|
13
16
|
vizConfig: visualizations_1.verticalBarMetricVizConfigSchema,
|
14
17
|
filters: filters_1.filtersSchema
|
15
18
|
.nullable()
|
@@ -20,7 +23,8 @@ exports.toolVerticalBarArgsSchema = visualizationMetadata_1.default.extend({
|
|
20
23
|
zod_1.z.literal(followUpTools_1.FollowUpTools.GENERATE_TIME_SERIES_VIZ),
|
21
24
|
]))
|
22
25
|
.describe(`The actions the User can ask for after the AI has generated the chart. NEVER include ${followUpTools_1.FollowUpTools.GENERATE_BAR_VIZ} in this list.`),
|
23
|
-
})
|
26
|
+
})
|
27
|
+
.build();
|
24
28
|
exports.toolVerticalBarArgsSchemaTransformed = exports.toolVerticalBarArgsSchema.transform((data) => ({
|
25
29
|
...data,
|
26
30
|
filters: filters_1.filtersSchemaTransformed.parse(data.filters),
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"toolVerticalBarArgs.js","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/tools/toolVerticalBarArgs.ts"],"names":[],"mappings":";;;;AAAA,6BAAwB;AACxB,uDAAoD;AACpD,uCAA2C;AAC3C,wCAAqE;AACrE,6FAAmE;AACnE,sDAAqE;AAExD,QAAA,
|
1
|
+
{"version":3,"file":"toolVerticalBarArgs.js","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/tools/toolVerticalBarArgs.ts"],"names":[],"mappings":";;;;AAAA,6BAAwB;AACxB,uDAAoD;AACpD,uCAA2C;AAC3C,wCAAqE;AACrE,4DAAwD;AACxD,6FAAmE;AACnE,sDAAqE;AAExD,QAAA,iCAAiC,GAAG,sDAAsD,CAAC;AAE3F,QAAA,yBAAyB,GAAG,IAAA,oCAAgB,EACrD,oBAAY,CAAC,mBAAmB,EAChC,yCAAiC,CACpC;KACI,MAAM,CAAC;IACJ,GAAG,+BAA2B,CAAC,KAAK;IACpC,SAAS,EAAE,iDAAgC;IAC3C,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,wFAAwF,6BAAa,CAAC,gBAAgB,gBAAgB,CACzI;CACR,CAAC;KACD,KAAK,EAAE,CAAC;AAIA,QAAA,oCAAoC,GAC7C,iCAAyB,CAAC,SAAS,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;IAC3C,GAAG,IAAI;IACP,OAAO,EAAE,kCAAwB,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC;CACxD,CAAC,CAAC,CAAC"}
|
@@ -26,6 +26,7 @@ export declare const AgentToolCallArgsSchema: z.ZodDiscriminatedUnion<"type", [z
|
|
26
26
|
}[];
|
27
27
|
}>, z.ZodObject<{
|
28
28
|
type: z.ZodLiteral<"find_dashboards">;
|
29
|
+
} & {
|
29
30
|
dashboardSearchQueries: z.ZodArray<z.ZodObject<{
|
30
31
|
label: z.ZodString;
|
31
32
|
}, "strip", z.ZodTypeAny, {
|
@@ -33,8 +34,9 @@ export declare const AgentToolCallArgsSchema: z.ZodDiscriminatedUnion<"type", [z
|
|
33
34
|
}, {
|
34
35
|
label: string;
|
35
36
|
}>, "many">;
|
37
|
+
} & {
|
36
38
|
page: z.ZodNullable<z.ZodNumber>;
|
37
|
-
},
|
39
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
38
40
|
type: "find_dashboards";
|
39
41
|
page: number | null;
|
40
42
|
dashboardSearchQueries: {
|
@@ -48,6 +50,7 @@ export declare const AgentToolCallArgsSchema: z.ZodDiscriminatedUnion<"type", [z
|
|
48
50
|
}[];
|
49
51
|
}>, z.ZodObject<{
|
50
52
|
type: z.ZodLiteral<"find_fields">;
|
53
|
+
} & {
|
51
54
|
table: z.ZodString;
|
52
55
|
fieldSearchQueries: z.ZodArray<z.ZodObject<{
|
53
56
|
label: z.ZodString;
|
@@ -56,8 +59,9 @@ export declare const AgentToolCallArgsSchema: z.ZodDiscriminatedUnion<"type", [z
|
|
56
59
|
}, {
|
57
60
|
label: string;
|
58
61
|
}>, "many">;
|
62
|
+
} & {
|
59
63
|
page: z.ZodNullable<z.ZodNumber>;
|
60
|
-
},
|
64
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
61
65
|
type: "find_fields";
|
62
66
|
table: string;
|
63
67
|
page: number | null;
|
@@ -72,10 +76,8 @@ export declare const AgentToolCallArgsSchema: z.ZodDiscriminatedUnion<"type", [z
|
|
72
76
|
label: string;
|
73
77
|
}[];
|
74
78
|
}>, z.ZodObject<{
|
75
|
-
title: z.ZodString;
|
76
|
-
description: z.ZodString;
|
77
|
-
} & {
|
78
79
|
type: z.ZodLiteral<import("..").AiResultType.VERTICAL_BAR_RESULT>;
|
80
|
+
} & {
|
79
81
|
vizConfig: z.ZodObject<{
|
80
82
|
exploreName: z.ZodString;
|
81
83
|
xDimension: z.ZodString;
|
@@ -1071,7 +1073,9 @@ export declare const AgentToolCallArgsSchema: z.ZodDiscriminatedUnion<"type", [z
|
|
1071
1073
|
})[] | null;
|
1072
1074
|
}>>;
|
1073
1075
|
followUpTools: z.ZodArray<z.ZodUnion<[z.ZodLiteral<import("..").FollowUpTools.GENERATE_BAR_VIZ>, z.ZodLiteral<import("..").FollowUpTools.GENERATE_TIME_SERIES_VIZ>]>, "many">;
|
1074
|
-
|
1076
|
+
title: z.ZodString;
|
1077
|
+
description: z.ZodString;
|
1078
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
1075
1079
|
type: import("..").AiResultType.VERTICAL_BAR_RESULT;
|
1076
1080
|
filters: {
|
1077
1081
|
type: "and" | "or";
|
@@ -1474,10 +1478,8 @@ export declare const AgentToolCallArgsSchema: z.ZodDiscriminatedUnion<"type", [z
|
|
1474
1478
|
};
|
1475
1479
|
followUpTools: (import("..").FollowUpTools.GENERATE_BAR_VIZ | import("..").FollowUpTools.GENERATE_TIME_SERIES_VIZ)[];
|
1476
1480
|
}>, z.ZodObject<{
|
1477
|
-
title: z.ZodString;
|
1478
|
-
description: z.ZodString;
|
1479
|
-
} & {
|
1480
1481
|
type: z.ZodLiteral<import("..").AiResultType.TABLE_RESULT>;
|
1482
|
+
} & {
|
1481
1483
|
vizConfig: z.ZodObject<{
|
1482
1484
|
exploreName: z.ZodString;
|
1483
1485
|
metrics: z.ZodArray<z.ZodString, "many">;
|
@@ -2458,7 +2460,9 @@ export declare const AgentToolCallArgsSchema: z.ZodDiscriminatedUnion<"type", [z
|
|
2458
2460
|
})[] | null;
|
2459
2461
|
}>>;
|
2460
2462
|
followUpTools: z.ZodArray<z.ZodUnion<[z.ZodLiteral<import("..").FollowUpTools.GENERATE_BAR_VIZ>, z.ZodLiteral<import("..").FollowUpTools.GENERATE_TIME_SERIES_VIZ>]>, "many">;
|
2461
|
-
|
2463
|
+
title: z.ZodString;
|
2464
|
+
description: z.ZodString;
|
2465
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
2462
2466
|
type: import("..").AiResultType.TABLE_RESULT;
|
2463
2467
|
filters: {
|
2464
2468
|
type: "and" | "or";
|
@@ -2851,10 +2855,8 @@ export declare const AgentToolCallArgsSchema: z.ZodDiscriminatedUnion<"type", [z
|
|
2851
2855
|
};
|
2852
2856
|
followUpTools: (import("..").FollowUpTools.GENERATE_BAR_VIZ | import("..").FollowUpTools.GENERATE_TIME_SERIES_VIZ)[];
|
2853
2857
|
}>, z.ZodObject<{
|
2854
|
-
title: z.ZodString;
|
2855
|
-
description: z.ZodString;
|
2856
|
-
} & {
|
2857
2858
|
type: z.ZodLiteral<import("..").AiResultType.TIME_SERIES_RESULT>;
|
2859
|
+
} & {
|
2858
2860
|
vizConfig: z.ZodObject<{
|
2859
2861
|
exploreName: z.ZodString;
|
2860
2862
|
xDimension: z.ZodString;
|
@@ -3847,7 +3849,9 @@ export declare const AgentToolCallArgsSchema: z.ZodDiscriminatedUnion<"type", [z
|
|
3847
3849
|
})[] | null;
|
3848
3850
|
}>>;
|
3849
3851
|
followUpTools: z.ZodArray<z.ZodUnion<[z.ZodLiteral<import("..").FollowUpTools.GENERATE_BAR_VIZ>, z.ZodLiteral<import("..").FollowUpTools.GENERATE_TIME_SERIES_VIZ>]>, "many">;
|
3850
|
-
|
3852
|
+
title: z.ZodString;
|
3853
|
+
description: z.ZodString;
|
3854
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
3851
3855
|
type: import("..").AiResultType.TIME_SERIES_RESULT;
|
3852
3856
|
filters: {
|
3853
3857
|
type: "and" | "or";
|
@@ -4249,9 +4253,11 @@ export declare const AgentToolCallArgsSchema: z.ZodDiscriminatedUnion<"type", [z
|
|
4249
4253
|
followUpTools: (import("..").FollowUpTools.GENERATE_BAR_VIZ | import("..").FollowUpTools.GENERATE_TIME_SERIES_VIZ)[];
|
4250
4254
|
}>, z.ZodObject<{
|
4251
4255
|
type: z.ZodLiteral<"find_explores">;
|
4256
|
+
} & {
|
4252
4257
|
exploreName: z.ZodNullable<z.ZodString>;
|
4258
|
+
} & {
|
4253
4259
|
page: z.ZodNullable<z.ZodNumber>;
|
4254
|
-
},
|
4260
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
4255
4261
|
type: "find_explores";
|
4256
4262
|
exploreName: string | null;
|
4257
4263
|
page: number | null;
|
@@ -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;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAQlC,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC"}
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import { z } from 'zod';
|
2
|
+
type ToolSchemaBuilder<$Schema extends z.ZodRawShape = z.ZodRawShape> = {
|
3
|
+
extend: <$Fields extends z.ZodRawShape>(fields: $Fields) => ToolSchemaBuilder<$Schema & $Fields>;
|
4
|
+
withPagination: () => ToolSchemaBuilder<$Schema & {
|
5
|
+
page: z.ZodNullable<z.ZodNumber>;
|
6
|
+
}>;
|
7
|
+
build: () => z.ZodObject<$Schema>;
|
8
|
+
schema: z.ZodObject<$Schema>;
|
9
|
+
};
|
10
|
+
export declare const createToolSchema: <$Type extends string, $Description extends string>(type: $Type, description: $Description) => ToolSchemaBuilder<{
|
11
|
+
type: z.ZodLiteral<$Type>;
|
12
|
+
}>;
|
13
|
+
export {};
|
14
|
+
//# sourceMappingURL=toolSchemaBuilder.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"toolSchemaBuilder.d.ts","sourceRoot":"","sources":["../../../../../src/ee/AiAgent/schemas/toolSchemaBuilder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,KAAK,iBAAiB,CAAC,OAAO,SAAS,CAAC,CAAC,WAAW,GAAG,CAAC,CAAC,WAAW,IAAI;IACpE,MAAM,EAAE,CAAC,OAAO,SAAS,CAAC,CAAC,WAAW,EAClC,MAAM,EAAE,OAAO,KACd,iBAAiB,CAAC,OAAO,GAAG,OAAO,CAAC,CAAC;IAC1C,cAAc,EAAE,MAAM,iBAAiB,CACnC,OAAO,GAAG;QAAE,IAAI,EAAE,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC,CAAA;KAAE,CACjD,CAAC;IACF,KAAK,EAAE,MAAM,CAAC,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC;IAClC,MAAM,EAAE,CAAC,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC;CAChC,CAAC;AAsCF,eAAO,MAAM,gBAAgB,GACzB,KAAK,SAAS,MAAM,EACpB,YAAY,SAAS,MAAM,QAGrB,KAAK,eAEE,YAAY;;EAIxB,CAAC"}
|
@@ -0,0 +1,31 @@
|
|
1
|
+
import { z } from 'zod';
|
2
|
+
const toolSchemaBuilder = (schema) => ({
|
3
|
+
/**
|
4
|
+
* Extends the basic schema with the given fields
|
5
|
+
*/
|
6
|
+
extend: (fields) => toolSchemaBuilder(schema.extend(fields)),
|
7
|
+
/**
|
8
|
+
* Adds a page number to the schema, this is useful for tools that rely on pagination
|
9
|
+
*/
|
10
|
+
withPagination: () => toolSchemaBuilder(schema.extend({
|
11
|
+
page: z
|
12
|
+
.number()
|
13
|
+
.positive()
|
14
|
+
.nullable()
|
15
|
+
.describe('Use this to paginate through the results'),
|
16
|
+
})),
|
17
|
+
/**
|
18
|
+
* Builds the schema
|
19
|
+
*/
|
20
|
+
build: () => schema,
|
21
|
+
/**
|
22
|
+
* Returns the zod schema so far
|
23
|
+
*/
|
24
|
+
schema,
|
25
|
+
});
|
26
|
+
export const createToolSchema = (
|
27
|
+
/** The type of the tool. This will be used as differentiator for the union with other tool schemas */
|
28
|
+
type,
|
29
|
+
/** Description of the tool. This will be used to help the LLM to understand the tool and its capabilities. Be as clear and concise as possible. */
|
30
|
+
description) => toolSchemaBuilder(z.object({ type: z.literal(type) }).describe(description));
|
31
|
+
//# sourceMappingURL=toolSchemaBuilder.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"toolSchemaBuilder.js","sourceRoot":"","sources":["../../../../../src/ee/AiAgent/schemas/toolSchemaBuilder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAaxB,MAAM,iBAAiB,GAAG,CACtB,MAA4B,EACF,EAAE,CAAC,CAAC;IAC9B;;OAEG;IACH,MAAM,EAAE,CAAgC,MAAe,EAAE,EAAE,CACvD,iBAAiB,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAEtC;IAEL;;OAEG;IACH,cAAc,EAAE,GAAG,EAAE,CACjB,iBAAiB,CACb,MAAM,CAAC,MAAM,CAAC;QACV,IAAI,EAAE,CAAC;aACF,MAAM,EAAE;aACR,QAAQ,EAAE;aACV,QAAQ,EAAE;aACV,QAAQ,CAAC,0CAA0C,CAAC;KAC5D,CAAC,CACgE;IAE1E;;OAEG;IACH,KAAK,EAAE,GAAG,EAAE,CAAC,MAAM;IAEnB;;OAEG;IACH,MAAM;CACT,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,gBAAgB,GAAG;AAI5B,uGAAuG;AACvG,IAAW;AACX,mJAAmJ;AACnJ,WAAyB,EAC3B,EAAE,CACA,iBAAiB,CACb,CAAC,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,QAAQ,CAAC,WAAW,CAAC,CAC5D,CAAC"}
|
@@ -1,6 +1,8 @@
|
|
1
1
|
import { z } from 'zod';
|
2
|
+
export declare const TOOL_FIND_DASHBOARDS_DESCRIPTION = "Tool: \"findDashboards\"\nPurpose:\nFinds dashboards by name or description within a project, returning detailed info about each.\n\nUsage tips:\n- IMPORTANT: Pass the user's full query or relevant portion directly (e.g., \"revenue based on campaigns\" instead of just \"campaigns\")\n- The search engine understands natural language and context - more words provide better results\n- You can provide multiple search queries to search for different dashboard topics simultaneously\n- If results aren't relevant, retry with the full user query or more specific terms\n- Results are paginated \u2014 use the page parameter to get more results if needed\n- Dashboards with validation errors will be deprioritized\n- Returns dashboard URLs when available \n- It doesn't provide a dashboard summary yet, so don't suggest this capability\n";
|
2
3
|
export declare const toolFindDashboardsArgsSchema: z.ZodObject<{
|
3
4
|
type: z.ZodLiteral<"find_dashboards">;
|
5
|
+
} & {
|
4
6
|
dashboardSearchQueries: z.ZodArray<z.ZodObject<{
|
5
7
|
label: z.ZodString;
|
6
8
|
}, "strip", z.ZodTypeAny, {
|
@@ -8,8 +10,9 @@ export declare const toolFindDashboardsArgsSchema: z.ZodObject<{
|
|
8
10
|
}, {
|
9
11
|
label: string;
|
10
12
|
}>, "many">;
|
13
|
+
} & {
|
11
14
|
page: z.ZodNullable<z.ZodNumber>;
|
12
|
-
},
|
15
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
13
16
|
type: "find_dashboards";
|
14
17
|
page: number | null;
|
15
18
|
dashboardSearchQueries: {
|
@@ -25,6 +28,7 @@ export declare const toolFindDashboardsArgsSchema: z.ZodObject<{
|
|
25
28
|
export type ToolFindDashboardsArgs = z.infer<typeof toolFindDashboardsArgsSchema>;
|
26
29
|
export declare const toolFindDashboardsArgsSchemaTransformed: z.ZodObject<{
|
27
30
|
type: z.ZodLiteral<"find_dashboards">;
|
31
|
+
} & {
|
28
32
|
dashboardSearchQueries: z.ZodArray<z.ZodObject<{
|
29
33
|
label: z.ZodString;
|
30
34
|
}, "strip", z.ZodTypeAny, {
|
@@ -32,8 +36,9 @@ export declare const toolFindDashboardsArgsSchemaTransformed: z.ZodObject<{
|
|
32
36
|
}, {
|
33
37
|
label: string;
|
34
38
|
}>, "many">;
|
39
|
+
} & {
|
35
40
|
page: z.ZodNullable<z.ZodNumber>;
|
36
|
-
},
|
41
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
37
42
|
type: "find_dashboards";
|
38
43
|
page: number | null;
|
39
44
|
dashboardSearchQueries: {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"toolFindDashboardsArgs.d.ts","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/tools/toolFindDashboardsArgs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
1
|
+
{"version":3,"file":"toolFindDashboardsArgs.d.ts","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/tools/toolFindDashboardsArgs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,gCAAgC,s0BAa5C,CAAC;AAEF,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;EAgB7B,CAAC;AAEb,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CACxC,OAAO,4BAA4B,CACtC,CAAC;AAEF,eAAO,MAAM,uCAAuC;;;;;;;;;;;;;;;;;;;;;;;;EACpB,CAAC;AAEjC,MAAM,MAAM,iCAAiC,GAAG,sBAAsB,CAAC"}
|
@@ -1,16 +1,28 @@
|
|
1
1
|
import { z } from 'zod';
|
2
|
-
|
3
|
-
|
2
|
+
import { createToolSchema } from '../toolSchemaBuilder';
|
3
|
+
export const TOOL_FIND_DASHBOARDS_DESCRIPTION = `Tool: "findDashboards"
|
4
|
+
Purpose:
|
5
|
+
Finds dashboards by name or description within a project, returning detailed info about each.
|
6
|
+
|
7
|
+
Usage tips:
|
8
|
+
- IMPORTANT: Pass the user's full query or relevant portion directly (e.g., "revenue based on campaigns" instead of just "campaigns")
|
9
|
+
- The search engine understands natural language and context - more words provide better results
|
10
|
+
- You can provide multiple search queries to search for different dashboard topics simultaneously
|
11
|
+
- If results aren't relevant, retry with the full user query or more specific terms
|
12
|
+
- Results are paginated — use the page parameter to get more results if needed
|
13
|
+
- Dashboards with validation errors will be deprioritized
|
14
|
+
- Returns dashboard URLs when available
|
15
|
+
- It doesn't provide a dashboard summary yet, so don't suggest this capability
|
16
|
+
`;
|
17
|
+
export const toolFindDashboardsArgsSchema = createToolSchema('find_dashboards', TOOL_FIND_DASHBOARDS_DESCRIPTION)
|
18
|
+
.extend({
|
4
19
|
dashboardSearchQueries: z.array(z.object({
|
5
20
|
label: z
|
6
21
|
.string()
|
7
22
|
.describe('Full search query from the user (e.g., "revenue based on campaigns" not just "campaigns"). Include full context for better results.'),
|
8
23
|
})),
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
.nullable()
|
13
|
-
.describe('Use this to paginate through the results'),
|
14
|
-
});
|
24
|
+
})
|
25
|
+
.withPagination()
|
26
|
+
.build();
|
15
27
|
export const toolFindDashboardsArgsSchemaTransformed = toolFindDashboardsArgsSchema;
|
16
28
|
//# sourceMappingURL=toolFindDashboardsArgs.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"toolFindDashboardsArgs.js","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/tools/toolFindDashboardsArgs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
1
|
+
{"version":3,"file":"toolFindDashboardsArgs.js","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/tools/toolFindDashboardsArgs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAExD,MAAM,CAAC,MAAM,gCAAgC,GAAG;;;;;;;;;;;;;CAa/C,CAAC;AAEF,MAAM,CAAC,MAAM,4BAA4B,GAAG,gBAAgB,CACxD,iBAAiB,EACjB,gCAAgC,CACnC;KACI,MAAM,CAAC;IACJ,sBAAsB,EAAE,CAAC,CAAC,KAAK,CAC3B,CAAC,CAAC,MAAM,CAAC;QACL,KAAK,EAAE,CAAC;aACH,MAAM,EAAE;aACR,QAAQ,CACL,qIAAqI,CACxI;KACR,CAAC,CACL;CACJ,CAAC;KACD,cAAc,EAAE;KAChB,KAAK,EAAE,CAAC;AAMb,MAAM,CAAC,MAAM,uCAAuC,GAChD,4BAA4B,CAAC"}
|
@@ -1,9 +1,12 @@
|
|
1
1
|
import { z } from 'zod';
|
2
|
+
export declare const TOOL_FIND_EXPLORES_DESCRIPTION = "Tool: findExplores\n\nPurpose:\nLists available Explores along with their field labels, joined tables, hints for you (Ai Hints) and descriptions.\n\nUsage Tips:\n- Use this to understand the structure of an Explore before calling findFields.\n- Only a subset of fields is returned\n- Results are paginated \u2014 use the next page token to retrieve additional pages.\n- It's advised to look for tables first and then use the exploreName parameter to narrow results to a specific Explore.\n- When using the exploreName parameter, all fields and full description are returned for that explore.\n";
|
2
3
|
export declare const toolFindExploresArgsSchema: z.ZodObject<{
|
3
4
|
type: z.ZodLiteral<"find_explores">;
|
5
|
+
} & {
|
4
6
|
exploreName: z.ZodNullable<z.ZodString>;
|
7
|
+
} & {
|
5
8
|
page: z.ZodNullable<z.ZodNumber>;
|
6
|
-
},
|
9
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
7
10
|
type: "find_explores";
|
8
11
|
exploreName: string | null;
|
9
12
|
page: number | null;
|
@@ -15,9 +18,11 @@ export declare const toolFindExploresArgsSchema: z.ZodObject<{
|
|
15
18
|
export type ToolFindExploresArgs = z.infer<typeof toolFindExploresArgsSchema>;
|
16
19
|
export declare const toolFindExploresArgsSchemaTransformed: z.ZodObject<{
|
17
20
|
type: z.ZodLiteral<"find_explores">;
|
21
|
+
} & {
|
18
22
|
exploreName: z.ZodNullable<z.ZodString>;
|
23
|
+
} & {
|
19
24
|
page: z.ZodNullable<z.ZodNumber>;
|
20
|
-
},
|
25
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
21
26
|
type: "find_explores";
|
22
27
|
exploreName: string | null;
|
23
28
|
page: number | null;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"toolFindExploresArgs.d.ts","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/tools/toolFindExploresArgs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
1
|
+
{"version":3,"file":"toolFindExploresArgs.d.ts","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/tools/toolFindExploresArgs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,8BAA8B,slBAW1C,CAAC;AAEF,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;EAa3B,CAAC;AAEb,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAE9E,eAAO,MAAM,qCAAqC;;;;;;;;;;;;;;EAA6B,CAAC;AAChF,MAAM,MAAM,+BAA+B,GAAG,oBAAoB,CAAC"}
|
@@ -1,15 +1,25 @@
|
|
1
1
|
import { z } from 'zod';
|
2
|
-
|
3
|
-
|
2
|
+
import { createToolSchema } from '../toolSchemaBuilder';
|
3
|
+
export const TOOL_FIND_EXPLORES_DESCRIPTION = `Tool: findExplores
|
4
|
+
|
5
|
+
Purpose:
|
6
|
+
Lists available Explores along with their field labels, joined tables, hints for you (Ai Hints) and descriptions.
|
7
|
+
|
8
|
+
Usage Tips:
|
9
|
+
- Use this to understand the structure of an Explore before calling findFields.
|
10
|
+
- Only a subset of fields is returned
|
11
|
+
- Results are paginated — use the next page token to retrieve additional pages.
|
12
|
+
- It's advised to look for tables first and then use the exploreName parameter to narrow results to a specific Explore.
|
13
|
+
- When using the exploreName parameter, all fields and full description are returned for that explore.
|
14
|
+
`;
|
15
|
+
export const toolFindExploresArgsSchema = createToolSchema('find_explores', TOOL_FIND_EXPLORES_DESCRIPTION)
|
16
|
+
.extend({
|
4
17
|
exploreName: z
|
5
18
|
.string()
|
6
19
|
.nullable()
|
7
20
|
.describe('Name of the table to focus on. If omitted, all tables are returned. For a single table, all dimensions, metrics, and full descriptions are loaded'),
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
.nullable()
|
12
|
-
.describe('Use this to paginate through the results.'),
|
13
|
-
});
|
21
|
+
})
|
22
|
+
.withPagination()
|
23
|
+
.build();
|
14
24
|
export const toolFindExploresArgsSchemaTransformed = toolFindExploresArgsSchema;
|
15
25
|
//# sourceMappingURL=toolFindExploresArgs.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"toolFindExploresArgs.js","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/tools/toolFindExploresArgs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
1
|
+
{"version":3,"file":"toolFindExploresArgs.js","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/tools/toolFindExploresArgs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAExD,MAAM,CAAC,MAAM,8BAA8B,GAAG;;;;;;;;;;;CAW7C,CAAC;AAEF,MAAM,CAAC,MAAM,0BAA0B,GAAG,gBAAgB,CACtD,eAAe,EACf,8BAA8B,CACjC;KACI,MAAM,CAAC;IACJ,WAAW,EAAE,CAAC;SACT,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CACL,mJAAmJ,CACtJ;CACR,CAAC;KACD,cAAc,EAAE;KAChB,KAAK,EAAE,CAAC;AAIb,MAAM,CAAC,MAAM,qCAAqC,GAAG,0BAA0B,CAAC"}
|
@@ -1,6 +1,8 @@
|
|
1
1
|
import { z } from 'zod';
|
2
|
+
export declare const TOOL_FIND_FIELDS_DESCRIPTION = "Tool: \"findFields\"\n\nPurpose:\nFinds the most relevant Fields (Metrics & Dimensions) within Explores, returning detailed info about each.\n\nUsage tips:\n- Use \"findExplores\" first to discover available Explores and their field labels.\n- Use full field labels in search terms (e.g. \"Total Revenue\", \"Order Date\").\n- Pass all needed fields in one request.\n- Fields are sorted by relevance, with a maximum score of 1 and a minimum of 0, so the top results are the most relevant.\n- If results aren't relevant, retry with clearer or more specific terms.\n- Results are paginated \u2014 use the next page token to get more results if needed.\n";
|
2
3
|
export declare const toolFindFieldsArgsSchema: z.ZodObject<{
|
3
4
|
type: z.ZodLiteral<"find_fields">;
|
5
|
+
} & {
|
4
6
|
table: z.ZodString;
|
5
7
|
fieldSearchQueries: z.ZodArray<z.ZodObject<{
|
6
8
|
label: z.ZodString;
|
@@ -9,8 +11,9 @@ export declare const toolFindFieldsArgsSchema: z.ZodObject<{
|
|
9
11
|
}, {
|
10
12
|
label: string;
|
11
13
|
}>, "many">;
|
14
|
+
} & {
|
12
15
|
page: z.ZodNullable<z.ZodNumber>;
|
13
|
-
},
|
16
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
14
17
|
type: "find_fields";
|
15
18
|
table: string;
|
16
19
|
page: number | null;
|
@@ -28,6 +31,7 @@ export declare const toolFindFieldsArgsSchema: z.ZodObject<{
|
|
28
31
|
export type ToolFindFieldsArgs = z.infer<typeof toolFindFieldsArgsSchema>;
|
29
32
|
export declare const toolFindFieldsArgsSchemaTransformed: z.ZodObject<{
|
30
33
|
type: z.ZodLiteral<"find_fields">;
|
34
|
+
} & {
|
31
35
|
table: z.ZodString;
|
32
36
|
fieldSearchQueries: z.ZodArray<z.ZodObject<{
|
33
37
|
label: z.ZodString;
|
@@ -36,8 +40,9 @@ export declare const toolFindFieldsArgsSchemaTransformed: z.ZodObject<{
|
|
36
40
|
}, {
|
37
41
|
label: string;
|
38
42
|
}>, "many">;
|
43
|
+
} & {
|
39
44
|
page: z.ZodNullable<z.ZodNumber>;
|
40
|
-
},
|
45
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
41
46
|
type: "find_fields";
|
42
47
|
table: string;
|
43
48
|
page: number | null;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"toolFindFieldsArgs.d.ts","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/tools/toolFindFieldsArgs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
1
|
+
{"version":3,"file":"toolFindFieldsArgs.d.ts","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/tools/toolFindFieldsArgs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,4BAA4B,gpBAYxC,CAAC;AAEF,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;EAazB,CAAC;AAEb,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAE1E,eAAO,MAAM,mCAAmC;;;;;;;;;;;;;;;;;;;;;;;;;;;EAA2B,CAAC;AAE5E,MAAM,MAAM,6BAA6B,GAAG,kBAAkB,CAAC"}
|
@@ -1,15 +1,26 @@
|
|
1
1
|
import { z } from 'zod';
|
2
|
-
|
3
|
-
|
2
|
+
import { createToolSchema } from '../toolSchemaBuilder';
|
3
|
+
export const TOOL_FIND_FIELDS_DESCRIPTION = `Tool: "findFields"
|
4
|
+
|
5
|
+
Purpose:
|
6
|
+
Finds the most relevant Fields (Metrics & Dimensions) within Explores, returning detailed info about each.
|
7
|
+
|
8
|
+
Usage tips:
|
9
|
+
- Use "findExplores" first to discover available Explores and their field labels.
|
10
|
+
- Use full field labels in search terms (e.g. "Total Revenue", "Order Date").
|
11
|
+
- Pass all needed fields in one request.
|
12
|
+
- Fields are sorted by relevance, with a maximum score of 1 and a minimum of 0, so the top results are the most relevant.
|
13
|
+
- If results aren't relevant, retry with clearer or more specific terms.
|
14
|
+
- Results are paginated — use the next page token to get more results if needed.
|
15
|
+
`;
|
16
|
+
export const toolFindFieldsArgsSchema = createToolSchema('find_fields', TOOL_FIND_FIELDS_DESCRIPTION)
|
17
|
+
.extend({
|
4
18
|
table: z.string().describe('The table to search in.'),
|
5
19
|
fieldSearchQueries: z.array(z.object({
|
6
20
|
label: z.string().describe('Full field label'),
|
7
21
|
})),
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
.nullable()
|
12
|
-
.describe('Use this to paginate through the results'),
|
13
|
-
});
|
22
|
+
})
|
23
|
+
.withPagination()
|
24
|
+
.build();
|
14
25
|
export const toolFindFieldsArgsSchemaTransformed = toolFindFieldsArgsSchema;
|
15
26
|
//# sourceMappingURL=toolFindFieldsArgs.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"toolFindFieldsArgs.js","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/tools/toolFindFieldsArgs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
1
|
+
{"version":3,"file":"toolFindFieldsArgs.js","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/tools/toolFindFieldsArgs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAExD,MAAM,CAAC,MAAM,4BAA4B,GAAG;;;;;;;;;;;;CAY3C,CAAC;AAEF,MAAM,CAAC,MAAM,wBAAwB,GAAG,gBAAgB,CACpD,aAAa,EACb,4BAA4B,CAC/B;KACI,MAAM,CAAC;IACJ,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,yBAAyB,CAAC;IACrD,kBAAkB,EAAE,CAAC,CAAC,KAAK,CACvB,CAAC,CAAC,MAAM,CAAC;QACL,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,kBAAkB,CAAC;KACjD,CAAC,CACL;CACJ,CAAC;KACD,cAAc,EAAE;KAChB,KAAK,EAAE,CAAC;AAIb,MAAM,CAAC,MAAM,mCAAmC,GAAG,wBAAwB,CAAC"}
|