@lightdash/common 0.2018.1 → 0.2020.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/tools/toolImproveContext.d.ts +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolImproveContext.d.ts.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolImproveContext.js +0 -4
- package/dist/cjs/ee/AiAgent/schemas/tools/toolImproveContext.js.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/toolImproveContext.d.ts +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/toolImproveContext.d.ts.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/toolImproveContext.js +0 -4
- package/dist/esm/ee/AiAgent/schemas/tools/toolImproveContext.js.map +1 -1
- package/dist/tsconfig.types.tsbuildinfo +1 -1
- package/dist/types/ee/AiAgent/schemas/tools/toolImproveContext.d.ts +1 -1
- package/dist/types/ee/AiAgent/schemas/tools/toolImproveContext.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { AiResultType } from '../../types';
|
|
3
|
-
export declare const TOOL_IMPROVE_CONTEXT_DESCRIPTION = "\n\n - **When to use the Improve Context Tool:**\n - User guides table/explore selection: \"You can use the main_table for summary queries - you don't need the detailed table\"\n - User shares business methodology: \"Generally we use higher-level categories to have fewer groupings\"\n - User clarifies where to find data: \"Use the dimension table to get category details\"\n - User corrects field usage: \"Filter by order_number not order_id\"\n - User corrects terminology: \"Actually, 'total revenue' means revenue_after_tax\"\n - User provides better formatting/structure: \"I'd structure the examples like this: Category: X, Feedback: Y\"\n - User clarifies business rules: \"Customer count should exclude test accounts\"\n - Your confidence this is a learnable correction (not just a new request) is above 0.7\n\n - **Learning Categories and Examples:**\n\n Category: explore_selection\n Feedback: \"Use the sales_data explore instead of the orders table for revenue analysis\"\n Generated instruction: \"For revenue analysis queries, use the sales_data explore instead of the orders table\"\n\n Category: field_selection\n Feedback1: \"No, use net_revenue instead of gross_revenue\"\n Generated instruction1: \"When users ask for revenue, use the net_revenue field instead of gross_revenue\"\n Feedback2: \"Actually, 'total revenue' should always refer to the revenue_after_tax field\"\n Generated instruction2: \"When users mention 'total revenue', they mean the revenue_after_tax field\"\n\n Category: filter_logic\n Feedback: \"The customer_count should exclude test accounts\"\n Generated instruction: \"When calculating customer_count, always exclude test accounts using the filter is_test_account = false\"\n\n Category:
|
|
3
|
+
export declare const TOOL_IMPROVE_CONTEXT_DESCRIPTION = "\n\n - **When to use the Improve Context Tool:**\n - User guides table/explore selection: \"You can use the main_table for summary queries - you don't need the detailed table\"\n - User shares business methodology: \"Generally we use higher-level categories to have fewer groupings\"\n - User clarifies where to find data: \"Use the dimension table to get category details\"\n - User corrects field usage: \"Filter by order_number not order_id\"\n - User corrects terminology: \"Actually, 'total revenue' means revenue_after_tax\"\n - User provides better formatting/structure: \"I'd structure the examples like this: Category: X, Feedback: Y\"\n - User clarifies business rules: \"Customer count should exclude test accounts\"\n - Your confidence this is a learnable correction (not just a new request) is above 0.7\n\n - **Learning Categories and Examples:**\n\n Category: explore_selection\n Feedback: \"Use the sales_data explore instead of the orders table for revenue analysis\"\n Generated instruction: \"For revenue analysis queries, use the sales_data explore instead of the orders table\"\n\n Category: field_selection\n Feedback1: \"No, use net_revenue instead of gross_revenue\"\n Generated instruction1: \"When users ask for revenue, use the net_revenue field instead of gross_revenue\"\n Feedback2: \"Actually, 'total revenue' should always refer to the revenue_after_tax field\"\n Generated instruction2: \"When users mention 'total revenue', they mean the revenue_after_tax field\"\n\n Category: filter_logic\n Feedback: \"The customer_count should exclude test accounts\"\n Generated instruction: \"When calculating customer_count, always exclude test accounts using the filter is_test_account = false\"\n\n Category: other\n Feedback1: \"Always show results in descending order by default\"\n Generated instruction1: \"When showing metric results, default to descending order unless explicitly requested otherwise\"\n Feedback2: \"We prefer to analyze by region rather than individual store locations\"\n Generated instruction2: \"When analyzing geographic data, use region-level aggregations instead of individual store locations\"\n\n ";
|
|
4
4
|
export declare const toolImproveContextArgsSchema: z.ZodObject<{
|
|
5
5
|
type: z.ZodLiteral<AiResultType.IMPROVE_CONTEXT>;
|
|
6
6
|
} & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toolImproveContext.d.ts","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/tools/toolImproveContext.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAG3C,eAAO,MAAM,gCAAgC,
|
|
1
|
+
{"version":3,"file":"toolImproveContext.d.ts","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/tools/toolImproveContext.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAG3C,eAAO,MAAM,gCAAgC,yrEAkC3C,CAAC;AAEH,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;EAkC7B,CAAC;AAEb,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CACxC,OAAO,4BAA4B,CACtC,CAAC"}
|
|
@@ -32,10 +32,6 @@ exports.TOOL_IMPROVE_CONTEXT_DESCRIPTION = `
|
|
|
32
32
|
Feedback: "The customer_count should exclude test accounts"
|
|
33
33
|
Generated instruction: "When calculating customer_count, always exclude test accounts using the filter is_test_account = false"
|
|
34
34
|
|
|
35
|
-
Category: calculation
|
|
36
|
-
Feedback: "Conversion rate should be conversions divided by total visits, not unique visitors"
|
|
37
|
-
Generated instruction: "When calculating conversion rate, use conversions / total_visits instead of conversions / unique_visitors"
|
|
38
|
-
|
|
39
35
|
Category: other
|
|
40
36
|
Feedback1: "Always show results in descending order by default"
|
|
41
37
|
Generated instruction1: "When showing metric results, default to descending order unless explicitly requested otherwise"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toolImproveContext.js","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/tools/toolImproveContext.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,uCAA2C;AAC3C,4DAAwD;AAE3C,QAAA,gCAAgC,GAAG
|
|
1
|
+
{"version":3,"file":"toolImproveContext.js","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/tools/toolImproveContext.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,uCAA2C;AAC3C,4DAAwD;AAE3C,QAAA,gCAAgC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkC9C,CAAC;AAEU,QAAA,4BAA4B,GAAG,IAAA,oCAAgB,EACxD,oBAAY,CAAC,eAAe,EAC5B,wCAAgC,CACnC;KACI,MAAM,CAAC;IACJ,aAAa,EAAE,OAAC;SACX,MAAM,EAAE;SACR,QAAQ,CAAC,uDAAuD,CAAC;IACtE,iBAAiB,EAAE,OAAC;SACf,MAAM,EAAE;SACR,QAAQ,CAAC,+CAA+C,CAAC;IAC9D,eAAe,EAAE,OAAC;SACb,MAAM,EAAE;SACR,QAAQ,CAAC,sCAAsC,CAAC;IACrD,QAAQ,EAAE,OAAC;SACN,IAAI,CAAC;QACF,mBAAmB;QACnB,iBAAiB;QACjB,cAAc;QACd,aAAa;QACb,OAAO;KACV,CAAC;SACD,QAAQ,CAAC,0BAA0B,CAAC;IACzC,UAAU,EAAE,OAAC;SACR,MAAM,EAAE;SACR,GAAG,CAAC,CAAC,CAAC;SACN,GAAG,CAAC,CAAC,CAAC;SACN,QAAQ,CACL,8EAA8E,CACjF;IACL,oBAAoB,EAAE,OAAC;SAClB,MAAM,EAAE;SACR,QAAQ,CAAC,6CAA6C,CAAC;CAC/D,CAAC;KACD,KAAK,EAAE,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { AiResultType } from '../../types';
|
|
3
|
-
export declare const TOOL_IMPROVE_CONTEXT_DESCRIPTION = "\n\n - **When to use the Improve Context Tool:**\n - User guides table/explore selection: \"You can use the main_table for summary queries - you don't need the detailed table\"\n - User shares business methodology: \"Generally we use higher-level categories to have fewer groupings\"\n - User clarifies where to find data: \"Use the dimension table to get category details\"\n - User corrects field usage: \"Filter by order_number not order_id\"\n - User corrects terminology: \"Actually, 'total revenue' means revenue_after_tax\"\n - User provides better formatting/structure: \"I'd structure the examples like this: Category: X, Feedback: Y\"\n - User clarifies business rules: \"Customer count should exclude test accounts\"\n - Your confidence this is a learnable correction (not just a new request) is above 0.7\n\n - **Learning Categories and Examples:**\n\n Category: explore_selection\n Feedback: \"Use the sales_data explore instead of the orders table for revenue analysis\"\n Generated instruction: \"For revenue analysis queries, use the sales_data explore instead of the orders table\"\n\n Category: field_selection\n Feedback1: \"No, use net_revenue instead of gross_revenue\"\n Generated instruction1: \"When users ask for revenue, use the net_revenue field instead of gross_revenue\"\n Feedback2: \"Actually, 'total revenue' should always refer to the revenue_after_tax field\"\n Generated instruction2: \"When users mention 'total revenue', they mean the revenue_after_tax field\"\n\n Category: filter_logic\n Feedback: \"The customer_count should exclude test accounts\"\n Generated instruction: \"When calculating customer_count, always exclude test accounts using the filter is_test_account = false\"\n\n Category:
|
|
3
|
+
export declare const TOOL_IMPROVE_CONTEXT_DESCRIPTION = "\n\n - **When to use the Improve Context Tool:**\n - User guides table/explore selection: \"You can use the main_table for summary queries - you don't need the detailed table\"\n - User shares business methodology: \"Generally we use higher-level categories to have fewer groupings\"\n - User clarifies where to find data: \"Use the dimension table to get category details\"\n - User corrects field usage: \"Filter by order_number not order_id\"\n - User corrects terminology: \"Actually, 'total revenue' means revenue_after_tax\"\n - User provides better formatting/structure: \"I'd structure the examples like this: Category: X, Feedback: Y\"\n - User clarifies business rules: \"Customer count should exclude test accounts\"\n - Your confidence this is a learnable correction (not just a new request) is above 0.7\n\n - **Learning Categories and Examples:**\n\n Category: explore_selection\n Feedback: \"Use the sales_data explore instead of the orders table for revenue analysis\"\n Generated instruction: \"For revenue analysis queries, use the sales_data explore instead of the orders table\"\n\n Category: field_selection\n Feedback1: \"No, use net_revenue instead of gross_revenue\"\n Generated instruction1: \"When users ask for revenue, use the net_revenue field instead of gross_revenue\"\n Feedback2: \"Actually, 'total revenue' should always refer to the revenue_after_tax field\"\n Generated instruction2: \"When users mention 'total revenue', they mean the revenue_after_tax field\"\n\n Category: filter_logic\n Feedback: \"The customer_count should exclude test accounts\"\n Generated instruction: \"When calculating customer_count, always exclude test accounts using the filter is_test_account = false\"\n\n Category: other\n Feedback1: \"Always show results in descending order by default\"\n Generated instruction1: \"When showing metric results, default to descending order unless explicitly requested otherwise\"\n Feedback2: \"We prefer to analyze by region rather than individual store locations\"\n Generated instruction2: \"When analyzing geographic data, use region-level aggregations instead of individual store locations\"\n\n ";
|
|
4
4
|
export declare const toolImproveContextArgsSchema: z.ZodObject<{
|
|
5
5
|
type: z.ZodLiteral<AiResultType.IMPROVE_CONTEXT>;
|
|
6
6
|
} & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toolImproveContext.d.ts","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/tools/toolImproveContext.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAG3C,eAAO,MAAM,gCAAgC,
|
|
1
|
+
{"version":3,"file":"toolImproveContext.d.ts","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/tools/toolImproveContext.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAG3C,eAAO,MAAM,gCAAgC,yrEAkC3C,CAAC;AAEH,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;EAkC7B,CAAC;AAEb,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CACxC,OAAO,4BAA4B,CACtC,CAAC"}
|
|
@@ -29,10 +29,6 @@ export const TOOL_IMPROVE_CONTEXT_DESCRIPTION = `
|
|
|
29
29
|
Feedback: "The customer_count should exclude test accounts"
|
|
30
30
|
Generated instruction: "When calculating customer_count, always exclude test accounts using the filter is_test_account = false"
|
|
31
31
|
|
|
32
|
-
Category: calculation
|
|
33
|
-
Feedback: "Conversion rate should be conversions divided by total visits, not unique visitors"
|
|
34
|
-
Generated instruction: "When calculating conversion rate, use conversions / total_visits instead of conversions / unique_visitors"
|
|
35
|
-
|
|
36
32
|
Category: other
|
|
37
33
|
Feedback1: "Always show results in descending order by default"
|
|
38
34
|
Generated instruction1: "When showing metric results, default to descending order unless explicitly requested otherwise"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toolImproveContext.js","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/tools/toolImproveContext.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAC3C,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAExD,MAAM,CAAC,MAAM,gCAAgC,GAAG
|
|
1
|
+
{"version":3,"file":"toolImproveContext.js","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/tools/toolImproveContext.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAC3C,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAExD,MAAM,CAAC,MAAM,gCAAgC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkC9C,CAAC;AAEH,MAAM,CAAC,MAAM,4BAA4B,GAAG,gBAAgB,CACxD,YAAY,CAAC,eAAe,EAC5B,gCAAgC,CACnC;KACI,MAAM,CAAC;IACJ,aAAa,EAAE,CAAC;SACX,MAAM,EAAE;SACR,QAAQ,CAAC,uDAAuD,CAAC;IACtE,iBAAiB,EAAE,CAAC;SACf,MAAM,EAAE;SACR,QAAQ,CAAC,+CAA+C,CAAC;IAC9D,eAAe,EAAE,CAAC;SACb,MAAM,EAAE;SACR,QAAQ,CAAC,sCAAsC,CAAC;IACrD,QAAQ,EAAE,CAAC;SACN,IAAI,CAAC;QACF,mBAAmB;QACnB,iBAAiB;QACjB,cAAc;QACd,aAAa;QACb,OAAO;KACV,CAAC;SACD,QAAQ,CAAC,0BAA0B,CAAC;IACzC,UAAU,EAAE,CAAC;SACR,MAAM,EAAE;SACR,GAAG,CAAC,CAAC,CAAC;SACN,GAAG,CAAC,CAAC,CAAC;SACN,QAAQ,CACL,8EAA8E,CACjF;IACL,oBAAoB,EAAE,CAAC;SAClB,MAAM,EAAE;SACR,QAAQ,CAAC,6CAA6C,CAAC;CAC/D,CAAC;KACD,KAAK,EAAE,CAAC"}
|