@lightdash/common 2.354.0 → 2.356.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/.tsbuildinfo +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolDashboardV2Args.d.ts +37 -3
- package/dist/cjs/ee/AiAgent/schemas/tools/toolDashboardV2Args.d.ts.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolDashboardV2Args.js +16 -3
- package/dist/cjs/ee/AiAgent/schemas/tools/toolDashboardV2Args.js.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolDefinitions.d.ts +2 -0
- package/dist/cjs/ee/AiAgent/schemas/tools/toolDefinitions.d.ts.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolDefinitions.js +2 -0
- package/dist/cjs/ee/AiAgent/schemas/tools/toolDefinitions.js.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolEditDbtProjectArgs.d.ts.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolEditDbtProjectArgs.js.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolFindExploresArgs.d.ts +179 -5
- package/dist/cjs/ee/AiAgent/schemas/tools/toolFindExploresArgs.d.ts.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolFindExploresArgs.js +16 -4
- package/dist/cjs/ee/AiAgent/schemas/tools/toolFindExploresArgs.js.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolFindFieldsArgs.d.ts +94 -5
- package/dist/cjs/ee/AiAgent/schemas/tools/toolFindFieldsArgs.d.ts.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolFindFieldsArgs.js +12 -4
- package/dist/cjs/ee/AiAgent/schemas/tools/toolFindFieldsArgs.js.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolGenerateDataAppArgs.d.ts +43 -2
- package/dist/cjs/ee/AiAgent/schemas/tools/toolGenerateDataAppArgs.d.ts.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolGenerateDataAppArgs.js +52 -4
- package/dist/cjs/ee/AiAgent/schemas/tools/toolGenerateDataAppArgs.js.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolGenerateHashesArgs.d.ts +32 -6
- package/dist/cjs/ee/AiAgent/schemas/tools/toolGenerateHashesArgs.d.ts.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolGenerateHashesArgs.js +7 -5
- package/dist/cjs/ee/AiAgent/schemas/tools/toolGenerateHashesArgs.js.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolGenerateUuidsArgs.d.ts +29 -3
- package/dist/cjs/ee/AiAgent/schemas/tools/toolGenerateUuidsArgs.d.ts.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolGenerateUuidsArgs.js +8 -3
- package/dist/cjs/ee/AiAgent/schemas/tools/toolGenerateUuidsArgs.js.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolGetDashboardChartsArgs.d.ts +62 -3
- package/dist/cjs/ee/AiAgent/schemas/tools/toolGetDashboardChartsArgs.d.ts.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolGetDashboardChartsArgs.js +35 -3
- package/dist/cjs/ee/AiAgent/schemas/tools/toolGetDashboardChartsArgs.js.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolGetKnowledgeDocumentContentArgs.d.ts +15 -0
- package/dist/cjs/ee/AiAgent/schemas/tools/toolGetKnowledgeDocumentContentArgs.d.ts.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolGetKnowledgeDocumentContentArgs.js +16 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolGetKnowledgeDocumentContentArgs.js.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolGetMetadataArgs.d.ts +173 -3
- package/dist/cjs/ee/AiAgent/schemas/tools/toolGetMetadataArgs.d.ts.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolGetMetadataArgs.js +5 -3
- package/dist/cjs/ee/AiAgent/schemas/tools/toolGetMetadataArgs.js.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolIterateDataAppArgs.d.ts +13 -0
- package/dist/cjs/ee/AiAgent/schemas/tools/toolIterateDataAppArgs.d.ts.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolIterateDataAppArgs.js +22 -3
- package/dist/cjs/ee/AiAgent/schemas/tools/toolIterateDataAppArgs.js.map +1 -1
- package/dist/cjs/types/api.d.ts +2 -2
- package/dist/cjs/types/api.d.ts.map +1 -1
- package/dist/cjs/types/api.js.map +1 -1
- package/dist/cjs/types/document.d.ts +10 -0
- package/dist/cjs/types/document.d.ts.map +1 -1
- package/dist/esm/.tsbuildinfo +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/toolDashboardV2Args.d.ts +37 -3
- package/dist/esm/ee/AiAgent/schemas/tools/toolDashboardV2Args.d.ts.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/toolDashboardV2Args.js +16 -3
- package/dist/esm/ee/AiAgent/schemas/tools/toolDashboardV2Args.js.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/toolDefinitions.d.ts +2 -0
- package/dist/esm/ee/AiAgent/schemas/tools/toolDefinitions.d.ts.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/toolDefinitions.js +2 -0
- package/dist/esm/ee/AiAgent/schemas/tools/toolDefinitions.js.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/toolEditDbtProjectArgs.d.ts.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/toolEditDbtProjectArgs.js.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/toolFindExploresArgs.d.ts +179 -5
- package/dist/esm/ee/AiAgent/schemas/tools/toolFindExploresArgs.d.ts.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/toolFindExploresArgs.js +16 -4
- package/dist/esm/ee/AiAgent/schemas/tools/toolFindExploresArgs.js.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/toolFindFieldsArgs.d.ts +94 -5
- package/dist/esm/ee/AiAgent/schemas/tools/toolFindFieldsArgs.d.ts.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/toolFindFieldsArgs.js +12 -4
- package/dist/esm/ee/AiAgent/schemas/tools/toolFindFieldsArgs.js.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/toolGenerateDataAppArgs.d.ts +43 -2
- package/dist/esm/ee/AiAgent/schemas/tools/toolGenerateDataAppArgs.d.ts.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/toolGenerateDataAppArgs.js +51 -3
- package/dist/esm/ee/AiAgent/schemas/tools/toolGenerateDataAppArgs.js.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/toolGenerateHashesArgs.d.ts +32 -6
- package/dist/esm/ee/AiAgent/schemas/tools/toolGenerateHashesArgs.d.ts.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/toolGenerateHashesArgs.js +7 -5
- package/dist/esm/ee/AiAgent/schemas/tools/toolGenerateHashesArgs.js.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/toolGenerateUuidsArgs.d.ts +29 -3
- package/dist/esm/ee/AiAgent/schemas/tools/toolGenerateUuidsArgs.d.ts.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/toolGenerateUuidsArgs.js +8 -3
- package/dist/esm/ee/AiAgent/schemas/tools/toolGenerateUuidsArgs.js.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/toolGetDashboardChartsArgs.d.ts +62 -3
- package/dist/esm/ee/AiAgent/schemas/tools/toolGetDashboardChartsArgs.d.ts.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/toolGetDashboardChartsArgs.js +35 -3
- package/dist/esm/ee/AiAgent/schemas/tools/toolGetDashboardChartsArgs.js.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/toolGetKnowledgeDocumentContentArgs.d.ts +15 -0
- package/dist/esm/ee/AiAgent/schemas/tools/toolGetKnowledgeDocumentContentArgs.d.ts.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/toolGetKnowledgeDocumentContentArgs.js +15 -0
- package/dist/esm/ee/AiAgent/schemas/tools/toolGetKnowledgeDocumentContentArgs.js.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/toolGetMetadataArgs.d.ts +173 -3
- package/dist/esm/ee/AiAgent/schemas/tools/toolGetMetadataArgs.d.ts.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/toolGetMetadataArgs.js +5 -3
- package/dist/esm/ee/AiAgent/schemas/tools/toolGetMetadataArgs.js.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/toolIterateDataAppArgs.d.ts +13 -0
- package/dist/esm/ee/AiAgent/schemas/tools/toolIterateDataAppArgs.d.ts.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/toolIterateDataAppArgs.js +21 -2
- package/dist/esm/ee/AiAgent/schemas/tools/toolIterateDataAppArgs.js.map +1 -1
- package/dist/esm/types/api.d.ts +2 -2
- package/dist/esm/types/api.d.ts.map +1 -1
- package/dist/esm/types/api.js.map +1 -1
- package/dist/esm/types/document.d.ts +10 -0
- package/dist/esm/types/document.d.ts.map +1 -1
- package/dist/types/.tsbuildinfo +1 -1
- package/dist/types/ee/AiAgent/schemas/tools/toolDashboardV2Args.d.ts +37 -3
- package/dist/types/ee/AiAgent/schemas/tools/toolDashboardV2Args.d.ts.map +1 -1
- package/dist/types/ee/AiAgent/schemas/tools/toolDashboardV2Args.js +16 -3
- package/dist/types/ee/AiAgent/schemas/tools/toolDashboardV2Args.js.map +1 -1
- package/dist/types/ee/AiAgent/schemas/tools/toolDefinitions.d.ts +2 -0
- package/dist/types/ee/AiAgent/schemas/tools/toolDefinitions.d.ts.map +1 -1
- package/dist/types/ee/AiAgent/schemas/tools/toolDefinitions.js +2 -0
- package/dist/types/ee/AiAgent/schemas/tools/toolDefinitions.js.map +1 -1
- package/dist/types/ee/AiAgent/schemas/tools/toolEditDbtProjectArgs.d.ts.map +1 -1
- package/dist/types/ee/AiAgent/schemas/tools/toolEditDbtProjectArgs.js.map +1 -1
- package/dist/types/ee/AiAgent/schemas/tools/toolFindExploresArgs.d.ts +179 -5
- package/dist/types/ee/AiAgent/schemas/tools/toolFindExploresArgs.d.ts.map +1 -1
- package/dist/types/ee/AiAgent/schemas/tools/toolFindExploresArgs.js +16 -4
- package/dist/types/ee/AiAgent/schemas/tools/toolFindExploresArgs.js.map +1 -1
- package/dist/types/ee/AiAgent/schemas/tools/toolFindFieldsArgs.d.ts +94 -5
- package/dist/types/ee/AiAgent/schemas/tools/toolFindFieldsArgs.d.ts.map +1 -1
- package/dist/types/ee/AiAgent/schemas/tools/toolFindFieldsArgs.js +12 -4
- package/dist/types/ee/AiAgent/schemas/tools/toolFindFieldsArgs.js.map +1 -1
- package/dist/types/ee/AiAgent/schemas/tools/toolGenerateDataAppArgs.d.ts +43 -2
- package/dist/types/ee/AiAgent/schemas/tools/toolGenerateDataAppArgs.d.ts.map +1 -1
- package/dist/types/ee/AiAgent/schemas/tools/toolGenerateDataAppArgs.js +51 -3
- package/dist/types/ee/AiAgent/schemas/tools/toolGenerateDataAppArgs.js.map +1 -1
- package/dist/types/ee/AiAgent/schemas/tools/toolGenerateHashesArgs.d.ts +32 -6
- package/dist/types/ee/AiAgent/schemas/tools/toolGenerateHashesArgs.d.ts.map +1 -1
- package/dist/types/ee/AiAgent/schemas/tools/toolGenerateHashesArgs.js +7 -5
- package/dist/types/ee/AiAgent/schemas/tools/toolGenerateHashesArgs.js.map +1 -1
- package/dist/types/ee/AiAgent/schemas/tools/toolGenerateUuidsArgs.d.ts +29 -3
- package/dist/types/ee/AiAgent/schemas/tools/toolGenerateUuidsArgs.d.ts.map +1 -1
- package/dist/types/ee/AiAgent/schemas/tools/toolGenerateUuidsArgs.js +8 -3
- package/dist/types/ee/AiAgent/schemas/tools/toolGenerateUuidsArgs.js.map +1 -1
- package/dist/types/ee/AiAgent/schemas/tools/toolGetDashboardChartsArgs.d.ts +62 -3
- package/dist/types/ee/AiAgent/schemas/tools/toolGetDashboardChartsArgs.d.ts.map +1 -1
- package/dist/types/ee/AiAgent/schemas/tools/toolGetDashboardChartsArgs.js +35 -3
- package/dist/types/ee/AiAgent/schemas/tools/toolGetDashboardChartsArgs.js.map +1 -1
- package/dist/types/ee/AiAgent/schemas/tools/toolGetKnowledgeDocumentContentArgs.d.ts +15 -0
- package/dist/types/ee/AiAgent/schemas/tools/toolGetKnowledgeDocumentContentArgs.d.ts.map +1 -1
- package/dist/types/ee/AiAgent/schemas/tools/toolGetKnowledgeDocumentContentArgs.js +15 -0
- package/dist/types/ee/AiAgent/schemas/tools/toolGetKnowledgeDocumentContentArgs.js.map +1 -1
- package/dist/types/ee/AiAgent/schemas/tools/toolGetMetadataArgs.d.ts +173 -3
- package/dist/types/ee/AiAgent/schemas/tools/toolGetMetadataArgs.d.ts.map +1 -1
- package/dist/types/ee/AiAgent/schemas/tools/toolGetMetadataArgs.js +5 -3
- package/dist/types/ee/AiAgent/schemas/tools/toolGetMetadataArgs.js.map +1 -1
- package/dist/types/ee/AiAgent/schemas/tools/toolIterateDataAppArgs.d.ts +13 -0
- package/dist/types/ee/AiAgent/schemas/tools/toolIterateDataAppArgs.d.ts.map +1 -1
- package/dist/types/ee/AiAgent/schemas/tools/toolIterateDataAppArgs.js +21 -2
- package/dist/types/ee/AiAgent/schemas/tools/toolIterateDataAppArgs.js.map +1 -1
- package/dist/types/types/api.d.ts +2 -2
- package/dist/types/types/api.d.ts.map +1 -1
- package/dist/types/types/api.js.map +1 -1
- package/dist/types/types/document.d.ts +10 -0
- package/dist/types/types/document.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { type AppVersionStatus } from '../../../apps/types';
|
|
3
|
+
import { type ToolErrorStructuredContent } from '../outputMetadata';
|
|
3
4
|
/** Suggested gap between build status polls; a build runs minutes, not seconds. */
|
|
4
5
|
export declare const DATA_APP_BUILD_POLL_INTERVAL_MS = 15000;
|
|
5
6
|
/** Builds run minutes, not seconds: a pending result older than this is stale. */
|
|
@@ -36,6 +37,19 @@ export declare const toolGenerateDataAppArgsSchema: z.ZodObject<{
|
|
|
36
37
|
chartSlugs: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>>;
|
|
37
38
|
themeSlug: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
38
39
|
}, z.core.$strip>;
|
|
40
|
+
export declare const toolGenerateDataAppStructuredContentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
41
|
+
status: z.ZodLiteral<"pending">;
|
|
42
|
+
appUuid: z.ZodString;
|
|
43
|
+
version: z.ZodNumber;
|
|
44
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
45
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
46
|
+
status: z.ZodLiteral<"success">;
|
|
47
|
+
appUuid: z.ZodString;
|
|
48
|
+
version: z.ZodNumber;
|
|
49
|
+
name: z.ZodString;
|
|
50
|
+
slug: z.ZodNullable<z.ZodString>;
|
|
51
|
+
href: z.ZodString;
|
|
52
|
+
}, z.core.$strip>], "status">;
|
|
39
53
|
export declare const toolGenerateDataAppOutputSchema: z.ZodObject<{
|
|
40
54
|
result: z.ZodString;
|
|
41
55
|
metadata: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -59,14 +73,40 @@ export declare const toolGenerateDataAppOutputSchema: z.ZodObject<{
|
|
|
59
73
|
}>;
|
|
60
74
|
message: z.ZodString;
|
|
61
75
|
}, z.core.$strip>], "status">;
|
|
76
|
+
structuredContent: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
77
|
+
status: z.ZodLiteral<"pending">;
|
|
78
|
+
appUuid: z.ZodString;
|
|
79
|
+
version: z.ZodNumber;
|
|
80
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
81
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
82
|
+
status: z.ZodLiteral<"success">;
|
|
83
|
+
appUuid: z.ZodString;
|
|
84
|
+
version: z.ZodNumber;
|
|
85
|
+
name: z.ZodString;
|
|
86
|
+
slug: z.ZodNullable<z.ZodString>;
|
|
87
|
+
href: z.ZodString;
|
|
88
|
+
}, z.core.$strip>], "status">, z.ZodObject<{
|
|
89
|
+
error: z.ZodString;
|
|
90
|
+
}, z.core.$strip>]>;
|
|
62
91
|
}, z.core.$strip>;
|
|
63
92
|
export type ToolGenerateDataAppArgs = z.infer<typeof toolGenerateDataAppArgsSchema>;
|
|
64
93
|
export type ToolGenerateDataAppOutput = z.infer<typeof toolGenerateDataAppOutputSchema>;
|
|
94
|
+
export type ToolGenerateDataAppStructuredContent = z.infer<typeof toolGenerateDataAppStructuredContentSchema>;
|
|
95
|
+
type ToolGenerateDataAppMetadata = ToolGenerateDataAppOutput['metadata'];
|
|
65
96
|
export type ToolGenerateDataAppTerminalResult = {
|
|
66
97
|
result: string;
|
|
67
|
-
metadata:
|
|
68
|
-
status: '
|
|
98
|
+
metadata: Extract<ToolGenerateDataAppMetadata, {
|
|
99
|
+
status: 'success';
|
|
100
|
+
}>;
|
|
101
|
+
structuredContent: Extract<ToolGenerateDataAppStructuredContent, {
|
|
102
|
+
status: 'success';
|
|
103
|
+
}>;
|
|
104
|
+
} | {
|
|
105
|
+
result: string;
|
|
106
|
+
metadata: Extract<ToolGenerateDataAppMetadata, {
|
|
107
|
+
status: 'error';
|
|
69
108
|
}>;
|
|
109
|
+
structuredContent: ToolErrorStructuredContent;
|
|
70
110
|
};
|
|
71
111
|
export declare const isToolGenerateDataAppResult: <T extends {
|
|
72
112
|
toolType: string;
|
|
@@ -107,4 +147,5 @@ export declare const getGenerateDataAppBuildOutcome: ({ siteUrl, projectUuid, ap
|
|
|
107
147
|
statusMessage: string | null;
|
|
108
148
|
}) => ToolGenerateDataAppTerminalResult | null;
|
|
109
149
|
export declare const getExpiredGenerateDataAppBuildOutcome: (appUuid: string) => ToolGenerateDataAppTerminalResult;
|
|
150
|
+
export {};
|
|
110
151
|
//# sourceMappingURL=toolGenerateDataAppArgs.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toolGenerateDataAppArgs.d.ts","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/tools/toolGenerateDataAppArgs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAGH,KAAK,gBAAgB,EAExB,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"toolGenerateDataAppArgs.d.ts","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/tools/toolGenerateDataAppArgs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAGH,KAAK,gBAAgB,EAExB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAEH,KAAK,0BAA0B,EAClC,MAAM,mBAAmB,CAAC;AAG3B,mFAAmF;AACnF,eAAO,MAAM,+BAA+B,QAAS,CAAC;AAEtD,kFAAkF;AAClF,eAAO,MAAM,kCAAkC,QAAiB,CAAC;AAEjE,8FAA8F;AAC9F,eAAO,MAAM,wBAAwB,sDAKU,CAAC;AAChD,MAAM,MAAM,oBAAoB,GAAG,CAAC,OAAO,wBAAwB,CAAC,CAAC,MAAM,CAAC,CAAC;AAE7E,6FAA6F;AAC7F,eAAO,MAAM,wBAAwB,6DACyB,CAAC;AAE/D,0HAA0H;AAC1H,eAAO,MAAM,+BAA+B,yQACuN,CAAC;AAEpQ,eAAO,MAAM,kCAAkC,QAMpC,CAAC;AAEZ,0FAA0F;AAC1F,eAAO,MAAM,iCAAiC,yL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;;;;;;;CAGvC,CAAC;AAEF,eAAO,MAAM,qBAAqB,gBACjB,MAAM,iBACJ,MAAM,WAC4B,CAAC;AAItD,eAAO,MAAM,8BAA8B,0FAUxC;IACC,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,MAAM,EAAE,gBAAgB,CAAC;IACzB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;CAChC,KAAG,iCAAiC,GAAG,IAwCvC,CAAC;AAEF,eAAO,MAAM,qCAAqC,YACrC,MAAM,KAChB,iCAUF,CAAC"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getExpiredGenerateDataAppBuildOutcome = exports.getGenerateDataAppBuildOutcome = exports.getDataAppBuilderPath = exports.isToolGenerateDataAppResult = exports.toolGenerateDataAppOutputSchema = exports.toolGenerateDataAppArgsSchema = exports.mcpDataAppBuildStartedOutputSchema = exports.MCP_TOOL_GENERATE_DATA_APP_DESCRIPTION = exports.MCP_DATA_APP_PLACEMENT_GUIDANCE = exports.MCP_DATA_APP_AGENT_SCOPE_GUIDANCE = exports.TOOL_GENERATE_DATA_APP_DESCRIPTION = exports.DATA_APP_THEME_SLUG_DESCRIPTION = exports.DATA_APP_VIZ_LINE_FORMAT = exports.DATA_APP_BUILD_TEMPLATES = exports.AI_DATA_APP_BUILD_PENDING_GRACE_MS = exports.DATA_APP_BUILD_POLL_INTERVAL_MS = void 0;
|
|
3
|
+
exports.getExpiredGenerateDataAppBuildOutcome = exports.getGenerateDataAppBuildOutcome = exports.getDataAppBuilderPath = exports.isToolGenerateDataAppResult = exports.toolGenerateDataAppOutputSchema = exports.toolGenerateDataAppStructuredContentSchema = exports.toolGenerateDataAppArgsSchema = exports.mcpDataAppBuildStartedOutputSchema = exports.MCP_TOOL_GENERATE_DATA_APP_DESCRIPTION = exports.MCP_DATA_APP_PLACEMENT_GUIDANCE = exports.MCP_DATA_APP_AGENT_SCOPE_GUIDANCE = exports.TOOL_GENERATE_DATA_APP_DESCRIPTION = exports.DATA_APP_THEME_SLUG_DESCRIPTION = exports.DATA_APP_VIZ_LINE_FORMAT = exports.DATA_APP_BUILD_TEMPLATES = exports.AI_DATA_APP_BUILD_PENDING_GRACE_MS = exports.DATA_APP_BUILD_POLL_INTERVAL_MS = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const types_1 = require("../../../apps/types");
|
|
6
|
+
const outputMetadata_1 = require("../outputMetadata");
|
|
6
7
|
const builtInToolResultGuard_1 = require("./builtInToolResultGuard");
|
|
7
8
|
/** Suggested gap between build status polls; a build runs minutes, not seconds. */
|
|
8
9
|
exports.DATA_APP_BUILD_POLL_INTERVAL_MS = 15000;
|
|
@@ -92,6 +93,36 @@ exports.toolGenerateDataAppArgsSchema = zod_1.z.object({
|
|
|
92
93
|
.default(null)
|
|
93
94
|
.describe(exports.DATA_APP_THEME_SLUG_DESCRIPTION),
|
|
94
95
|
});
|
|
96
|
+
const appUuidSchema = zod_1.z.string().describe('Uuid of the data app.');
|
|
97
|
+
const versionSchema = zod_1.z
|
|
98
|
+
.number()
|
|
99
|
+
.describe('App version this build produces; 1 for a new app.');
|
|
100
|
+
const pendingBuildSchema = zod_1.z.object({
|
|
101
|
+
status: zod_1.z
|
|
102
|
+
.literal('pending')
|
|
103
|
+
.describe('The build has started and is still running; its outcome replaces this result on a later turn.'),
|
|
104
|
+
appUuid: appUuidSchema,
|
|
105
|
+
version: versionSchema,
|
|
106
|
+
// Nullish: iterate results and results persisted before generate
|
|
107
|
+
// took a name lack it.
|
|
108
|
+
name: zod_1.z.string().nullish(),
|
|
109
|
+
});
|
|
110
|
+
const readyBuildSchema = zod_1.z.object({
|
|
111
|
+
status: zod_1.z
|
|
112
|
+
.literal('success')
|
|
113
|
+
.describe('The build finished; the app version is ready.'),
|
|
114
|
+
appUuid: appUuidSchema,
|
|
115
|
+
version: versionSchema,
|
|
116
|
+
name: zod_1.z.string().describe('Name of the data app.'),
|
|
117
|
+
slug: zod_1.z
|
|
118
|
+
.string()
|
|
119
|
+
.nullable()
|
|
120
|
+
.describe('Slug of the data app, the appSlug for iterateDataApp.'),
|
|
121
|
+
href: zod_1.z.string().describe('URL of the app in the builder.'),
|
|
122
|
+
});
|
|
123
|
+
exports.toolGenerateDataAppStructuredContentSchema = zod_1.z.discriminatedUnion('status', [pendingBuildSchema, readyBuildSchema]);
|
|
124
|
+
// Metadata carries a third `pending` status, so it is not the object
|
|
125
|
+
// `structuredToolOutputSchema` takes; the envelope is spelled out instead.
|
|
95
126
|
exports.toolGenerateDataAppOutputSchema = zod_1.z.object({
|
|
96
127
|
result: zod_1.z.string(),
|
|
97
128
|
metadata: zod_1.z.discriminatedUnion('status', [
|
|
@@ -120,6 +151,10 @@ exports.toolGenerateDataAppOutputSchema = zod_1.z.object({
|
|
|
120
151
|
message: zod_1.z.string(),
|
|
121
152
|
}),
|
|
122
153
|
]),
|
|
154
|
+
structuredContent: zod_1.z.union([
|
|
155
|
+
exports.toolGenerateDataAppStructuredContentSchema,
|
|
156
|
+
outputMetadata_1.toolErrorStructuredContentSchema,
|
|
157
|
+
]),
|
|
123
158
|
});
|
|
124
159
|
exports.isToolGenerateDataAppResult = (0, builtInToolResultGuard_1.makeBuiltInToolResultGuard)('generateDataApp', exports.toolGenerateDataAppOutputSchema.shape.metadata);
|
|
125
160
|
const getDataAppBuilderPath = (projectUuid, appUuidOrSlug) => `/projects/${projectUuid}/apps/${appUuidOrSlug}`;
|
|
@@ -136,31 +171,44 @@ const getGenerateDataAppBuildOutcome = ({ siteUrl, projectUuid, appUuid, version
|
|
|
136
171
|
const readyPhrase = version === 1
|
|
137
172
|
? `The data app "${name}" is ready.`
|
|
138
173
|
: `Version ${version} of the data app "${name}" is ready.`;
|
|
174
|
+
const readyBuild = {
|
|
175
|
+
status: 'success',
|
|
176
|
+
appUuid,
|
|
177
|
+
version,
|
|
178
|
+
name,
|
|
179
|
+
slug,
|
|
180
|
+
href,
|
|
181
|
+
};
|
|
139
182
|
return {
|
|
140
183
|
result: `${readyPhrase} The user can view it from this thread.`,
|
|
141
|
-
metadata:
|
|
184
|
+
metadata: readyBuild,
|
|
185
|
+
structuredContent: readyBuild,
|
|
142
186
|
};
|
|
143
187
|
}
|
|
144
188
|
const cancelled = error === types_1.APP_VERSION_CANCELLED_BY_USER;
|
|
145
189
|
const message = cancelled
|
|
146
190
|
? 'The build was cancelled.'
|
|
147
191
|
: (statusMessage ?? 'The build failed.');
|
|
192
|
+
const result = `The data app build did not finish: ${message}`;
|
|
148
193
|
return {
|
|
149
|
-
result
|
|
194
|
+
result,
|
|
150
195
|
metadata: {
|
|
151
196
|
status: 'error',
|
|
152
197
|
appUuid,
|
|
153
198
|
reason: cancelled ? 'cancelled' : 'failed',
|
|
154
199
|
message,
|
|
155
200
|
},
|
|
201
|
+
structuredContent: { error: result },
|
|
156
202
|
};
|
|
157
203
|
};
|
|
158
204
|
exports.getGenerateDataAppBuildOutcome = getGenerateDataAppBuildOutcome;
|
|
159
205
|
const getExpiredGenerateDataAppBuildOutcome = (appUuid) => {
|
|
160
206
|
const message = `The build did not report an outcome within ${exports.AI_DATA_APP_BUILD_PENDING_GRACE_MS / 60000} minutes.`;
|
|
207
|
+
const result = `The data app build did not finish: ${message}`;
|
|
161
208
|
return {
|
|
162
|
-
result
|
|
209
|
+
result,
|
|
163
210
|
metadata: { status: 'error', appUuid, reason: 'failed', message },
|
|
211
|
+
structuredContent: { error: result },
|
|
164
212
|
};
|
|
165
213
|
};
|
|
166
214
|
exports.getExpiredGenerateDataAppBuildOutcome = getExpiredGenerateDataAppBuildOutcome;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toolGenerateDataAppArgs.js","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/tools/toolGenerateDataAppArgs.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,+CAK6B;AAC7B,qEAAsE;AAEtE,mFAAmF;AACtE,QAAA,+BAA+B,GAAG,KAAM,CAAC;AAEtD,kFAAkF;AACrE,QAAA,kCAAkC,GAAG,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC;AAEjE,8FAA8F;AACjF,QAAA,wBAAwB,GAAG;IACpC,WAAW;IACX,WAAW;IACX,KAAK;IACL,QAAQ;CACmC,CAAC;AAGhD,6FAA6F;AAChF,QAAA,wBAAwB,GACjC,0DAA0D,CAAC;AAE/D,0HAA0H;AAC7G,QAAA,+BAA+B,GACxC,+PAA+P,CAAC;AAEvP,QAAA,kCAAkC,GAAG;IAC9C,4HAA4H;IAC5H,uLAAuL;IACvL,uGAAuG;IACvG,mHAAmH;IACnH,+TAA+T;CAClU,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAEZ,0FAA0F;AAC7E,QAAA,iCAAiC,GAC1C,sLAAsL,CAAC;AAE3L,2EAA2E;AAC9D,QAAA,+BAA+B,GAAG;IAC3C,qIAAqI;IACrI,QAAA,iCAAiC;CACpC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAEA,QAAA,sCAAsC,GAAG;;;;;;;0KAQlD,QAAA,+BAA+B,GAAG,IACtC;EACE,QAAA,+BAA+B;;;;;;;;;;;CAWhC,CAAC;AAEF,oFAAoF;AACvE,QAAA,kCAAkC,GAAG,OAAC,CAAC,MAAM,CAAC;IACvD,IAAI,EAAE,OAAC;SACF,MAAM,EAAE;SACR,QAAQ,CACL,mEAAmE,CACtE;IACL,OAAO,EAAE,OAAC;SACL,MAAM,EAAE;SACR,GAAG,EAAE;SACL,QAAQ,EAAE;SACV,QAAQ,CAAC,6CAA6C,CAAC;CAC/D,CAAC,CAAC;AAMU,QAAA,6BA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C,OAAO,CAAC,SAAS,CAAC;YAC5B,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE;YACnB,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE;YACnB,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;YAChB,iEAAiE;YACjE,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,OAAO,EAAE;YAC1B,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;SACnB,CAAC;QACF,OAAC,CAAC,MAAM,CAAC;YACL,MAAM,EAAE,OAAC,CAAC,OAAO,CAAC,OAAO,CAAC;YAC1B,+DAA+D;YAC/D,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;YAC9B,MAAM,EAAE,OAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,WAAW,CAAC,CAAC;YACvC,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE;SACtB,CAAC;KACL,CAAC;CACL,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"toolGenerateDataAppArgs.js","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/tools/toolGenerateDataAppArgs.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,+CAK6B;AAC7B,sDAG2B;AAC3B,qEAAsE;AAEtE,mFAAmF;AACtE,QAAA,+BAA+B,GAAG,KAAM,CAAC;AAEtD,kFAAkF;AACrE,QAAA,kCAAkC,GAAG,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC;AAEjE,8FAA8F;AACjF,QAAA,wBAAwB,GAAG;IACpC,WAAW;IACX,WAAW;IACX,KAAK;IACL,QAAQ;CACmC,CAAC;AAGhD,6FAA6F;AAChF,QAAA,wBAAwB,GACjC,0DAA0D,CAAC;AAE/D,0HAA0H;AAC7G,QAAA,+BAA+B,GACxC,+PAA+P,CAAC;AAEvP,QAAA,kCAAkC,GAAG;IAC9C,4HAA4H;IAC5H,uLAAuL;IACvL,uGAAuG;IACvG,mHAAmH;IACnH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;QACH,MAAM;QACN,QAAQ,EAAE;YACN,MAAM,EAAE,OAAO;YACf,OAAO;YACP,MAAM,EAAE,SAAS,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,QAAQ;YAC1C,OAAO;SACV;QACD,iBAAiB,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE;KACvC,CAAC;AACN,CAAC,CAAC;AA5DW,QAAA,8BAA8B,GAA9B,8BAA8B,CA4DzC;AAEK,MAAM,qCAAqC,GAAG,CACjD,OAAe,EACkB,EAAE;IACnC,MAAM,OAAO,GAAG,8CACZ,QAAA,kCAAkC,GAAG,KACzC,WAAW,CAAC;IACZ,MAAM,MAAM,GAAG,sCAAsC,OAAO,EAAE,CAAC;IAC/D,OAAO;QACH,MAAM;QACN,QAAQ,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE;QACjE,iBAAiB,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE;KACvC,CAAC;AACN,CAAC,CAAC;AAZW,QAAA,qCAAqC,GAArC,qCAAqC,CAYhD"}
|
|
@@ -3,18 +3,44 @@ export declare const TOOL_GENERATE_HASHES_DESCRIPTION = "Generate deterministic
|
|
|
3
3
|
export declare const toolGenerateHashesArgsSchema: z.ZodObject<{
|
|
4
4
|
inputs: z.ZodArray<z.ZodString>;
|
|
5
5
|
}, z.core.$strip>;
|
|
6
|
-
export declare const
|
|
6
|
+
export declare const mcpGenerateHashesStructuredOutputSchema: z.ZodObject<{
|
|
7
|
+
hashes: z.ZodArray<z.ZodString>;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
export declare const toolGenerateHashesStructuredContentSchema: z.ZodObject<{
|
|
10
|
+
hashes: z.ZodArray<z.ZodString>;
|
|
11
|
+
}, z.core.$strip>;
|
|
12
|
+
export declare const toolGenerateHashesOutputSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
7
13
|
result: z.ZodString;
|
|
8
|
-
metadata: z.ZodObject<{
|
|
14
|
+
metadata: z.ZodIntersection<z.ZodObject<{
|
|
9
15
|
status: z.ZodEnum<{
|
|
10
16
|
error: "error";
|
|
11
17
|
success: "success";
|
|
12
18
|
}>;
|
|
19
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
20
|
+
status: z.ZodEnum<{
|
|
21
|
+
success: "success";
|
|
22
|
+
}>;
|
|
23
|
+
}, z.core.$strip>>;
|
|
24
|
+
structuredContent: z.ZodObject<{
|
|
25
|
+
hashes: z.ZodArray<z.ZodString>;
|
|
13
26
|
}, z.core.$strip>;
|
|
14
|
-
}, z.core.$strip
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
27
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
28
|
+
result: z.ZodString;
|
|
29
|
+
metadata: z.ZodIntersection<z.ZodObject<{
|
|
30
|
+
status: z.ZodEnum<{
|
|
31
|
+
error: "error";
|
|
32
|
+
success: "success";
|
|
33
|
+
}>;
|
|
34
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
35
|
+
status: z.ZodEnum<{
|
|
36
|
+
error: "error";
|
|
37
|
+
}>;
|
|
38
|
+
}, z.core.$strip>>;
|
|
39
|
+
structuredContent: z.ZodObject<{
|
|
40
|
+
error: z.ZodString;
|
|
41
|
+
}, z.core.$strip>;
|
|
42
|
+
}, z.core.$strip>]>;
|
|
18
43
|
export type ToolGenerateHashesArgs = z.infer<typeof toolGenerateHashesArgsSchema>;
|
|
44
|
+
export type ToolGenerateHashesStructuredContent = z.infer<typeof toolGenerateHashesStructuredContentSchema>;
|
|
19
45
|
export type ToolGenerateHashesOutput = z.infer<typeof toolGenerateHashesOutputSchema>;
|
|
20
46
|
//# sourceMappingURL=toolGenerateHashesArgs.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toolGenerateHashesArgs.d.ts","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/tools/toolGenerateHashesArgs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"toolGenerateHashesArgs.d.ts","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/tools/toolGenerateHashesArgs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,gCAAgC,6DACiB,CAAC;AAE/D,eAAO,MAAM,4BAA4B;;iBAMvC,CAAC;AAEH,eAAO,MAAM,uCAAuC;;iBAIlD,CAAC;AAGH,eAAO,MAAM,yCAAyC;;iBACX,CAAC;AAE5C,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAGzC,CAAC;AAEH,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CACxC,OAAO,4BAA4B,CACtC,CAAC;AAEF,MAAM,MAAM,mCAAmC,GAAG,CAAC,CAAC,KAAK,CACrD,OAAO,yCAAyC,CACnD,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAC1C,OAAO,8BAA8B,CACxC,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.toolGenerateHashesOutputSchema = exports.toolGenerateHashesStructuredContentSchema = exports.mcpGenerateHashesStructuredOutputSchema = exports.toolGenerateHashesArgsSchema = exports.TOOL_GENERATE_HASHES_DESCRIPTION = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const outputMetadata_1 = require("../outputMetadata");
|
|
6
6
|
exports.TOOL_GENERATE_HASHES_DESCRIPTION = 'Generate deterministic base-36 hashes for input strings.';
|
|
@@ -11,13 +11,15 @@ exports.toolGenerateHashesArgsSchema = zod_1.z.object({
|
|
|
11
11
|
.max(20)
|
|
12
12
|
.describe('Input strings to hash.'),
|
|
13
13
|
});
|
|
14
|
-
exports.toolGenerateHashesOutputSchema = zod_1.z.object({
|
|
15
|
-
result: zod_1.z.string(),
|
|
16
|
-
metadata: outputMetadata_1.baseOutputMetadataSchema,
|
|
17
|
-
});
|
|
18
14
|
exports.mcpGenerateHashesStructuredOutputSchema = zod_1.z.object({
|
|
19
15
|
hashes: zod_1.z
|
|
20
16
|
.array(zod_1.z.string().regex(/^[0-9a-z]{6}$/))
|
|
21
17
|
.describe('Base-36 hashes in the same order as the input strings.'),
|
|
22
18
|
});
|
|
19
|
+
// Agent and MCP surface the same structured shape.
|
|
20
|
+
exports.toolGenerateHashesStructuredContentSchema = exports.mcpGenerateHashesStructuredOutputSchema;
|
|
21
|
+
exports.toolGenerateHashesOutputSchema = (0, outputMetadata_1.structuredToolOutputSchema)({
|
|
22
|
+
metadata: outputMetadata_1.baseOutputMetadataSchema,
|
|
23
|
+
structuredContent: exports.toolGenerateHashesStructuredContentSchema,
|
|
24
|
+
});
|
|
23
25
|
//# sourceMappingURL=toolGenerateHashesArgs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toolGenerateHashesArgs.js","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/tools/toolGenerateHashesArgs.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,
|
|
1
|
+
{"version":3,"file":"toolGenerateHashesArgs.js","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/tools/toolGenerateHashesArgs.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,sDAG2B;AAEd,QAAA,gCAAgC,GACzC,0DAA0D,CAAC;AAElD,QAAA,4BAA4B,GAAG,OAAC,CAAC,MAAM,CAAC;IACjD,MAAM,EAAE,OAAC;SACJ,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC;SACjB,GAAG,CAAC,CAAC,CAAC;SACN,GAAG,CAAC,EAAE,CAAC;SACP,QAAQ,CAAC,wBAAwB,CAAC;CAC1C,CAAC,CAAC;AAEU,QAAA,uCAAuC,GAAG,OAAC,CAAC,MAAM,CAAC;IAC5D,MAAM,EAAE,OAAC;SACJ,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC;SACxC,QAAQ,CAAC,wDAAwD,CAAC;CAC1E,CAAC,CAAC;AAEH,mDAAmD;AACtC,QAAA,yCAAyC,GAClD,QAAA,uCAAuC,CAAC;AAE/B,QAAA,8BAA8B,GAAG,IAAA,2CAA0B,EAAC;IACrE,QAAQ,EAAE,yCAAwB;IAClC,iBAAiB,EAAE,QAAA,yCAAyC;CAC/D,CAAC,CAAC"}
|
|
@@ -3,15 +3,41 @@ export declare const TOOL_GENERATE_UUIDS_DESCRIPTION = "Generate one or more UUI
|
|
|
3
3
|
export declare const toolGenerateUuidsArgsSchema: z.ZodObject<{
|
|
4
4
|
count: z.ZodCoercedNumber<unknown>;
|
|
5
5
|
}, z.core.$strip>;
|
|
6
|
-
export declare const
|
|
6
|
+
export declare const toolGenerateUuidsStructuredContentSchema: z.ZodObject<{
|
|
7
|
+
uuids: z.ZodArray<z.ZodString>;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
export declare const toolGenerateUuidsOutputSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
7
10
|
result: z.ZodString;
|
|
8
|
-
metadata: z.ZodObject<{
|
|
11
|
+
metadata: z.ZodIntersection<z.ZodObject<{
|
|
9
12
|
status: z.ZodEnum<{
|
|
10
13
|
error: "error";
|
|
11
14
|
success: "success";
|
|
12
15
|
}>;
|
|
16
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
17
|
+
status: z.ZodEnum<{
|
|
18
|
+
success: "success";
|
|
19
|
+
}>;
|
|
20
|
+
}, z.core.$strip>>;
|
|
21
|
+
structuredContent: z.ZodObject<{
|
|
22
|
+
uuids: z.ZodArray<z.ZodString>;
|
|
13
23
|
}, z.core.$strip>;
|
|
14
|
-
}, z.core.$strip
|
|
24
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
25
|
+
result: z.ZodString;
|
|
26
|
+
metadata: z.ZodIntersection<z.ZodObject<{
|
|
27
|
+
status: z.ZodEnum<{
|
|
28
|
+
error: "error";
|
|
29
|
+
success: "success";
|
|
30
|
+
}>;
|
|
31
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
32
|
+
status: z.ZodEnum<{
|
|
33
|
+
error: "error";
|
|
34
|
+
}>;
|
|
35
|
+
}, z.core.$strip>>;
|
|
36
|
+
structuredContent: z.ZodObject<{
|
|
37
|
+
error: z.ZodString;
|
|
38
|
+
}, z.core.$strip>;
|
|
39
|
+
}, z.core.$strip>]>;
|
|
15
40
|
export type ToolGenerateUuidsArgs = z.infer<typeof toolGenerateUuidsArgsSchema>;
|
|
41
|
+
export type ToolGenerateUuidsStructuredContent = z.infer<typeof toolGenerateUuidsStructuredContentSchema>;
|
|
16
42
|
export type ToolGenerateUuidsOutput = z.infer<typeof toolGenerateUuidsOutputSchema>;
|
|
17
43
|
//# sourceMappingURL=toolGenerateUuidsArgs.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toolGenerateUuidsArgs.d.ts","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/tools/toolGenerateUuidsArgs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"toolGenerateUuidsArgs.d.ts","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/tools/toolGenerateUuidsArgs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,+BAA+B,uFAC4C,CAAC;AAEzF,eAAO,MAAM,2BAA2B;;iBAMtC,CAAC;AAEH,eAAO,MAAM,wCAAwC;;iBAInD,CAAC;AAEH,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAGxC,CAAC;AAEH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAEhF,MAAM,MAAM,kCAAkC,GAAG,CAAC,CAAC,KAAK,CACpD,OAAO,wCAAwC,CAClD,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CACzC,OAAO,6BAA6B,CACvC,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.toolGenerateUuidsOutputSchema = exports.toolGenerateUuidsArgsSchema = exports.TOOL_GENERATE_UUIDS_DESCRIPTION = void 0;
|
|
3
|
+
exports.toolGenerateUuidsOutputSchema = exports.toolGenerateUuidsStructuredContentSchema = exports.toolGenerateUuidsArgsSchema = exports.TOOL_GENERATE_UUIDS_DESCRIPTION = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const outputMetadata_1 = require("../outputMetadata");
|
|
6
6
|
exports.TOOL_GENERATE_UUIDS_DESCRIPTION = 'Generate one or more UUIDs to use as stable identifiers when creating new objects.';
|
|
@@ -11,8 +11,13 @@ exports.toolGenerateUuidsArgsSchema = zod_1.z.object({
|
|
|
11
11
|
.max(20)
|
|
12
12
|
.describe('Number of UUIDs to generate.'),
|
|
13
13
|
});
|
|
14
|
-
exports.
|
|
15
|
-
|
|
14
|
+
exports.toolGenerateUuidsStructuredContentSchema = zod_1.z.object({
|
|
15
|
+
uuids: zod_1.z
|
|
16
|
+
.array(zod_1.z.string())
|
|
17
|
+
.describe('The freshly generated UUIDs, one per requested count.'),
|
|
18
|
+
});
|
|
19
|
+
exports.toolGenerateUuidsOutputSchema = (0, outputMetadata_1.structuredToolOutputSchema)({
|
|
16
20
|
metadata: outputMetadata_1.baseOutputMetadataSchema,
|
|
21
|
+
structuredContent: exports.toolGenerateUuidsStructuredContentSchema,
|
|
17
22
|
});
|
|
18
23
|
//# sourceMappingURL=toolGenerateUuidsArgs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toolGenerateUuidsArgs.js","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/tools/toolGenerateUuidsArgs.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,
|
|
1
|
+
{"version":3,"file":"toolGenerateUuidsArgs.js","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/tools/toolGenerateUuidsArgs.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,sDAG2B;AAEd,QAAA,+BAA+B,GACxC,oFAAoF,CAAC;AAE5E,QAAA,2BAA2B,GAAG,OAAC,CAAC,MAAM,CAAC;IAChD,KAAK,EAAE,OAAC,CAAC,MAAM;SACV,MAAM,EAAE;SACR,GAAG,CAAC,CAAC,CAAC;SACN,GAAG,CAAC,EAAE,CAAC;SACP,QAAQ,CAAC,8BAA8B,CAAC;CAChD,CAAC,CAAC;AAEU,QAAA,wCAAwC,GAAG,OAAC,CAAC,MAAM,CAAC;IAC7D,KAAK,EAAE,OAAC;SACH,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC;SACjB,QAAQ,CAAC,uDAAuD,CAAC;CACzE,CAAC,CAAC;AAEU,QAAA,6BAA6B,GAAG,IAAA,2CAA0B,EAAC;IACpE,QAAQ,EAAE,yCAAwB;IAClC,iBAAiB,EAAE,QAAA,wCAAwC;CAC9D,CAAC,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import { ChartKind } from '../../../../types/savedCharts';
|
|
2
3
|
export declare const TOOL_GET_DASHBOARD_CHARTS_DESCRIPTION = "Tool: \"getDashboardCharts\"\nPurpose:\nRetrieves the list of charts within a specific dashboard, with pagination support.\n\nUsage tips:\n- Use this tool after \"findContent\" to drill into a specific dashboard's charts.\n- Requires a dashboardUuid, which you can get from \"findContent\" results. Also pass the dashboardName for display purposes.\n- Results are paginated \u2014 use the page parameter to get more results if needed.\n- Each chart includes its name, description, type, and view count.";
|
|
3
4
|
export declare const toolGetDashboardChartsArgsSchema: z.ZodObject<{
|
|
4
5
|
dashboardUuid: z.ZodString;
|
|
@@ -12,16 +13,74 @@ export declare const toolGetDashboardChartsArgsSchemaTransformed: z.ZodObject<{
|
|
|
12
13
|
} & {
|
|
13
14
|
page: z.ZodNullable<z.ZodNumber>;
|
|
14
15
|
}, z.core.$strip>;
|
|
15
|
-
export declare const
|
|
16
|
+
export declare const toolGetDashboardChartsStructuredContentSchema: z.ZodObject<{
|
|
17
|
+
dashboardUuid: z.ZodString;
|
|
18
|
+
dashboardName: z.ZodString;
|
|
19
|
+
page: z.ZodNumber;
|
|
20
|
+
pageSize: z.ZodNumber;
|
|
21
|
+
totalPageCount: z.ZodNumber;
|
|
22
|
+
totalResults: z.ZodNumber;
|
|
23
|
+
charts: z.ZodArray<z.ZodObject<{
|
|
24
|
+
uuid: z.ZodString;
|
|
25
|
+
name: z.ZodString;
|
|
26
|
+
description: z.ZodNullable<z.ZodString>;
|
|
27
|
+
chartType: z.ZodEnum<typeof ChartKind>;
|
|
28
|
+
viewsCount: z.ZodNumber;
|
|
29
|
+
verification: z.ZodNullable<z.ZodObject<{
|
|
30
|
+
verifiedBy: z.ZodString;
|
|
31
|
+
verifiedAt: z.ZodString;
|
|
32
|
+
}, z.core.$strip>>;
|
|
33
|
+
}, z.core.$strip>>;
|
|
34
|
+
}, z.core.$strip>;
|
|
35
|
+
export declare const toolGetDashboardChartsOutputSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
16
36
|
result: z.ZodString;
|
|
17
|
-
metadata: z.ZodObject<{
|
|
37
|
+
metadata: z.ZodIntersection<z.ZodObject<{
|
|
18
38
|
status: z.ZodEnum<{
|
|
19
39
|
error: "error";
|
|
20
40
|
success: "success";
|
|
21
41
|
}>;
|
|
42
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
43
|
+
status: z.ZodEnum<{
|
|
44
|
+
success: "success";
|
|
45
|
+
}>;
|
|
46
|
+
}, z.core.$strip>>;
|
|
47
|
+
structuredContent: z.ZodObject<{
|
|
48
|
+
dashboardUuid: z.ZodString;
|
|
49
|
+
dashboardName: z.ZodString;
|
|
50
|
+
page: z.ZodNumber;
|
|
51
|
+
pageSize: z.ZodNumber;
|
|
52
|
+
totalPageCount: z.ZodNumber;
|
|
53
|
+
totalResults: z.ZodNumber;
|
|
54
|
+
charts: z.ZodArray<z.ZodObject<{
|
|
55
|
+
uuid: z.ZodString;
|
|
56
|
+
name: z.ZodString;
|
|
57
|
+
description: z.ZodNullable<z.ZodString>;
|
|
58
|
+
chartType: z.ZodEnum<typeof ChartKind>;
|
|
59
|
+
viewsCount: z.ZodNumber;
|
|
60
|
+
verification: z.ZodNullable<z.ZodObject<{
|
|
61
|
+
verifiedBy: z.ZodString;
|
|
62
|
+
verifiedAt: z.ZodString;
|
|
63
|
+
}, z.core.$strip>>;
|
|
64
|
+
}, z.core.$strip>>;
|
|
22
65
|
}, z.core.$strip>;
|
|
23
|
-
}, z.core.$strip
|
|
66
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
67
|
+
result: z.ZodString;
|
|
68
|
+
metadata: z.ZodIntersection<z.ZodObject<{
|
|
69
|
+
status: z.ZodEnum<{
|
|
70
|
+
error: "error";
|
|
71
|
+
success: "success";
|
|
72
|
+
}>;
|
|
73
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
74
|
+
status: z.ZodEnum<{
|
|
75
|
+
error: "error";
|
|
76
|
+
}>;
|
|
77
|
+
}, z.core.$strip>>;
|
|
78
|
+
structuredContent: z.ZodObject<{
|
|
79
|
+
error: z.ZodString;
|
|
80
|
+
}, z.core.$strip>;
|
|
81
|
+
}, z.core.$strip>]>;
|
|
24
82
|
export type ToolGetDashboardChartsArgs = z.infer<typeof toolGetDashboardChartsArgsSchema>;
|
|
25
83
|
export type ToolGetDashboardChartsArgsTransformed = ToolGetDashboardChartsArgs;
|
|
84
|
+
export type ToolGetDashboardChartsStructuredContent = z.infer<typeof toolGetDashboardChartsStructuredContentSchema>;
|
|
26
85
|
export type ToolGetDashboardChartsOutput = z.infer<typeof toolGetDashboardChartsOutputSchema>;
|
|
27
86
|
//# sourceMappingURL=toolGetDashboardChartsArgs.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toolGetDashboardChartsArgs.d.ts","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/tools/toolGetDashboardChartsArgs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"toolGetDashboardChartsArgs.d.ts","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/tools/toolGetDashboardChartsArgs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAO1D,eAAO,MAAM,qCAAqC,2fAQiB,CAAC;AAEpE,eAAO,MAAM,gCAAgC;;;;;iBAejC,CAAC;AAEb,eAAO,MAAM,2CAA2C;;;;;iBACpB,CAAC;AAqBrC,eAAO,MAAM,6CAA6C;;;;;;;;;;;;;;;;;;iBAYxD,CAAC;AAEH,eAAO,MAAM,kCAAkC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAG7C,CAAC;AAEH,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAC5C,OAAO,gCAAgC,CAC1C,CAAC;AACF,MAAM,MAAM,qCAAqC,GAAG,0BAA0B,CAAC;AAC/E,MAAM,MAAM,uCAAuC,GAAG,CAAC,CAAC,KAAK,CACzD,OAAO,6CAA6C,CACvD,CAAC;AACF,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAC9C,OAAO,kCAAkC,CAC5C,CAAC"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.toolGetDashboardChartsOutputSchema = exports.toolGetDashboardChartsArgsSchemaTransformed = exports.toolGetDashboardChartsArgsSchema = exports.TOOL_GET_DASHBOARD_CHARTS_DESCRIPTION = void 0;
|
|
3
|
+
exports.toolGetDashboardChartsOutputSchema = exports.toolGetDashboardChartsStructuredContentSchema = exports.toolGetDashboardChartsArgsSchemaTransformed = exports.toolGetDashboardChartsArgsSchema = exports.TOOL_GET_DASHBOARD_CHARTS_DESCRIPTION = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
+
const savedCharts_1 = require("../../../../types/savedCharts");
|
|
5
6
|
const outputMetadata_1 = require("../outputMetadata");
|
|
6
7
|
const toolSchemaBuilder_1 = require("../toolSchemaBuilder");
|
|
7
8
|
exports.TOOL_GET_DASHBOARD_CHARTS_DESCRIPTION = `Tool: "getDashboardCharts"
|
|
@@ -26,8 +27,39 @@ exports.toolGetDashboardChartsArgsSchema = (0, toolSchemaBuilder_1.createToolSch
|
|
|
26
27
|
.withPagination()
|
|
27
28
|
.build();
|
|
28
29
|
exports.toolGetDashboardChartsArgsSchemaTransformed = exports.toolGetDashboardChartsArgsSchema;
|
|
29
|
-
|
|
30
|
-
|
|
30
|
+
const dashboardChartSchema = zod_1.z.object({
|
|
31
|
+
uuid: zod_1.z.string(),
|
|
32
|
+
name: zod_1.z.string(),
|
|
33
|
+
description: zod_1.z.string().nullable(),
|
|
34
|
+
chartType: zod_1.z.enum(savedCharts_1.ChartKind),
|
|
35
|
+
viewsCount: zod_1.z.number(),
|
|
36
|
+
verification: zod_1.z
|
|
37
|
+
.object({
|
|
38
|
+
verifiedBy: zod_1.z
|
|
39
|
+
.string()
|
|
40
|
+
.describe('Full name of the user who verified the chart.'),
|
|
41
|
+
verifiedAt: zod_1.z
|
|
42
|
+
.string()
|
|
43
|
+
.describe('When the chart was verified, as an ISO 8601 date.'),
|
|
44
|
+
})
|
|
45
|
+
.nullable()
|
|
46
|
+
.describe('Null when the chart is not verified.'),
|
|
47
|
+
});
|
|
48
|
+
exports.toolGetDashboardChartsStructuredContentSchema = zod_1.z.object({
|
|
49
|
+
dashboardUuid: zod_1.z.string(),
|
|
50
|
+
dashboardName: zod_1.z.string(),
|
|
51
|
+
page: zod_1.z.number().describe('The page of charts returned, starting at 1.'),
|
|
52
|
+
pageSize: zod_1.z.number(),
|
|
53
|
+
totalPageCount: zod_1.z.number(),
|
|
54
|
+
totalResults: zod_1.z
|
|
55
|
+
.number()
|
|
56
|
+
.describe('Total number of charts in the dashboard across all pages.'),
|
|
57
|
+
charts: zod_1.z
|
|
58
|
+
.array(dashboardChartSchema)
|
|
59
|
+
.describe('Charts on this page, verified charts first.'),
|
|
60
|
+
});
|
|
61
|
+
exports.toolGetDashboardChartsOutputSchema = (0, outputMetadata_1.structuredToolOutputSchema)({
|
|
31
62
|
metadata: outputMetadata_1.baseOutputMetadataSchema,
|
|
63
|
+
structuredContent: exports.toolGetDashboardChartsStructuredContentSchema,
|
|
32
64
|
});
|
|
33
65
|
//# sourceMappingURL=toolGetDashboardChartsArgs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toolGetDashboardChartsArgs.js","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/tools/toolGetDashboardChartsArgs.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,
|
|
1
|
+
{"version":3,"file":"toolGetDashboardChartsArgs.js","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/tools/toolGetDashboardChartsArgs.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,+DAA0D;AAC1D,sDAG2B;AAC3B,4DAAwD;AAE3C,QAAA,qCAAqC,GAAG;;;;;;;;mEAQc,CAAC;AAEvD,QAAA,gCAAgC,GAAG,IAAA,oCAAgB,GAAE;KAC7D,MAAM,CAAC;IACJ,aAAa,EAAE,OAAC;SACX,M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AQ,CAAC,6CAA6C,CAAC;CAC/D,CAAC,CAAC;AAEU,QAAA,kCAAkC,GAAG,IAAA,2CAA0B,EAAC;IACzE,QAAQ,EAAE,yCAAwB;IAClC,iBAAiB,EAAE,QAAA,6CAA6C;CACnE,CAAC,CAAC"}
|
|
@@ -4,6 +4,12 @@ export declare const TOOL_GET_KNOWLEDGE_DOCUMENT_CONTENT_DESCRIPTION: ({ runtime
|
|
|
4
4
|
export declare const toolGetKnowledgeDocumentContentArgsSchema: z.ZodObject<{
|
|
5
5
|
documentUuid: z.ZodString;
|
|
6
6
|
}, z.core.$strip>;
|
|
7
|
+
export declare const toolGetKnowledgeDocumentContentStructuredContentSchema: z.ZodObject<{
|
|
8
|
+
uuid: z.ZodString;
|
|
9
|
+
name: z.ZodString;
|
|
10
|
+
mimeType: z.ZodString;
|
|
11
|
+
content: z.ZodString;
|
|
12
|
+
}, z.core.$strip>;
|
|
7
13
|
export declare const toolGetKnowledgeDocumentContentOutputSchema: z.ZodObject<{
|
|
8
14
|
result: z.ZodString;
|
|
9
15
|
metadata: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -13,7 +19,16 @@ export declare const toolGetKnowledgeDocumentContentOutputSchema: z.ZodObject<{
|
|
|
13
19
|
}, z.core.$strip>, z.ZodObject<{
|
|
14
20
|
status: z.ZodLiteral<"error">;
|
|
15
21
|
}, z.core.$strip>], "status">;
|
|
22
|
+
structuredContent: z.ZodUnion<readonly [z.ZodObject<{
|
|
23
|
+
uuid: z.ZodString;
|
|
24
|
+
name: z.ZodString;
|
|
25
|
+
mimeType: z.ZodString;
|
|
26
|
+
content: z.ZodString;
|
|
27
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
28
|
+
error: z.ZodString;
|
|
29
|
+
}, z.core.$strip>]>;
|
|
16
30
|
}, z.core.$strip>;
|
|
17
31
|
export type ToolGetKnowledgeDocumentContentArgs = z.infer<typeof toolGetKnowledgeDocumentContentArgsSchema>;
|
|
32
|
+
export type ToolGetKnowledgeDocumentContentStructuredContent = z.infer<typeof toolGetKnowledgeDocumentContentStructuredContentSchema>;
|
|
18
33
|
export type ToolGetKnowledgeDocumentContentOutput = z.infer<typeof toolGetKnowledgeDocumentContentOutputSchema>;
|
|
19
34
|
//# sourceMappingURL=toolGetKnowledgeDocumentContentArgs.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toolGetKnowledgeDocumentContentArgs.d.ts","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/tools/toolGetKnowledgeDocumentContentArgs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,KAAK,sBAAsB,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"toolGetKnowledgeDocumentContentArgs.d.ts","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/tools/toolGetKnowledgeDocumentContentArgs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,KAAK,sBAAsB,EAAE,MAAM,eAAe,CAAC;AAK5D,eAAO,MAAM,+CAA+C,2BAGzD,sBAAsB,KAAG,MAqB3B,CAAC;AAEF,eAAO,MAAM,yCAAyC;;iBAO1C,CAAC;AAEb,eAAO,MAAM,sDAAsD;;;;;iBAOjE,CAAC;AAIH,eAAO,MAAM,2CAA2C;;;;;;;;;;;;;;;;;iBAgBtD,CAAC;AAEH,MAAM,MAAM,mCAAmC,GAAG,CAAC,CAAC,KAAK,CACrD,OAAO,yCAAyC,CACnD,CAAC;AAEF,MAAM,MAAM,gDAAgD,GAAG,CAAC,CAAC,KAAK,CAClE,OAAO,sDAAsD,CAChE,CAAC;AAEF,MAAM,MAAM,qCAAqC,GAAG,CAAC,CAAC,KAAK,CACvD,OAAO,2CAA2C,CACrD,CAAC"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.toolGetKnowledgeDocumentContentOutputSchema = exports.toolGetKnowledgeDocumentContentArgsSchema = exports.TOOL_GET_KNOWLEDGE_DOCUMENT_CONTENT_DESCRIPTION = void 0;
|
|
3
|
+
exports.toolGetKnowledgeDocumentContentOutputSchema = exports.toolGetKnowledgeDocumentContentStructuredContentSchema = exports.toolGetKnowledgeDocumentContentArgsSchema = exports.TOOL_GET_KNOWLEDGE_DOCUMENT_CONTENT_DESCRIPTION = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
+
const outputMetadata_1 = require("../outputMetadata");
|
|
5
6
|
const toolSchemaBuilder_1 = require("../toolSchemaBuilder");
|
|
6
7
|
const discoveryToolNames_1 = require("./discoveryToolNames");
|
|
7
8
|
const TOOL_GET_KNOWLEDGE_DOCUMENT_CONTENT_DESCRIPTION = ({ runtime, toolName, }) => {
|
|
@@ -32,6 +33,16 @@ exports.toolGetKnowledgeDocumentContentArgsSchema = (0, toolSchemaBuilder_1.crea
|
|
|
32
33
|
.describe('Uuid of the document to read.'),
|
|
33
34
|
})
|
|
34
35
|
.build();
|
|
36
|
+
exports.toolGetKnowledgeDocumentContentStructuredContentSchema = zod_1.z.object({
|
|
37
|
+
uuid: zod_1.z.string().describe('Uuid of the knowledge document that was read.'),
|
|
38
|
+
name: zod_1.z.string().describe('Name of the knowledge document.'),
|
|
39
|
+
mimeType: zod_1.z
|
|
40
|
+
.string()
|
|
41
|
+
.describe('MIME type of the uploaded file the document came from.'),
|
|
42
|
+
content: zod_1.z.string().describe('Full text content of the document.'),
|
|
43
|
+
});
|
|
44
|
+
// Same envelope as `structuredToolOutputSchema`, composed inline because the
|
|
45
|
+
// helper only accepts object metadata and this tool's metadata is a union.
|
|
35
46
|
exports.toolGetKnowledgeDocumentContentOutputSchema = zod_1.z.object({
|
|
36
47
|
result: zod_1.z.string(),
|
|
37
48
|
metadata: zod_1.z.discriminatedUnion('status', [
|
|
@@ -44,5 +55,9 @@ exports.toolGetKnowledgeDocumentContentOutputSchema = zod_1.z.object({
|
|
|
44
55
|
status: zod_1.z.literal('error'),
|
|
45
56
|
}),
|
|
46
57
|
]),
|
|
58
|
+
structuredContent: zod_1.z.union([
|
|
59
|
+
exports.toolGetKnowledgeDocumentContentStructuredContentSchema,
|
|
60
|
+
outputMetadata_1.toolErrorStructuredContentSchema,
|
|
61
|
+
]),
|
|
47
62
|
});
|
|
48
63
|
//# sourceMappingURL=toolGetKnowledgeDocumentContentArgs.js.map
|