@workglow/ai 0.0.58 → 0.0.60
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/browser.js +72 -97
- package/dist/browser.js.map +12 -12
- package/dist/bun.js +72 -123
- package/dist/bun.js.map +12 -14
- package/dist/common.d.ts +2 -1
- package/dist/common.d.ts.map +1 -1
- package/dist/model/InMemoryModelRepository.d.ts +14 -0
- package/dist/model/InMemoryModelRepository.d.ts.map +1 -0
- package/dist/model/ModelRegistry.d.ts +12 -0
- package/dist/model/ModelRegistry.d.ts.map +1 -1
- package/dist/model/ModelRepository.d.ts +63 -65
- package/dist/model/ModelRepository.d.ts.map +1 -1
- package/dist/model/ModelSchema.d.ts +42 -0
- package/dist/model/ModelSchema.d.ts.map +1 -0
- package/dist/node.js +72 -123
- package/dist/node.js.map +12 -14
- package/dist/provider/AiProviderRegistry.d.ts +15 -3
- package/dist/provider/AiProviderRegistry.d.ts.map +1 -1
- package/dist/task/DownloadModelTask.d.ts +179 -19
- package/dist/task/DownloadModelTask.d.ts.map +1 -1
- package/dist/task/TextEmbeddingTask.d.ts +77 -9
- package/dist/task/TextEmbeddingTask.d.ts.map +1 -1
- package/dist/task/TextGenerationTask.d.ts +77 -9
- package/dist/task/TextGenerationTask.d.ts.map +1 -1
- package/dist/task/TextQuestionAnswerTask.d.ts +77 -9
- package/dist/task/TextQuestionAnswerTask.d.ts.map +1 -1
- package/dist/task/TextRewriterTask.d.ts +77 -9
- package/dist/task/TextRewriterTask.d.ts.map +1 -1
- package/dist/task/TextSummaryTask.d.ts +77 -9
- package/dist/task/TextSummaryTask.d.ts.map +1 -1
- package/dist/task/TextTranslationTask.d.ts +77 -9
- package/dist/task/TextTranslationTask.d.ts.map +1 -1
- package/dist/task/base/AiTask.d.ts +3 -3
- package/dist/task/base/AiTask.d.ts.map +1 -1
- package/dist/task/base/AiTaskSchemas.d.ts +43 -2
- package/dist/task/base/AiTaskSchemas.d.ts.map +1 -1
- package/dist/types.d.ts +0 -4
- package/dist/types.d.ts.map +1 -1
- package/package.json +9 -12
- package/dist/model/Model.d.ts +0 -26
- package/dist/model/Model.d.ts.map +0 -1
- package/dist/model/storage/InMemoryModelRepository.d.ts +0 -18
- package/dist/model/storage/InMemoryModelRepository.d.ts.map +0 -1
- package/dist/model/storage/IndexedDbModelRepository.d.ts +0 -18
- package/dist/model/storage/IndexedDbModelRepository.d.ts.map +0 -1
- package/dist/model/storage/PostgresModelRepository.d.ts +0 -19
- package/dist/model/storage/PostgresModelRepository.d.ts.map +0 -1
- package/dist/model/storage/SqliteModelRepository.d.ts +0 -18
- package/dist/model/storage/SqliteModelRepository.d.ts.map +0 -1
|
@@ -14,19 +14,87 @@ declare const DownloadModelInputSchema: {
|
|
|
14
14
|
readonly "x-replicate": true;
|
|
15
15
|
readonly format?: string | undefined;
|
|
16
16
|
readonly oneOf: readonly [{
|
|
17
|
-
readonly
|
|
18
|
-
readonly description: `The model ${string}`;
|
|
19
|
-
} & {
|
|
20
|
-
readonly format: "model";
|
|
21
|
-
readonly type: "string";
|
|
22
|
-
}, {
|
|
23
|
-
readonly type: "array";
|
|
24
|
-
readonly items: {
|
|
17
|
+
readonly oneOf: readonly [{
|
|
25
18
|
readonly title: "Model";
|
|
26
19
|
readonly description: `The model ${string}`;
|
|
27
20
|
} & {
|
|
28
|
-
readonly format: "
|
|
21
|
+
readonly format: import("./base/AiTaskSchemas").TypeModelSemantic;
|
|
29
22
|
readonly type: "string";
|
|
23
|
+
}, {
|
|
24
|
+
readonly type: "object";
|
|
25
|
+
readonly properties: {
|
|
26
|
+
readonly model_id: {
|
|
27
|
+
readonly type: "string";
|
|
28
|
+
};
|
|
29
|
+
readonly tasks: {
|
|
30
|
+
readonly type: "array";
|
|
31
|
+
readonly items: {
|
|
32
|
+
readonly type: "string";
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
readonly title: {
|
|
36
|
+
readonly type: "string";
|
|
37
|
+
};
|
|
38
|
+
readonly description: {
|
|
39
|
+
readonly type: "string";
|
|
40
|
+
};
|
|
41
|
+
readonly provider: {
|
|
42
|
+
readonly type: "string";
|
|
43
|
+
};
|
|
44
|
+
readonly providerConfig: {
|
|
45
|
+
readonly type: "object";
|
|
46
|
+
readonly default: {};
|
|
47
|
+
};
|
|
48
|
+
readonly metadata: {
|
|
49
|
+
readonly type: "object";
|
|
50
|
+
readonly default: {};
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
readonly required: readonly ["model_id", "tasks", "provider", "title", "description", "providerConfig", "metadata"];
|
|
54
|
+
readonly additionalProperties: false;
|
|
55
|
+
}];
|
|
56
|
+
}, {
|
|
57
|
+
readonly type: "array";
|
|
58
|
+
readonly items: {
|
|
59
|
+
readonly oneOf: readonly [{
|
|
60
|
+
readonly title: "Model";
|
|
61
|
+
readonly description: `The model ${string}`;
|
|
62
|
+
} & {
|
|
63
|
+
readonly format: import("./base/AiTaskSchemas").TypeModelSemantic;
|
|
64
|
+
readonly type: "string";
|
|
65
|
+
}, {
|
|
66
|
+
readonly type: "object";
|
|
67
|
+
readonly properties: {
|
|
68
|
+
readonly model_id: {
|
|
69
|
+
readonly type: "string";
|
|
70
|
+
};
|
|
71
|
+
readonly tasks: {
|
|
72
|
+
readonly type: "array";
|
|
73
|
+
readonly items: {
|
|
74
|
+
readonly type: "string";
|
|
75
|
+
};
|
|
76
|
+
};
|
|
77
|
+
readonly title: {
|
|
78
|
+
readonly type: "string";
|
|
79
|
+
};
|
|
80
|
+
readonly description: {
|
|
81
|
+
readonly type: "string";
|
|
82
|
+
};
|
|
83
|
+
readonly provider: {
|
|
84
|
+
readonly type: "string";
|
|
85
|
+
};
|
|
86
|
+
readonly providerConfig: {
|
|
87
|
+
readonly type: "object";
|
|
88
|
+
readonly default: {};
|
|
89
|
+
};
|
|
90
|
+
readonly metadata: {
|
|
91
|
+
readonly type: "object";
|
|
92
|
+
readonly default: {};
|
|
93
|
+
};
|
|
94
|
+
};
|
|
95
|
+
readonly required: readonly ["model_id", "tasks", "provider", "title", "description", "providerConfig", "metadata"];
|
|
96
|
+
readonly additionalProperties: false;
|
|
97
|
+
}];
|
|
30
98
|
};
|
|
31
99
|
}];
|
|
32
100
|
readonly title: string | undefined;
|
|
@@ -43,19 +111,87 @@ declare const DownloadModelOutputSchema: {
|
|
|
43
111
|
readonly "x-replicate": true;
|
|
44
112
|
readonly format?: string | undefined;
|
|
45
113
|
readonly oneOf: readonly [{
|
|
46
|
-
readonly
|
|
47
|
-
readonly description: `The model ${string}`;
|
|
48
|
-
} & {
|
|
49
|
-
readonly format: "model";
|
|
50
|
-
readonly type: "string";
|
|
51
|
-
}, {
|
|
52
|
-
readonly type: "array";
|
|
53
|
-
readonly items: {
|
|
114
|
+
readonly oneOf: readonly [{
|
|
54
115
|
readonly title: "Model";
|
|
55
116
|
readonly description: `The model ${string}`;
|
|
56
117
|
} & {
|
|
57
|
-
readonly format: "
|
|
118
|
+
readonly format: import("./base/AiTaskSchemas").TypeModelSemantic;
|
|
58
119
|
readonly type: "string";
|
|
120
|
+
}, {
|
|
121
|
+
readonly type: "object";
|
|
122
|
+
readonly properties: {
|
|
123
|
+
readonly model_id: {
|
|
124
|
+
readonly type: "string";
|
|
125
|
+
};
|
|
126
|
+
readonly tasks: {
|
|
127
|
+
readonly type: "array";
|
|
128
|
+
readonly items: {
|
|
129
|
+
readonly type: "string";
|
|
130
|
+
};
|
|
131
|
+
};
|
|
132
|
+
readonly title: {
|
|
133
|
+
readonly type: "string";
|
|
134
|
+
};
|
|
135
|
+
readonly description: {
|
|
136
|
+
readonly type: "string";
|
|
137
|
+
};
|
|
138
|
+
readonly provider: {
|
|
139
|
+
readonly type: "string";
|
|
140
|
+
};
|
|
141
|
+
readonly providerConfig: {
|
|
142
|
+
readonly type: "object";
|
|
143
|
+
readonly default: {};
|
|
144
|
+
};
|
|
145
|
+
readonly metadata: {
|
|
146
|
+
readonly type: "object";
|
|
147
|
+
readonly default: {};
|
|
148
|
+
};
|
|
149
|
+
};
|
|
150
|
+
readonly required: readonly ["model_id", "tasks", "provider", "title", "description", "providerConfig", "metadata"];
|
|
151
|
+
readonly additionalProperties: false;
|
|
152
|
+
}];
|
|
153
|
+
}, {
|
|
154
|
+
readonly type: "array";
|
|
155
|
+
readonly items: {
|
|
156
|
+
readonly oneOf: readonly [{
|
|
157
|
+
readonly title: "Model";
|
|
158
|
+
readonly description: `The model ${string}`;
|
|
159
|
+
} & {
|
|
160
|
+
readonly format: import("./base/AiTaskSchemas").TypeModelSemantic;
|
|
161
|
+
readonly type: "string";
|
|
162
|
+
}, {
|
|
163
|
+
readonly type: "object";
|
|
164
|
+
readonly properties: {
|
|
165
|
+
readonly model_id: {
|
|
166
|
+
readonly type: "string";
|
|
167
|
+
};
|
|
168
|
+
readonly tasks: {
|
|
169
|
+
readonly type: "array";
|
|
170
|
+
readonly items: {
|
|
171
|
+
readonly type: "string";
|
|
172
|
+
};
|
|
173
|
+
};
|
|
174
|
+
readonly title: {
|
|
175
|
+
readonly type: "string";
|
|
176
|
+
};
|
|
177
|
+
readonly description: {
|
|
178
|
+
readonly type: "string";
|
|
179
|
+
};
|
|
180
|
+
readonly provider: {
|
|
181
|
+
readonly type: "string";
|
|
182
|
+
};
|
|
183
|
+
readonly providerConfig: {
|
|
184
|
+
readonly type: "object";
|
|
185
|
+
readonly default: {};
|
|
186
|
+
};
|
|
187
|
+
readonly metadata: {
|
|
188
|
+
readonly type: "object";
|
|
189
|
+
readonly default: {};
|
|
190
|
+
};
|
|
191
|
+
};
|
|
192
|
+
readonly required: readonly ["model_id", "tasks", "provider", "title", "description", "providerConfig", "metadata"];
|
|
193
|
+
readonly additionalProperties: false;
|
|
194
|
+
}];
|
|
59
195
|
};
|
|
60
196
|
}];
|
|
61
197
|
readonly title: string | undefined;
|
|
@@ -107,7 +243,31 @@ export declare class DownloadModelTask extends AiTask<DownloadModelTaskRunInput,
|
|
|
107
243
|
* @returns Promise resolving to the downloaded model(s)
|
|
108
244
|
*/
|
|
109
245
|
export declare const DownloadModel: (input: DownloadModelTaskRunInput, config?: JobQueueTaskConfig) => Promise<{
|
|
110
|
-
model: string |
|
|
246
|
+
model: string | {
|
|
247
|
+
title: string;
|
|
248
|
+
description: string;
|
|
249
|
+
model_id: string;
|
|
250
|
+
tasks: string[];
|
|
251
|
+
provider: string;
|
|
252
|
+
providerConfig: {
|
|
253
|
+
[x: string]: unknown;
|
|
254
|
+
};
|
|
255
|
+
metadata: {
|
|
256
|
+
[x: string]: unknown;
|
|
257
|
+
};
|
|
258
|
+
} | (string | {
|
|
259
|
+
title: string;
|
|
260
|
+
description: string;
|
|
261
|
+
model_id: string;
|
|
262
|
+
tasks: string[];
|
|
263
|
+
provider: string;
|
|
264
|
+
providerConfig: {
|
|
265
|
+
[x: string]: unknown;
|
|
266
|
+
};
|
|
267
|
+
metadata: {
|
|
268
|
+
[x: string]: unknown;
|
|
269
|
+
};
|
|
270
|
+
})[];
|
|
111
271
|
}>;
|
|
112
272
|
declare module "@workglow/task-graph" {
|
|
113
273
|
interface Workflow {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DownloadModelTask.d.ts","sourceRoot":"","sources":["../../src/task/DownloadModelTask.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAA0B,MAAM,sBAAsB,CAAC;AAClG,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACvC,OAAO,EAAE,qBAAqB,EAAiC,MAAM,sBAAsB,CAAC;AAI5F,QAAA,MAAM,wBAAwB
|
|
1
|
+
{"version":3,"file":"DownloadModelTask.d.ts","sourceRoot":"","sources":["../../src/task/DownloadModelTask.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAA0B,MAAM,sBAAsB,CAAC;AAClG,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACvC,OAAO,EAAE,qBAAqB,EAAiC,MAAM,sBAAsB,CAAC;AAI5F,QAAA,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOK,CAAC;AAEpC,QAAA,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOI,CAAC;AAEpC,MAAM,MAAM,yBAAyB,GAAG,UAAU,CAAC,OAAO,wBAAwB,CAAC,CAAC;AACpF,MAAM,MAAM,0BAA0B,GAAG,UAAU,CAAC,OAAO,yBAAyB,CAAC,CAAC;AACtF,MAAM,MAAM,6BAA6B,GAAG,qBAAqB,CAAC,OAAO,wBAAwB,CAAC,CAAC;AACnG,MAAM,MAAM,8BAA8B,GAAG,qBAAqB,CAChE,OAAO,yBAAyB,CACjC,CAAC;AAEF;;;;;GAKG;AACH,qBAAa,iBAAkB,SAAQ,MAAM,CAC3C,yBAAyB,EACzB,0BAA0B,EAC1B,kBAAkB,CACnB;IACC,OAAc,IAAI,SAAuB;IACzC,OAAc,QAAQ,SAAmB;IACzC,OAAc,KAAK,SAAoB;IACvC,OAAc,WAAW,SAAmE;WAC9E,WAAW,IAAI,cAAc;WAG7B,YAAY,IAAI,cAAc;IAG5C,OAAc,SAAS,UAAS;IAEzB,KAAK,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAA;KAAE,EAAE,CAAM;gBAE5C,KAAK,EAAE,OAAO,CAAC,yBAAyB,CAAC,EAAE,MAAM,GAAE,kBAAuB;IAQtF;;;;;OAKG;IACH,eAAe,CACb,QAAQ,EAAE,MAAM,EAChB,OAAO,GAAE,MAAW,EACpB,OAAO,CAAC,EAAE;QAAE,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE,GAC3D,IAAI;CAaR;AAID;;;;;GAKG;AACH,eAAO,MAAM,aAAa,GAAI,OAAO,yBAAyB,EAAE,SAAS,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;EAE1F,CAAC;AAEF,OAAO,QAAQ,sBAAsB,CAAC;IACpC,UAAU,QAAQ;QAChB,aAAa,EAAE,cAAc,CAC3B,yBAAyB,EACzB,0BAA0B,EAC1B,kBAAkB,CACnB,CAAC;KACH;CACF"}
|
|
@@ -32,19 +32,87 @@ export declare const TextEmbeddingInputSchema: {
|
|
|
32
32
|
readonly "x-replicate": true;
|
|
33
33
|
readonly format?: string | undefined;
|
|
34
34
|
readonly oneOf: readonly [{
|
|
35
|
-
readonly
|
|
36
|
-
readonly description: `The model ${string}`;
|
|
37
|
-
} & {
|
|
38
|
-
readonly format: "model:TextEmbeddingTask";
|
|
39
|
-
readonly type: "string";
|
|
40
|
-
}, {
|
|
41
|
-
readonly type: "array";
|
|
42
|
-
readonly items: {
|
|
35
|
+
readonly oneOf: readonly [{
|
|
43
36
|
readonly title: "Model";
|
|
44
37
|
readonly description: `The model ${string}`;
|
|
45
38
|
} & {
|
|
46
|
-
readonly format: "
|
|
39
|
+
readonly format: import(".").TypeModelSemantic;
|
|
47
40
|
readonly type: "string";
|
|
41
|
+
}, {
|
|
42
|
+
readonly type: "object";
|
|
43
|
+
readonly properties: {
|
|
44
|
+
readonly model_id: {
|
|
45
|
+
readonly type: "string";
|
|
46
|
+
};
|
|
47
|
+
readonly tasks: {
|
|
48
|
+
readonly type: "array";
|
|
49
|
+
readonly items: {
|
|
50
|
+
readonly type: "string";
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
readonly title: {
|
|
54
|
+
readonly type: "string";
|
|
55
|
+
};
|
|
56
|
+
readonly description: {
|
|
57
|
+
readonly type: "string";
|
|
58
|
+
};
|
|
59
|
+
readonly provider: {
|
|
60
|
+
readonly type: "string";
|
|
61
|
+
};
|
|
62
|
+
readonly providerConfig: {
|
|
63
|
+
readonly type: "object";
|
|
64
|
+
readonly default: {};
|
|
65
|
+
};
|
|
66
|
+
readonly metadata: {
|
|
67
|
+
readonly type: "object";
|
|
68
|
+
readonly default: {};
|
|
69
|
+
};
|
|
70
|
+
};
|
|
71
|
+
readonly required: readonly ["model_id", "tasks", "provider", "title", "description", "providerConfig", "metadata"];
|
|
72
|
+
readonly additionalProperties: false;
|
|
73
|
+
}];
|
|
74
|
+
}, {
|
|
75
|
+
readonly type: "array";
|
|
76
|
+
readonly items: {
|
|
77
|
+
readonly oneOf: readonly [{
|
|
78
|
+
readonly title: "Model";
|
|
79
|
+
readonly description: `The model ${string}`;
|
|
80
|
+
} & {
|
|
81
|
+
readonly format: import(".").TypeModelSemantic;
|
|
82
|
+
readonly type: "string";
|
|
83
|
+
}, {
|
|
84
|
+
readonly type: "object";
|
|
85
|
+
readonly properties: {
|
|
86
|
+
readonly model_id: {
|
|
87
|
+
readonly type: "string";
|
|
88
|
+
};
|
|
89
|
+
readonly tasks: {
|
|
90
|
+
readonly type: "array";
|
|
91
|
+
readonly items: {
|
|
92
|
+
readonly type: "string";
|
|
93
|
+
};
|
|
94
|
+
};
|
|
95
|
+
readonly title: {
|
|
96
|
+
readonly type: "string";
|
|
97
|
+
};
|
|
98
|
+
readonly description: {
|
|
99
|
+
readonly type: "string";
|
|
100
|
+
};
|
|
101
|
+
readonly provider: {
|
|
102
|
+
readonly type: "string";
|
|
103
|
+
};
|
|
104
|
+
readonly providerConfig: {
|
|
105
|
+
readonly type: "object";
|
|
106
|
+
readonly default: {};
|
|
107
|
+
};
|
|
108
|
+
readonly metadata: {
|
|
109
|
+
readonly type: "object";
|
|
110
|
+
readonly default: {};
|
|
111
|
+
};
|
|
112
|
+
};
|
|
113
|
+
readonly required: readonly ["model_id", "tasks", "provider", "title", "description", "providerConfig", "metadata"];
|
|
114
|
+
readonly additionalProperties: false;
|
|
115
|
+
}];
|
|
48
116
|
};
|
|
49
117
|
}];
|
|
50
118
|
readonly title: string | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextEmbeddingTask.d.ts","sourceRoot":"","sources":["../../src/task/TextEmbeddingTask.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAA0B,MAAM,sBAAsB,CAAC;AAClG,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACvC,OAAO,
|
|
1
|
+
{"version":3,"file":"TextEmbeddingTask.d.ts","sourceRoot":"","sources":["../../src/task/TextEmbeddingTask.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAA0B,MAAM,sBAAsB,CAAC;AAClG,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACvC,OAAO,EAEL,uBAAuB,EAGxB,MAAM,sBAAsB,CAAC;AAI9B,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAYF,CAAC;AAEpC,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAYH,CAAC;AAEpC,MAAM,MAAM,sBAAsB,GAAG,UAAU,CAC7C,OAAO,wBAAwB,EAC/B,uBAAuB,CACxB,CAAC;AACF,MAAM,MAAM,uBAAuB,GAAG,UAAU,CAC9C,OAAO,yBAAyB,EAChC,uBAAuB,CACxB,CAAC;AAEF;;;;;;GAMG;AACH,qBAAa,iBAAkB,SAAQ,MAAM,CAAC,sBAAsB,EAAE,uBAAuB,CAAC;IAC5F,OAAc,IAAI,SAAuB;IACzC,OAAc,QAAQ,SAAmB;IACzC,OAAc,KAAK,SAAoB;IACvC,OAAc,WAAW,SAAsE;WACjF,WAAW,IAAI,cAAc;WAG7B,YAAY,IAAI,cAAc;CAG7C;AAID;;;;GAIG;AACH,eAAO,MAAM,aAAa,GAAU,OAAO,sBAAsB,EAAE,SAAS,kBAAkB;;EAE7F,CAAC;AAEF,OAAO,QAAQ,sBAAsB,CAAC;IACpC,UAAU,QAAQ;QAChB,aAAa,EAAE,cAAc,CAC3B,sBAAsB,EACtB,uBAAuB,EACvB,kBAAkB,CACnB,CAAC;KACH;CACF"}
|
|
@@ -13,19 +13,87 @@ export declare const TextGenerationInputSchema: {
|
|
|
13
13
|
readonly "x-replicate": true;
|
|
14
14
|
readonly format?: string | undefined;
|
|
15
15
|
readonly oneOf: readonly [{
|
|
16
|
-
readonly
|
|
17
|
-
readonly description: `The model ${string}`;
|
|
18
|
-
} & {
|
|
19
|
-
readonly format: "model:TextGenerationTask";
|
|
20
|
-
readonly type: "string";
|
|
21
|
-
}, {
|
|
22
|
-
readonly type: "array";
|
|
23
|
-
readonly items: {
|
|
16
|
+
readonly oneOf: readonly [{
|
|
24
17
|
readonly title: "Model";
|
|
25
18
|
readonly description: `The model ${string}`;
|
|
26
19
|
} & {
|
|
27
|
-
readonly format: "
|
|
20
|
+
readonly format: import(".").TypeModelSemantic;
|
|
28
21
|
readonly type: "string";
|
|
22
|
+
}, {
|
|
23
|
+
readonly type: "object";
|
|
24
|
+
readonly properties: {
|
|
25
|
+
readonly model_id: {
|
|
26
|
+
readonly type: "string";
|
|
27
|
+
};
|
|
28
|
+
readonly tasks: {
|
|
29
|
+
readonly type: "array";
|
|
30
|
+
readonly items: {
|
|
31
|
+
readonly type: "string";
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
readonly title: {
|
|
35
|
+
readonly type: "string";
|
|
36
|
+
};
|
|
37
|
+
readonly description: {
|
|
38
|
+
readonly type: "string";
|
|
39
|
+
};
|
|
40
|
+
readonly provider: {
|
|
41
|
+
readonly type: "string";
|
|
42
|
+
};
|
|
43
|
+
readonly providerConfig: {
|
|
44
|
+
readonly type: "object";
|
|
45
|
+
readonly default: {};
|
|
46
|
+
};
|
|
47
|
+
readonly metadata: {
|
|
48
|
+
readonly type: "object";
|
|
49
|
+
readonly default: {};
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
readonly required: readonly ["model_id", "tasks", "provider", "title", "description", "providerConfig", "metadata"];
|
|
53
|
+
readonly additionalProperties: false;
|
|
54
|
+
}];
|
|
55
|
+
}, {
|
|
56
|
+
readonly type: "array";
|
|
57
|
+
readonly items: {
|
|
58
|
+
readonly oneOf: readonly [{
|
|
59
|
+
readonly title: "Model";
|
|
60
|
+
readonly description: `The model ${string}`;
|
|
61
|
+
} & {
|
|
62
|
+
readonly format: import(".").TypeModelSemantic;
|
|
63
|
+
readonly type: "string";
|
|
64
|
+
}, {
|
|
65
|
+
readonly type: "object";
|
|
66
|
+
readonly properties: {
|
|
67
|
+
readonly model_id: {
|
|
68
|
+
readonly type: "string";
|
|
69
|
+
};
|
|
70
|
+
readonly tasks: {
|
|
71
|
+
readonly type: "array";
|
|
72
|
+
readonly items: {
|
|
73
|
+
readonly type: "string";
|
|
74
|
+
};
|
|
75
|
+
};
|
|
76
|
+
readonly title: {
|
|
77
|
+
readonly type: "string";
|
|
78
|
+
};
|
|
79
|
+
readonly description: {
|
|
80
|
+
readonly type: "string";
|
|
81
|
+
};
|
|
82
|
+
readonly provider: {
|
|
83
|
+
readonly type: "string";
|
|
84
|
+
};
|
|
85
|
+
readonly providerConfig: {
|
|
86
|
+
readonly type: "object";
|
|
87
|
+
readonly default: {};
|
|
88
|
+
};
|
|
89
|
+
readonly metadata: {
|
|
90
|
+
readonly type: "object";
|
|
91
|
+
readonly default: {};
|
|
92
|
+
};
|
|
93
|
+
};
|
|
94
|
+
readonly required: readonly ["model_id", "tasks", "provider", "title", "description", "providerConfig", "metadata"];
|
|
95
|
+
readonly additionalProperties: false;
|
|
96
|
+
}];
|
|
29
97
|
};
|
|
30
98
|
}];
|
|
31
99
|
readonly title: string | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextGenerationTask.d.ts","sourceRoot":"","sources":["../../src/task/TextGenerationTask.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAA0B,MAAM,sBAAsB,CAAC;AAClG,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAWvC,eAAO,MAAM,yBAAyB
|
|
1
|
+
{"version":3,"file":"TextGenerationTask.d.ts","sourceRoot":"","sources":["../../src/task/TextGenerationTask.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAA0B,MAAM,sBAAsB,CAAC;AAClG,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAWvC,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoDH,CAAC;AAEpC,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;CAWJ,CAAC;AAEpC,MAAM,MAAM,uBAAuB,GAAG,UAAU,CAAC,OAAO,yBAAyB,CAAC,CAAC;AACnF,MAAM,MAAM,wBAAwB,GAAG,UAAU,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAErF,qBAAa,kBAAmB,SAAQ,MAAM,CAC5C,uBAAuB,EACvB,wBAAwB,EACxB,kBAAkB,CACnB;IACC,OAAc,IAAI,SAAwB;IAC1C,OAAc,QAAQ,SAAmB;IACzC,OAAc,KAAK,SAAqB;IACxC,OAAc,WAAW,SAC2D;WACtE,WAAW,IAAI,cAAc;WAG7B,YAAY,IAAI,cAAc;CAG7C;AAGD;;GAEG;AACH,eAAO,MAAM,cAAc,GAAI,OAAO,uBAAuB,EAAE,SAAS,kBAAkB;;EAEzF,CAAC;AAEF,OAAO,QAAQ,sBAAsB,CAAC;IACpC,UAAU,QAAQ;QAChB,cAAc,EAAE,cAAc,CAC5B,uBAAuB,EACvB,wBAAwB,EACxB,kBAAkB,CACnB,CAAC;KACH;CACF"}
|
|
@@ -49,19 +49,87 @@ export declare const TextQuestionAnswerInputSchema: {
|
|
|
49
49
|
readonly "x-replicate": true;
|
|
50
50
|
readonly format?: string | undefined;
|
|
51
51
|
readonly oneOf: readonly [{
|
|
52
|
-
readonly
|
|
53
|
-
readonly description: `The model ${string}`;
|
|
54
|
-
} & {
|
|
55
|
-
readonly format: "model:TextQuestionAnswerTask";
|
|
56
|
-
readonly type: "string";
|
|
57
|
-
}, {
|
|
58
|
-
readonly type: "array";
|
|
59
|
-
readonly items: {
|
|
52
|
+
readonly oneOf: readonly [{
|
|
60
53
|
readonly title: "Model";
|
|
61
54
|
readonly description: `The model ${string}`;
|
|
62
55
|
} & {
|
|
63
|
-
readonly format: "
|
|
56
|
+
readonly format: import(".").TypeModelSemantic;
|
|
64
57
|
readonly type: "string";
|
|
58
|
+
}, {
|
|
59
|
+
readonly type: "object";
|
|
60
|
+
readonly properties: {
|
|
61
|
+
readonly model_id: {
|
|
62
|
+
readonly type: "string";
|
|
63
|
+
};
|
|
64
|
+
readonly tasks: {
|
|
65
|
+
readonly type: "array";
|
|
66
|
+
readonly items: {
|
|
67
|
+
readonly type: "string";
|
|
68
|
+
};
|
|
69
|
+
};
|
|
70
|
+
readonly title: {
|
|
71
|
+
readonly type: "string";
|
|
72
|
+
};
|
|
73
|
+
readonly description: {
|
|
74
|
+
readonly type: "string";
|
|
75
|
+
};
|
|
76
|
+
readonly provider: {
|
|
77
|
+
readonly type: "string";
|
|
78
|
+
};
|
|
79
|
+
readonly providerConfig: {
|
|
80
|
+
readonly type: "object";
|
|
81
|
+
readonly default: {};
|
|
82
|
+
};
|
|
83
|
+
readonly metadata: {
|
|
84
|
+
readonly type: "object";
|
|
85
|
+
readonly default: {};
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
readonly required: readonly ["model_id", "tasks", "provider", "title", "description", "providerConfig", "metadata"];
|
|
89
|
+
readonly additionalProperties: false;
|
|
90
|
+
}];
|
|
91
|
+
}, {
|
|
92
|
+
readonly type: "array";
|
|
93
|
+
readonly items: {
|
|
94
|
+
readonly oneOf: readonly [{
|
|
95
|
+
readonly title: "Model";
|
|
96
|
+
readonly description: `The model ${string}`;
|
|
97
|
+
} & {
|
|
98
|
+
readonly format: import(".").TypeModelSemantic;
|
|
99
|
+
readonly type: "string";
|
|
100
|
+
}, {
|
|
101
|
+
readonly type: "object";
|
|
102
|
+
readonly properties: {
|
|
103
|
+
readonly model_id: {
|
|
104
|
+
readonly type: "string";
|
|
105
|
+
};
|
|
106
|
+
readonly tasks: {
|
|
107
|
+
readonly type: "array";
|
|
108
|
+
readonly items: {
|
|
109
|
+
readonly type: "string";
|
|
110
|
+
};
|
|
111
|
+
};
|
|
112
|
+
readonly title: {
|
|
113
|
+
readonly type: "string";
|
|
114
|
+
};
|
|
115
|
+
readonly description: {
|
|
116
|
+
readonly type: "string";
|
|
117
|
+
};
|
|
118
|
+
readonly provider: {
|
|
119
|
+
readonly type: "string";
|
|
120
|
+
};
|
|
121
|
+
readonly providerConfig: {
|
|
122
|
+
readonly type: "object";
|
|
123
|
+
readonly default: {};
|
|
124
|
+
};
|
|
125
|
+
readonly metadata: {
|
|
126
|
+
readonly type: "object";
|
|
127
|
+
readonly default: {};
|
|
128
|
+
};
|
|
129
|
+
};
|
|
130
|
+
readonly required: readonly ["model_id", "tasks", "provider", "title", "description", "providerConfig", "metadata"];
|
|
131
|
+
readonly additionalProperties: false;
|
|
132
|
+
}];
|
|
65
133
|
};
|
|
66
134
|
}];
|
|
67
135
|
readonly title: string | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextQuestionAnswerTask.d.ts","sourceRoot":"","sources":["../../src/task/TextQuestionAnswerTask.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAA0B,MAAM,sBAAsB,CAAC;AAClG,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAuBvC,eAAO,MAAM,6BAA6B
|
|
1
|
+
{"version":3,"file":"TextQuestionAnswerTask.d.ts","sourceRoot":"","sources":["../../src/task/TextQuestionAnswerTask.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAA0B,MAAM,sBAAsB,CAAC;AAClG,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAuBvC,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CASP,CAAC;AAEpC,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;CAWR,CAAC;AAEpC,MAAM,MAAM,2BAA2B,GAAG,UAAU,CAAC,OAAO,6BAA6B,CAAC,CAAC;AAC3F,MAAM,MAAM,4BAA4B,GAAG,UAAU,CAAC,OAAO,8BAA8B,CAAC,CAAC;AAE7F;;GAEG;AACH,qBAAa,sBAAuB,SAAQ,MAAM,CAChD,2BAA2B,EAC3B,4BAA4B,EAC5B,kBAAkB,CACnB;IACC,OAAc,IAAI,SAA4B;IAC9C,OAAc,QAAQ,SAAmB;IACzC,OAAc,KAAK,SAA0B;IAC7C,OAAc,WAAW,SAAuE;WAClF,WAAW,IAAI,cAAc;WAG7B,YAAY,IAAI,cAAc;CAG7C;AAID;;;;;GAKG;AACH,eAAO,MAAM,kBAAkB,GAC7B,OAAO,2BAA2B,EAClC,SAAS,kBAAkB;;EAG5B,CAAC;AAEF,OAAO,QAAQ,sBAAsB,CAAC;IACpC,UAAU,QAAQ;QAChB,kBAAkB,EAAE,cAAc,CAChC,2BAA2B,EAC3B,4BAA4B,EAC5B,kBAAkB,CACnB,CAAC;KACH;CACF"}
|
|
@@ -49,19 +49,87 @@ export declare const TextRewriterInputSchema: {
|
|
|
49
49
|
readonly "x-replicate": true;
|
|
50
50
|
readonly format?: string | undefined;
|
|
51
51
|
readonly oneOf: readonly [{
|
|
52
|
-
readonly
|
|
53
|
-
readonly description: `The model ${string}`;
|
|
54
|
-
} & {
|
|
55
|
-
readonly format: "model:TextRewriterTask";
|
|
56
|
-
readonly type: "string";
|
|
57
|
-
}, {
|
|
58
|
-
readonly type: "array";
|
|
59
|
-
readonly items: {
|
|
52
|
+
readonly oneOf: readonly [{
|
|
60
53
|
readonly title: "Model";
|
|
61
54
|
readonly description: `The model ${string}`;
|
|
62
55
|
} & {
|
|
63
|
-
readonly format: "
|
|
56
|
+
readonly format: import(".").TypeModelSemantic;
|
|
64
57
|
readonly type: "string";
|
|
58
|
+
}, {
|
|
59
|
+
readonly type: "object";
|
|
60
|
+
readonly properties: {
|
|
61
|
+
readonly model_id: {
|
|
62
|
+
readonly type: "string";
|
|
63
|
+
};
|
|
64
|
+
readonly tasks: {
|
|
65
|
+
readonly type: "array";
|
|
66
|
+
readonly items: {
|
|
67
|
+
readonly type: "string";
|
|
68
|
+
};
|
|
69
|
+
};
|
|
70
|
+
readonly title: {
|
|
71
|
+
readonly type: "string";
|
|
72
|
+
};
|
|
73
|
+
readonly description: {
|
|
74
|
+
readonly type: "string";
|
|
75
|
+
};
|
|
76
|
+
readonly provider: {
|
|
77
|
+
readonly type: "string";
|
|
78
|
+
};
|
|
79
|
+
readonly providerConfig: {
|
|
80
|
+
readonly type: "object";
|
|
81
|
+
readonly default: {};
|
|
82
|
+
};
|
|
83
|
+
readonly metadata: {
|
|
84
|
+
readonly type: "object";
|
|
85
|
+
readonly default: {};
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
readonly required: readonly ["model_id", "tasks", "provider", "title", "description", "providerConfig", "metadata"];
|
|
89
|
+
readonly additionalProperties: false;
|
|
90
|
+
}];
|
|
91
|
+
}, {
|
|
92
|
+
readonly type: "array";
|
|
93
|
+
readonly items: {
|
|
94
|
+
readonly oneOf: readonly [{
|
|
95
|
+
readonly title: "Model";
|
|
96
|
+
readonly description: `The model ${string}`;
|
|
97
|
+
} & {
|
|
98
|
+
readonly format: import(".").TypeModelSemantic;
|
|
99
|
+
readonly type: "string";
|
|
100
|
+
}, {
|
|
101
|
+
readonly type: "object";
|
|
102
|
+
readonly properties: {
|
|
103
|
+
readonly model_id: {
|
|
104
|
+
readonly type: "string";
|
|
105
|
+
};
|
|
106
|
+
readonly tasks: {
|
|
107
|
+
readonly type: "array";
|
|
108
|
+
readonly items: {
|
|
109
|
+
readonly type: "string";
|
|
110
|
+
};
|
|
111
|
+
};
|
|
112
|
+
readonly title: {
|
|
113
|
+
readonly type: "string";
|
|
114
|
+
};
|
|
115
|
+
readonly description: {
|
|
116
|
+
readonly type: "string";
|
|
117
|
+
};
|
|
118
|
+
readonly provider: {
|
|
119
|
+
readonly type: "string";
|
|
120
|
+
};
|
|
121
|
+
readonly providerConfig: {
|
|
122
|
+
readonly type: "object";
|
|
123
|
+
readonly default: {};
|
|
124
|
+
};
|
|
125
|
+
readonly metadata: {
|
|
126
|
+
readonly type: "object";
|
|
127
|
+
readonly default: {};
|
|
128
|
+
};
|
|
129
|
+
};
|
|
130
|
+
readonly required: readonly ["model_id", "tasks", "provider", "title", "description", "providerConfig", "metadata"];
|
|
131
|
+
readonly additionalProperties: false;
|
|
132
|
+
}];
|
|
65
133
|
};
|
|
66
134
|
}];
|
|
67
135
|
readonly title: string | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextRewriterTask.d.ts","sourceRoot":"","sources":["../../src/task/TextRewriterTask.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAA0B,MAAM,sBAAsB,CAAC;AAClG,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAKvC,eAAO,MAAM,uBAAuB
|
|
1
|
+
{"version":3,"file":"TextRewriterTask.d.ts","sourceRoot":"","sources":["../../src/task/TextRewriterTask.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAA0B,MAAM,sBAAsB,CAAC;AAClG,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAKvC,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiBD,CAAC;AAEpC,eAAO,MAAM,wBAAwB;;;;;;;;;;;CAWF,CAAC;AAEpC,MAAM,MAAM,qBAAqB,GAAG,UAAU,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAC/E,MAAM,MAAM,sBAAsB,GAAG,UAAU,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAEjF;;GAEG;AACH,qBAAa,gBAAiB,SAAQ,MAAM,CAAC,qBAAqB,EAAE,sBAAsB,CAAC;IACzF,OAAc,IAAI,SAAsB;IACxC,OAAc,QAAQ,SAAmB;IACzC,OAAc,KAAK,SAAmB;IACtC,OAAc,WAAW,SAAqE;WAChF,WAAW,IAAI,cAAc;WAG7B,YAAY,IAAI,cAAc;CAG7C;AAID;;;;;GAKG;AACH,eAAO,MAAM,YAAY,GAAI,OAAO,qBAAqB,EAAE,SAAS,kBAAkB;;EAErF,CAAC;AAEF,OAAO,QAAQ,sBAAsB,CAAC;IACpC,UAAU,QAAQ;QAChB,YAAY,EAAE,cAAc,CAAC,qBAAqB,EAAE,sBAAsB,EAAE,kBAAkB,CAAC,CAAC;KACjG;CACF"}
|