@ugm/desiagent 0.1.29 → 0.1.30
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/types/dag.d.ts +21 -21
- package/dist/types/dag.js +1 -1
- package/dist/types/dag.js.map +1 -1
- package/package.json +1 -1
package/dist/types/dag.d.ts
CHANGED
|
@@ -20,27 +20,27 @@ export declare const SubTaskSchema: z.ZodObject<{
|
|
|
20
20
|
expected_output: z.ZodString;
|
|
21
21
|
dependencies: z.ZodArray<z.ZodString, "many">;
|
|
22
22
|
}, "strip", z.ZodTypeAny, {
|
|
23
|
-
thought: string;
|
|
24
23
|
id: string;
|
|
25
24
|
description: string;
|
|
25
|
+
thought: string;
|
|
26
26
|
action_type: "tool" | "inference";
|
|
27
|
-
dependencies: string[];
|
|
28
27
|
tool_or_prompt: {
|
|
29
28
|
name: string;
|
|
30
29
|
params?: Record<string, any> | undefined;
|
|
31
30
|
};
|
|
32
31
|
expected_output: string;
|
|
32
|
+
dependencies: string[];
|
|
33
33
|
}, {
|
|
34
|
-
thought: string;
|
|
35
34
|
id: string;
|
|
36
35
|
description: string;
|
|
36
|
+
thought: string;
|
|
37
37
|
action_type: "tool" | "inference";
|
|
38
|
-
dependencies: string[];
|
|
39
38
|
tool_or_prompt: {
|
|
40
39
|
name: string;
|
|
41
40
|
params?: Record<string, any> | undefined;
|
|
42
41
|
};
|
|
43
42
|
expected_output: string;
|
|
43
|
+
dependencies: string[];
|
|
44
44
|
}>;
|
|
45
45
|
export declare const DecomposerJobSchema: z.ZodEffects<z.ZodObject<{
|
|
46
46
|
original_request: z.ZodString;
|
|
@@ -85,27 +85,27 @@ export declare const DecomposerJobSchema: z.ZodEffects<z.ZodObject<{
|
|
|
85
85
|
expected_output: z.ZodString;
|
|
86
86
|
dependencies: z.ZodArray<z.ZodString, "many">;
|
|
87
87
|
}, "strip", z.ZodTypeAny, {
|
|
88
|
-
thought: string;
|
|
89
88
|
id: string;
|
|
90
89
|
description: string;
|
|
90
|
+
thought: string;
|
|
91
91
|
action_type: "tool" | "inference";
|
|
92
|
-
dependencies: string[];
|
|
93
92
|
tool_or_prompt: {
|
|
94
93
|
name: string;
|
|
95
94
|
params?: Record<string, any> | undefined;
|
|
96
95
|
};
|
|
97
96
|
expected_output: string;
|
|
97
|
+
dependencies: string[];
|
|
98
98
|
}, {
|
|
99
|
-
thought: string;
|
|
100
99
|
id: string;
|
|
101
100
|
description: string;
|
|
101
|
+
thought: string;
|
|
102
102
|
action_type: "tool" | "inference";
|
|
103
|
-
dependencies: string[];
|
|
104
103
|
tool_or_prompt: {
|
|
105
104
|
name: string;
|
|
106
105
|
params?: Record<string, any> | undefined;
|
|
107
106
|
};
|
|
108
107
|
expected_output: string;
|
|
108
|
+
dependencies: string[];
|
|
109
109
|
}>, "many">;
|
|
110
110
|
synthesis_plan: z.ZodString;
|
|
111
111
|
validation: z.ZodObject<{
|
|
@@ -122,7 +122,7 @@ export declare const DecomposerJobSchema: z.ZodEffects<z.ZodObject<{
|
|
|
122
122
|
iteration_triggers: string[];
|
|
123
123
|
}>;
|
|
124
124
|
clarification_needed: z.ZodBoolean;
|
|
125
|
-
clarification_query: z.ZodOptional<z.ZodString>;
|
|
125
|
+
clarification_query: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string, string | null | undefined>;
|
|
126
126
|
}, "strip", z.ZodTypeAny, {
|
|
127
127
|
validation: {
|
|
128
128
|
coverage: string;
|
|
@@ -140,20 +140,20 @@ export declare const DecomposerJobSchema: z.ZodEffects<z.ZodObject<{
|
|
|
140
140
|
grounded_value: string;
|
|
141
141
|
}[];
|
|
142
142
|
sub_tasks: {
|
|
143
|
-
thought: string;
|
|
144
143
|
id: string;
|
|
145
144
|
description: string;
|
|
145
|
+
thought: string;
|
|
146
146
|
action_type: "tool" | "inference";
|
|
147
|
-
dependencies: string[];
|
|
148
147
|
tool_or_prompt: {
|
|
149
148
|
name: string;
|
|
150
149
|
params?: Record<string, any> | undefined;
|
|
151
150
|
};
|
|
152
151
|
expected_output: string;
|
|
152
|
+
dependencies: string[];
|
|
153
153
|
}[];
|
|
154
154
|
synthesis_plan: string;
|
|
155
155
|
clarification_needed: boolean;
|
|
156
|
-
clarification_query
|
|
156
|
+
clarification_query: string;
|
|
157
157
|
}, {
|
|
158
158
|
validation: {
|
|
159
159
|
coverage: string;
|
|
@@ -171,20 +171,20 @@ export declare const DecomposerJobSchema: z.ZodEffects<z.ZodObject<{
|
|
|
171
171
|
grounded_value: string;
|
|
172
172
|
}[];
|
|
173
173
|
sub_tasks: {
|
|
174
|
-
thought: string;
|
|
175
174
|
id: string;
|
|
176
175
|
description: string;
|
|
176
|
+
thought: string;
|
|
177
177
|
action_type: "tool" | "inference";
|
|
178
|
-
dependencies: string[];
|
|
179
178
|
tool_or_prompt: {
|
|
180
179
|
name: string;
|
|
181
180
|
params?: Record<string, any> | undefined;
|
|
182
181
|
};
|
|
183
182
|
expected_output: string;
|
|
183
|
+
dependencies: string[];
|
|
184
184
|
}[];
|
|
185
185
|
synthesis_plan: string;
|
|
186
186
|
clarification_needed: boolean;
|
|
187
|
-
clarification_query?: string | undefined;
|
|
187
|
+
clarification_query?: string | null | undefined;
|
|
188
188
|
}>, {
|
|
189
189
|
validation: {
|
|
190
190
|
coverage: string;
|
|
@@ -202,20 +202,20 @@ export declare const DecomposerJobSchema: z.ZodEffects<z.ZodObject<{
|
|
|
202
202
|
grounded_value: string;
|
|
203
203
|
}[];
|
|
204
204
|
sub_tasks: {
|
|
205
|
-
thought: string;
|
|
206
205
|
id: string;
|
|
207
206
|
description: string;
|
|
207
|
+
thought: string;
|
|
208
208
|
action_type: "tool" | "inference";
|
|
209
|
-
dependencies: string[];
|
|
210
209
|
tool_or_prompt: {
|
|
211
210
|
name: string;
|
|
212
211
|
params?: Record<string, any> | undefined;
|
|
213
212
|
};
|
|
214
213
|
expected_output: string;
|
|
214
|
+
dependencies: string[];
|
|
215
215
|
}[];
|
|
216
216
|
synthesis_plan: string;
|
|
217
217
|
clarification_needed: boolean;
|
|
218
|
-
clarification_query
|
|
218
|
+
clarification_query: string;
|
|
219
219
|
}, {
|
|
220
220
|
validation: {
|
|
221
221
|
coverage: string;
|
|
@@ -233,20 +233,20 @@ export declare const DecomposerJobSchema: z.ZodEffects<z.ZodObject<{
|
|
|
233
233
|
grounded_value: string;
|
|
234
234
|
}[];
|
|
235
235
|
sub_tasks: {
|
|
236
|
-
thought: string;
|
|
237
236
|
id: string;
|
|
238
237
|
description: string;
|
|
238
|
+
thought: string;
|
|
239
239
|
action_type: "tool" | "inference";
|
|
240
|
-
dependencies: string[];
|
|
241
240
|
tool_or_prompt: {
|
|
242
241
|
name: string;
|
|
243
242
|
params?: Record<string, any> | undefined;
|
|
244
243
|
};
|
|
245
244
|
expected_output: string;
|
|
245
|
+
dependencies: string[];
|
|
246
246
|
}[];
|
|
247
247
|
synthesis_plan: string;
|
|
248
248
|
clarification_needed: boolean;
|
|
249
|
-
clarification_query?: string | undefined;
|
|
249
|
+
clarification_query?: string | null | undefined;
|
|
250
250
|
}>;
|
|
251
251
|
export type SubTask = z.infer<typeof SubTaskSchema>;
|
|
252
252
|
export type DecomposerJob = z.infer<typeof DecomposerJobSchema>;
|
package/dist/types/dag.js
CHANGED
|
@@ -33,7 +33,7 @@ export const DecomposerJobSchema = z.object({
|
|
|
33
33
|
iteration_triggers: z.array(z.string()),
|
|
34
34
|
}),
|
|
35
35
|
clarification_needed: z.boolean(),
|
|
36
|
-
clarification_query: z.string().optional(),
|
|
36
|
+
clarification_query: z.string().nullable().optional().transform(v => v ?? ""),
|
|
37
37
|
}).refine((data) => {
|
|
38
38
|
if (data.clarification_needed) {
|
|
39
39
|
return typeof data.clarification_query === 'string' && data.clarification_query.length > 0;
|
package/dist/types/dag.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dag.js","sourceRoot":"","sources":["../../src/types/dag.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAA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