@lightdash/common 0.2066.1 → 0.2067.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 +15 -32
- package/dist/cjs/ee/AiAgent/schemas/tools/toolImproveContext.js.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolProposeChange.d.ts +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolProposeChange.d.ts.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolProposeChange.js +13 -24
- package/dist/cjs/ee/AiAgent/schemas/tools/toolProposeChange.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 +15 -32
- package/dist/esm/ee/AiAgent/schemas/tools/toolImproveContext.js.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/toolProposeChange.d.ts +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/toolProposeChange.d.ts.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/toolProposeChange.js +13 -24
- package/dist/esm/ee/AiAgent/schemas/tools/toolProposeChange.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/dist/types/ee/AiAgent/schemas/tools/toolProposeChange.d.ts +1 -1
- package/dist/types/ee/AiAgent/schemas/tools/toolProposeChange.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 = "\
|
3
|
+
export declare const TOOL_IMPROVE_CONTEXT_DESCRIPTION = "\nCaptures learnings from user corrections, clarifications, and guidance to improve future responses.\n\n**Supported Learning Categories:**\n- explore_selection: Which tables/explores to use for specific types of queries\n- field_selection: Which fields to use for specific metrics or dimensions\n- filter_logic: How to apply filters for calculations\n- calculation: How to perform specific calculations or aggregations\n- other: General preferences, formatting, or methodologies\n\n**Technical Requirements:**\n- Must provide original query context that led to the learning\n- Must capture what was incorrect and what the correct approach is\n- Must categorize the learning into one of the supported categories\n- Must provide a confidence score (0-1) indicating if this is a learnable pattern\n- Must generate a clear, actionable instruction to append to agent settings\n- Instructions should be specific and context-aware (not overly generic)\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;AAI3C,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;AAI3C,eAAO,MAAM,gCAAgC,w7BAiB5C,CAAC;AAEF,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;EAkC7B,CAAC;AAEb,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CACxC,OAAO,4BAA4B,CACtC,CAAC;AAEF,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;EAGzC,CAAC;AAEH,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAC1C,OAAO,8BAA8B,CACxC,CAAC"}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { z } from 'zod';
|
2
2
|
import { type Dimension, type Metric, type Table } from '../../../..';
|
3
3
|
import { AiResultType } from '../../types';
|
4
|
-
export declare const TOOL_PROPOSE_CHANGE_DESCRIPTION = "\
|
4
|
+
export declare const TOOL_PROPOSE_CHANGE_DESCRIPTION = "\nCreates a change proposal for tables, metrics, and dimensions. Changes are applied immediately but can be reviewed and rejected afterward.\n\n**Supported Operations:**\n- Update table descriptions and labels\n- Update metric/dimension descriptions and labels\n- Create new metrics\n\n**Technical Requirements:**\n- When updating descriptions or labels, must preserve as much original content as possible\n- Descriptions should maintain their original format (preserve complete value and formatting)\n- Must provide entity table name, rationale, and change details\n- Changes are tracked with proposer information and timestamp\n- For updates: use \"replace\" operation with complete updated value (not partial)\n- For adding new properties: use \"add\" operation (creates property if it does not exist)\n- For new metrics: use \"create\" operation with full metric definition\n";
|
5
5
|
type ChangePatch<T> = Partial<Record<keyof T, z.ZodType>>;
|
6
6
|
declare const stringOpSchema: z.ZodDiscriminatedUnion<"op", [z.ZodObject<{
|
7
7
|
op: z.ZodLiteral<"replace">;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"toolProposeChange.d.ts","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/tools/toolProposeChange.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,KAAK,SAAS,EAAE,KAAK,MAAM,EAAE,KAAK,KAAK,EAAE,MAAM,aAAa,CAAC;AACtE,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAS3C,eAAO,MAAM,+BAA+B
|
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