@workglow/ai 0.0.109 → 0.0.111
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 +141 -123
- package/dist/browser.js.map +22 -22
- package/dist/bun.js +141 -123
- package/dist/bun.js.map +22 -22
- package/dist/node.js +141 -123
- package/dist/node.js.map +22 -22
- package/dist/task/CountTokensTask.d.ts +25 -7
- package/dist/task/CountTokensTask.d.ts.map +1 -1
- package/dist/task/DocumentEnricherTask.d.ts.map +1 -1
- package/dist/task/ModelInfoTask.d.ts +5 -0
- package/dist/task/ModelInfoTask.d.ts.map +1 -1
- package/dist/task/RerankerTask.d.ts.map +1 -1
- package/dist/task/TextClassificationTask.d.ts +59 -21
- package/dist/task/TextClassificationTask.d.ts.map +1 -1
- package/dist/task/TextFillMaskTask.d.ts +70 -26
- package/dist/task/TextFillMaskTask.d.ts.map +1 -1
- package/dist/task/TextGenerationTask.d.ts +27 -8
- package/dist/task/TextGenerationTask.d.ts.map +1 -1
- package/dist/task/TextLanguageDetectionTask.d.ts +59 -21
- package/dist/task/TextLanguageDetectionTask.d.ts.map +1 -1
- package/dist/task/TextNamedEntityRecognitionTask.d.ts +70 -26
- package/dist/task/TextNamedEntityRecognitionTask.d.ts.map +1 -1
- package/dist/task/TextQuestionAnswerTask.d.ts +39 -11
- package/dist/task/TextQuestionAnswerTask.d.ts.map +1 -1
- package/dist/task/TextRewriterTask.d.ts +27 -8
- package/dist/task/TextRewriterTask.d.ts.map +1 -1
- package/dist/task/TextSummaryTask.d.ts +27 -8
- package/dist/task/TextSummaryTask.d.ts.map +1 -1
- package/dist/task/TextTranslationTask.d.ts +27 -8
- package/dist/task/TextTranslationTask.d.ts.map +1 -1
- package/dist/task/ToolCallingTask.d.ts +132 -53
- package/dist/task/ToolCallingTask.d.ts.map +1 -1
- package/dist/task/base/AiTask.d.ts.map +1 -1
- package/dist/task/index.d.ts +1 -1
- package/dist/task/index.d.ts.map +1 -1
- package/package.json +13 -11
|
@@ -10,9 +10,18 @@ export declare const CountTokensInputSchema: {
|
|
|
10
10
|
readonly type: "object";
|
|
11
11
|
readonly properties: {
|
|
12
12
|
readonly text: {
|
|
13
|
-
readonly
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
readonly anyOf: readonly [{
|
|
14
|
+
readonly type: "string";
|
|
15
|
+
readonly title: "Text";
|
|
16
|
+
readonly description: "The text to count tokens for";
|
|
17
|
+
}, {
|
|
18
|
+
readonly type: "array";
|
|
19
|
+
readonly items: {
|
|
20
|
+
readonly type: "string";
|
|
21
|
+
readonly title: "Text";
|
|
22
|
+
readonly description: "The text to count tokens for";
|
|
23
|
+
};
|
|
24
|
+
}];
|
|
16
25
|
};
|
|
17
26
|
readonly model: {
|
|
18
27
|
readonly oneOf: readonly [{
|
|
@@ -79,9 +88,18 @@ export declare const CountTokensOutputSchema: {
|
|
|
79
88
|
readonly type: "object";
|
|
80
89
|
readonly properties: {
|
|
81
90
|
readonly count: {
|
|
82
|
-
readonly
|
|
83
|
-
|
|
84
|
-
|
|
91
|
+
readonly anyOf: readonly [{
|
|
92
|
+
readonly type: "number";
|
|
93
|
+
readonly title: "Token Count";
|
|
94
|
+
readonly description: "The number of tokens in the text";
|
|
95
|
+
}, {
|
|
96
|
+
readonly type: "array";
|
|
97
|
+
readonly items: {
|
|
98
|
+
readonly type: "number";
|
|
99
|
+
readonly title: "Token Count";
|
|
100
|
+
readonly description: "The number of tokens in the text";
|
|
101
|
+
};
|
|
102
|
+
}];
|
|
85
103
|
};
|
|
86
104
|
};
|
|
87
105
|
readonly required: readonly ["count"];
|
|
@@ -111,7 +129,7 @@ export declare class CountTokensTask extends AiTask<CountTokensTaskInput, CountT
|
|
|
111
129
|
* @returns Promise resolving to the token count
|
|
112
130
|
*/
|
|
113
131
|
export declare const countTokens: (input: CountTokensTaskInput, config?: JobQueueTaskConfig) => Promise<{
|
|
114
|
-
count: number;
|
|
132
|
+
count: number | number[];
|
|
115
133
|
}>;
|
|
116
134
|
declare module "@workglow/task-graph" {
|
|
117
135
|
interface Workflow {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CountTokensTask.d.ts","sourceRoot":"","sources":["../../src/task/CountTokensTask.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAAY,MAAM,sBAAsB,CAAC;AACpF,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAKvC,eAAO,MAAM,sBAAsB
|
|
1
|
+
{"version":3,"file":"CountTokensTask.d.ts","sourceRoot":"","sources":["../../src/task/CountTokensTask.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAAY,MAAM,sBAAsB,CAAC;AACpF,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAKvC,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAYA,CAAC;AAEpC,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;CAWD,CAAC;AAEpC,MAAM,MAAM,oBAAoB,GAAG,UAAU,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAC7E,MAAM,MAAM,qBAAqB,GAAG,UAAU,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAE/E;;;;;;GAMG;AACH,qBAAa,eAAgB,SAAQ,MAAM,CAAC,oBAAoB,EAAE,qBAAqB,CAAC;IACtF,OAAc,IAAI,SAAqB;IACvC,OAAc,QAAQ,SAAmB;IACzC,OAAc,KAAK,SAAkB;IACrC,OAAc,WAAW,SACoD;IAC7E,OAAc,SAAS,UAAQ;WACjB,WAAW,IAA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tC;;OAEG;YACW,UAAU;IA6ExB;;OAEG;YACW,SAAS;IASvB;;OAEG;YACW,eAAe;IAgE7B;;OAEG;YACW,mBAAmB;IAoBjC;;OAEG;YACW,eAAe;CAqC9B;AAED,eAAO,MAAM,gBAAgB,GAAI,OAAO,yBAAyB,EAAE,SAAS,kBAAkB;;;;;EAE7F,CAAC;AAEF,OAAO,QAAQ,sBAAsB,CAAC;IACpC,UAAU,QAAQ;QAChB,gBAAgB,EAAE,cAAc,CAC9B,yBAAyB,EACzB,0BAA0B,EAC1B,kBAAkB,CACnB,CAAC;KACH;CACF"}
|
|
@@ -66,6 +66,11 @@ declare const ModelInfoInputSchema: {
|
|
|
66
66
|
} & {
|
|
67
67
|
readonly format: import("./base/AiTaskSchemas").TypeModelSemantic;
|
|
68
68
|
};
|
|
69
|
+
readonly detail: {
|
|
70
|
+
readonly type: "string";
|
|
71
|
+
readonly enum: readonly ["cached_status", "files", "files_with_metadata"];
|
|
72
|
+
readonly default: "files_with_metadata";
|
|
73
|
+
};
|
|
69
74
|
};
|
|
70
75
|
readonly required: readonly ["model"];
|
|
71
76
|
readonly additionalProperties: false;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ModelInfoTask.d.ts","sourceRoot":"","sources":["../../src/task/ModelInfoTask.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAAY,MAAM,sBAAsB,CAAC;AACpF,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAKvC,QAAA,MAAM,oBAAoB
|
|
1
|
+
{"version":3,"file":"ModelInfoTask.d.ts","sourceRoot":"","sources":["../../src/task/ModelInfoTask.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAAY,MAAM,sBAAsB,CAAC;AACpF,OAAO,EAAE,c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
|
readonly text: {
|
|
13
|
-
readonly
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
readonly anyOf: readonly [{
|
|
14
|
+
readonly type: "string";
|
|
15
|
+
readonly title: "Text";
|
|
16
|
+
readonly description: "The text to classify";
|
|
17
|
+
}, {
|
|
18
|
+
readonly type: "array";
|
|
19
|
+
readonly items: {
|
|
20
|
+
readonly type: "string";
|
|
21
|
+
readonly title: "Text";
|
|
22
|
+
readonly description: "The text to classify";
|
|
23
|
+
};
|
|
24
|
+
}];
|
|
16
25
|
};
|
|
17
26
|
readonly candidateLabels: {
|
|
18
27
|
readonly type: "array";
|
|
@@ -97,26 +106,52 @@ export declare const TextClassificationOutputSchema: {
|
|
|
97
106
|
readonly type: "object";
|
|
98
107
|
readonly properties: {
|
|
99
108
|
readonly categories: {
|
|
100
|
-
readonly
|
|
101
|
-
|
|
102
|
-
readonly
|
|
103
|
-
|
|
104
|
-
readonly
|
|
105
|
-
readonly
|
|
106
|
-
|
|
107
|
-
|
|
109
|
+
readonly anyOf: readonly [{
|
|
110
|
+
readonly type: "array";
|
|
111
|
+
readonly items: {
|
|
112
|
+
readonly type: "object";
|
|
113
|
+
readonly properties: {
|
|
114
|
+
readonly label: {
|
|
115
|
+
readonly type: "string";
|
|
116
|
+
readonly title: "Label";
|
|
117
|
+
readonly description: "The name of the category";
|
|
118
|
+
};
|
|
119
|
+
readonly score: {
|
|
120
|
+
readonly type: "number";
|
|
121
|
+
readonly title: "Score";
|
|
122
|
+
readonly description: "The confidence score for this category";
|
|
123
|
+
};
|
|
108
124
|
};
|
|
109
|
-
readonly
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
125
|
+
readonly required: readonly ["label", "score"];
|
|
126
|
+
readonly additionalProperties: false;
|
|
127
|
+
};
|
|
128
|
+
readonly title: "Categories";
|
|
129
|
+
readonly description: "The classification categories with their scores";
|
|
130
|
+
}, {
|
|
131
|
+
readonly type: "array";
|
|
132
|
+
readonly items: {
|
|
133
|
+
readonly type: "array";
|
|
134
|
+
readonly items: {
|
|
135
|
+
readonly type: "object";
|
|
136
|
+
readonly properties: {
|
|
137
|
+
readonly label: {
|
|
138
|
+
readonly type: "string";
|
|
139
|
+
readonly title: "Label";
|
|
140
|
+
readonly description: "The name of the category";
|
|
141
|
+
};
|
|
142
|
+
readonly score: {
|
|
143
|
+
readonly type: "number";
|
|
144
|
+
readonly title: "Score";
|
|
145
|
+
readonly description: "The confidence score for this category";
|
|
146
|
+
};
|
|
147
|
+
};
|
|
148
|
+
readonly required: readonly ["label", "score"];
|
|
149
|
+
readonly additionalProperties: false;
|
|
113
150
|
};
|
|
151
|
+
readonly title: "Categories";
|
|
152
|
+
readonly description: "The classification categories with their scores";
|
|
114
153
|
};
|
|
115
|
-
|
|
116
|
-
readonly additionalProperties: false;
|
|
117
|
-
};
|
|
118
|
-
readonly title: "Categories";
|
|
119
|
-
readonly description: "The classification categories with their scores";
|
|
154
|
+
}];
|
|
120
155
|
};
|
|
121
156
|
};
|
|
122
157
|
readonly required: readonly ["categories"];
|
|
@@ -146,7 +181,10 @@ export declare const textClassification: (input: TextClassificationTaskInput, co
|
|
|
146
181
|
categories: {
|
|
147
182
|
score: number;
|
|
148
183
|
label: string;
|
|
149
|
-
}[]
|
|
184
|
+
}[] | {
|
|
185
|
+
score: number;
|
|
186
|
+
label: string;
|
|
187
|
+
}[][];
|
|
150
188
|
}>;
|
|
151
189
|
declare module "@workglow/task-graph" {
|
|
152
190
|
interface Workflow {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextClassificationTask.d.ts","sourceRoot":"","sources":["../../src/task/TextClassificationTask.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAAY,MAAM,sBAAsB,CAAC;AACpF,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAKvC,eAAO,MAAM,6BAA6B
|
|
1
|
+
{"version":3,"file":"TextClassificationTask.d.ts","sourceRoot":"","sources":["../../src/task/TextClassificationTask.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAAY,MAAM,sBAAsB,CAAC;AACpF,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAKvC,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8BP,CAAC;AAEpC,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4BR,CAAC;AAEpC,MAAM,MAAM,2BAA2B,GAAG,UAAU,CAAC,OAAO,6BAA6B,CAAC,CAAC;AAC3F,MAAM,MAAM,4BAA4B,GAAG,UAAU,CAAC,OAAO,8BAA8B,CAAC,CAAC;AAE7F;;;GAGG;AACH,qBAAa,sBAAuB,SAAQ,MAAM,CAChD,2BAA2B,EAC3B,4BAA4B,CAC7B;IACC,OAAc,IAAI,SAA4B;IAC9C,OAAc,QAAQ,SAAmB;IACzC,OAAc,KAAK,SAAqB;IACxC,OAAc,WAAW,SACwG;WACnH,WAAW,IAAI,cAAc;WAG7B,YAAY,IAAI,cAAc;CAG7C;AAED;;;;;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"}
|
|
@@ -10,9 +10,18 @@ export declare const TextFillMaskInputSchema: {
|
|
|
10
10
|
readonly type: "object";
|
|
11
11
|
readonly properties: {
|
|
12
12
|
readonly text: {
|
|
13
|
-
readonly
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
readonly anyOf: readonly [{
|
|
14
|
+
readonly type: "string";
|
|
15
|
+
readonly title: "Text";
|
|
16
|
+
readonly description: "The text with a mask token to fill";
|
|
17
|
+
}, {
|
|
18
|
+
readonly type: "array";
|
|
19
|
+
readonly items: {
|
|
20
|
+
readonly type: "string";
|
|
21
|
+
readonly title: "Text";
|
|
22
|
+
readonly description: "The text with a mask token to fill";
|
|
23
|
+
};
|
|
24
|
+
}];
|
|
16
25
|
};
|
|
17
26
|
readonly model: {
|
|
18
27
|
readonly oneOf: readonly [{
|
|
@@ -79,31 +88,62 @@ export declare const TextFillMaskOutputSchema: {
|
|
|
79
88
|
readonly type: "object";
|
|
80
89
|
readonly properties: {
|
|
81
90
|
readonly predictions: {
|
|
82
|
-
readonly
|
|
83
|
-
|
|
84
|
-
readonly
|
|
85
|
-
|
|
86
|
-
readonly
|
|
87
|
-
readonly
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
readonly
|
|
93
|
-
|
|
94
|
-
|
|
91
|
+
readonly anyOf: readonly [{
|
|
92
|
+
readonly type: "array";
|
|
93
|
+
readonly items: {
|
|
94
|
+
readonly type: "object";
|
|
95
|
+
readonly properties: {
|
|
96
|
+
readonly entity: {
|
|
97
|
+
readonly type: "string";
|
|
98
|
+
readonly title: "Entity";
|
|
99
|
+
readonly description: "The token that was predicted to fill the mask";
|
|
100
|
+
};
|
|
101
|
+
readonly score: {
|
|
102
|
+
readonly type: "number";
|
|
103
|
+
readonly title: "Score";
|
|
104
|
+
readonly description: "The confidence score for this prediction";
|
|
105
|
+
};
|
|
106
|
+
readonly sequence: {
|
|
107
|
+
readonly type: "string";
|
|
108
|
+
readonly title: "Sequence";
|
|
109
|
+
readonly description: "The complete text with the mask filled";
|
|
110
|
+
};
|
|
95
111
|
};
|
|
96
|
-
readonly
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
112
|
+
readonly required: readonly ["entity", "score", "sequence"];
|
|
113
|
+
readonly additionalProperties: false;
|
|
114
|
+
};
|
|
115
|
+
readonly title: "Predictions";
|
|
116
|
+
readonly description: "The predicted tokens to fill the mask with their scores and complete sequences";
|
|
117
|
+
}, {
|
|
118
|
+
readonly type: "array";
|
|
119
|
+
readonly items: {
|
|
120
|
+
readonly type: "array";
|
|
121
|
+
readonly items: {
|
|
122
|
+
readonly type: "object";
|
|
123
|
+
readonly properties: {
|
|
124
|
+
readonly entity: {
|
|
125
|
+
readonly type: "string";
|
|
126
|
+
readonly title: "Entity";
|
|
127
|
+
readonly description: "The token that was predicted to fill the mask";
|
|
128
|
+
};
|
|
129
|
+
readonly score: {
|
|
130
|
+
readonly type: "number";
|
|
131
|
+
readonly title: "Score";
|
|
132
|
+
readonly description: "The confidence score for this prediction";
|
|
133
|
+
};
|
|
134
|
+
readonly sequence: {
|
|
135
|
+
readonly type: "string";
|
|
136
|
+
readonly title: "Sequence";
|
|
137
|
+
readonly description: "The complete text with the mask filled";
|
|
138
|
+
};
|
|
139
|
+
};
|
|
140
|
+
readonly required: readonly ["entity", "score", "sequence"];
|
|
141
|
+
readonly additionalProperties: false;
|
|
100
142
|
};
|
|
143
|
+
readonly title: "Predictions";
|
|
144
|
+
readonly description: "The predicted tokens to fill the mask with their scores and complete sequences";
|
|
101
145
|
};
|
|
102
|
-
|
|
103
|
-
readonly additionalProperties: false;
|
|
104
|
-
};
|
|
105
|
-
readonly title: "Predictions";
|
|
106
|
-
readonly description: "The predicted tokens to fill the mask with their scores and complete sequences";
|
|
146
|
+
}];
|
|
107
147
|
};
|
|
108
148
|
};
|
|
109
149
|
readonly required: readonly ["predictions"];
|
|
@@ -133,7 +173,11 @@ export declare const textFillMask: (input: TextFillMaskTaskInput, config?: JobQu
|
|
|
133
173
|
score: number;
|
|
134
174
|
entity: string;
|
|
135
175
|
sequence: string;
|
|
136
|
-
}[]
|
|
176
|
+
}[] | {
|
|
177
|
+
score: number;
|
|
178
|
+
entity: string;
|
|
179
|
+
sequence: string;
|
|
180
|
+
}[][];
|
|
137
181
|
}>;
|
|
138
182
|
declare module "@workglow/task-graph" {
|
|
139
183
|
interface Workflow {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextFillMaskTask.d.ts","sourceRoot":"","sources":["../../src/task/TextFillMaskTask.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAAY,MAAM,sBAAsB,CAAC;AACpF,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":"TextFillMaskTask.d.ts","sourceRoot":"","sources":["../../src/task/TextFillMaskTask.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAAY,MAAM,sBAAsB,CAAC;AACpF,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAKvC,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAYD,CAAC;AAEpC,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiCF,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,SAAe;IAClC,OAAc,WAAW,SAAiC;WAC5C,WAAW,IAAI,cAAc;WAG7B,YAAY,IAAI,cAAc;CAG7C;AAED;;;;;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"}
|
|
@@ -67,9 +67,18 @@ export declare const TextGenerationInputSchema: {
|
|
|
67
67
|
readonly format: import(".").TypeModelSemantic;
|
|
68
68
|
};
|
|
69
69
|
readonly prompt: {
|
|
70
|
-
readonly
|
|
71
|
-
|
|
72
|
-
|
|
70
|
+
readonly anyOf: readonly [{
|
|
71
|
+
readonly type: "string";
|
|
72
|
+
readonly title: "Prompt";
|
|
73
|
+
readonly description: "The prompt to generate text from";
|
|
74
|
+
}, {
|
|
75
|
+
readonly type: "array";
|
|
76
|
+
readonly items: {
|
|
77
|
+
readonly type: "string";
|
|
78
|
+
readonly title: "Prompt";
|
|
79
|
+
readonly description: "The prompt to generate text from";
|
|
80
|
+
};
|
|
81
|
+
}];
|
|
73
82
|
};
|
|
74
83
|
readonly maxTokens: {
|
|
75
84
|
readonly type: "number";
|
|
@@ -119,10 +128,20 @@ export declare const TextGenerationOutputSchema: {
|
|
|
119
128
|
readonly type: "object";
|
|
120
129
|
readonly properties: {
|
|
121
130
|
readonly text: {
|
|
122
|
-
readonly
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
131
|
+
readonly anyOf: readonly [{
|
|
132
|
+
readonly type: "string";
|
|
133
|
+
readonly title: "Text";
|
|
134
|
+
readonly description: "The generated text";
|
|
135
|
+
readonly "x-stream": "append";
|
|
136
|
+
}, {
|
|
137
|
+
readonly type: "array";
|
|
138
|
+
readonly items: {
|
|
139
|
+
readonly type: "string";
|
|
140
|
+
readonly title: "Text";
|
|
141
|
+
readonly description: "The generated text";
|
|
142
|
+
readonly "x-stream": "append";
|
|
143
|
+
};
|
|
144
|
+
}];
|
|
126
145
|
};
|
|
127
146
|
};
|
|
128
147
|
readonly required: readonly ["text"];
|
|
@@ -142,7 +161,7 @@ export declare class TextGenerationTask extends StreamingAiTask<TextGenerationTa
|
|
|
142
161
|
* Task for generating text using a language model
|
|
143
162
|
*/
|
|
144
163
|
export declare const textGeneration: (input: TextGenerationTaskInput, config?: JobQueueTaskConfig) => Promise<{
|
|
145
|
-
text: string;
|
|
164
|
+
text: string | string[];
|
|
146
165
|
}>;
|
|
147
166
|
declare module "@workglow/task-graph" {
|
|
148
167
|
interface Workflow {
|
|
@@ -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,EAAY,MAAM,sBAAsB,CAAC;AACpF,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAE5D,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAWzD,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,EAAY,MAAM,sBAAsB,CAAC;AACpF,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAE5D,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAWzD,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoDH,CAAC;AAEpC,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;CAOJ,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,eAAe,CACrD,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;AAED;;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"}
|
|
@@ -10,9 +10,18 @@ export declare const TextLanguageDetectionInputSchema: {
|
|
|
10
10
|
readonly type: "object";
|
|
11
11
|
readonly properties: {
|
|
12
12
|
readonly text: {
|
|
13
|
-
readonly
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
readonly anyOf: readonly [{
|
|
14
|
+
readonly type: "string";
|
|
15
|
+
readonly title: "Text";
|
|
16
|
+
readonly description: "The text to detect the language of";
|
|
17
|
+
}, {
|
|
18
|
+
readonly type: "array";
|
|
19
|
+
readonly items: {
|
|
20
|
+
readonly type: "string";
|
|
21
|
+
readonly title: "Text";
|
|
22
|
+
readonly description: "The text to detect the language of";
|
|
23
|
+
};
|
|
24
|
+
}];
|
|
16
25
|
};
|
|
17
26
|
readonly maxLanguages: {
|
|
18
27
|
readonly type: "number";
|
|
@@ -87,26 +96,52 @@ export declare const TextLanguageDetectionOutputSchema: {
|
|
|
87
96
|
readonly type: "object";
|
|
88
97
|
readonly properties: {
|
|
89
98
|
readonly languages: {
|
|
90
|
-
readonly
|
|
91
|
-
|
|
92
|
-
readonly
|
|
93
|
-
|
|
94
|
-
readonly
|
|
95
|
-
readonly
|
|
96
|
-
|
|
97
|
-
|
|
99
|
+
readonly anyOf: readonly [{
|
|
100
|
+
readonly type: "array";
|
|
101
|
+
readonly items: {
|
|
102
|
+
readonly type: "object";
|
|
103
|
+
readonly properties: {
|
|
104
|
+
readonly language: {
|
|
105
|
+
readonly type: "string";
|
|
106
|
+
readonly title: "Language";
|
|
107
|
+
readonly description: "The language";
|
|
108
|
+
};
|
|
109
|
+
readonly score: {
|
|
110
|
+
readonly type: "number";
|
|
111
|
+
readonly title: "Score";
|
|
112
|
+
readonly description: "The confidence score for this language";
|
|
113
|
+
};
|
|
98
114
|
};
|
|
99
|
-
readonly
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
115
|
+
readonly required: readonly ["language", "score"];
|
|
116
|
+
readonly additionalProperties: false;
|
|
117
|
+
};
|
|
118
|
+
readonly title: "Languages";
|
|
119
|
+
readonly description: "The languages with their scores";
|
|
120
|
+
}, {
|
|
121
|
+
readonly type: "array";
|
|
122
|
+
readonly items: {
|
|
123
|
+
readonly type: "array";
|
|
124
|
+
readonly items: {
|
|
125
|
+
readonly type: "object";
|
|
126
|
+
readonly properties: {
|
|
127
|
+
readonly language: {
|
|
128
|
+
readonly type: "string";
|
|
129
|
+
readonly title: "Language";
|
|
130
|
+
readonly description: "The language";
|
|
131
|
+
};
|
|
132
|
+
readonly score: {
|
|
133
|
+
readonly type: "number";
|
|
134
|
+
readonly title: "Score";
|
|
135
|
+
readonly description: "The confidence score for this language";
|
|
136
|
+
};
|
|
137
|
+
};
|
|
138
|
+
readonly required: readonly ["language", "score"];
|
|
139
|
+
readonly additionalProperties: false;
|
|
103
140
|
};
|
|
141
|
+
readonly title: "Languages";
|
|
142
|
+
readonly description: "The languages with their scores";
|
|
104
143
|
};
|
|
105
|
-
|
|
106
|
-
readonly additionalProperties: false;
|
|
107
|
-
};
|
|
108
|
-
readonly title: "Languages";
|
|
109
|
-
readonly description: "The languages with their scores";
|
|
144
|
+
}];
|
|
110
145
|
};
|
|
111
146
|
};
|
|
112
147
|
readonly required: readonly ["languages"];
|
|
@@ -135,7 +170,10 @@ export declare const textLanguageDetection: (input: TextLanguageDetectionTaskInp
|
|
|
135
170
|
languages: {
|
|
136
171
|
score: number;
|
|
137
172
|
language: string;
|
|
138
|
-
}[]
|
|
173
|
+
}[] | {
|
|
174
|
+
score: number;
|
|
175
|
+
language: string;
|
|
176
|
+
}[][];
|
|
139
177
|
}>;
|
|
140
178
|
declare module "@workglow/task-graph" {
|
|
141
179
|
interface Workflow {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextLanguageDetectionTask.d.ts","sourceRoot":"","sources":["../../src/task/TextLanguageDetectionTask.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAAY,MAAM,sBAAsB,CAAC;AACpF,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAKvC,eAAO,MAAM,gCAAgC
|
|
1
|
+
{"version":3,"file":"TextLanguageDetectionTask.d.ts","sourceRoot":"","sources":["../../src/task/TextLanguageDetectionTask.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAAY,MAAM,sBAAsB,CAAC;AACpF,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAKvC,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuDV,CAAC;AAEpC,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4BX,CAAC;AAEpC,MAAM,MAAM,8BAA8B,GAAG,UAAU,CAAC,OAAO,gCAAgC,CAAC,CAAC;AACjG,MAAM,MAAM,+BAA+B,GAAG,UAAU,CAAC,OAAO,iCAAiC,CAAC,CAAC;AAEnG;;GAEG;AACH,qBAAa,yBAA0B,SAAQ,MAAM,CACnD,8BAA8B,EAC9B,+BAA+B,CAChC;IACC,OAAc,IAAI,SAA+B;IACjD,OAAc,QAAQ,SAAmB;IACzC,OAAc,KAAK,SAAwB;IAC3C,OAAc,WAAW,SAAwD;WACnE,WAAW,IAAI,cAAc;WAG7B,YAAY,IAAI,cAAc;CAG7C;AAED;;;;;GAKG;AACH,eAAO,MAAM,qBAAqB,GAChC,OAAO,8BAA8B,EACrC,SAAS,kBAAkB;;;;;;;;EAG5B,CAAC;AAEF,OAAO,QAAQ,sBAAsB,CAAC;IACpC,UAAU,QAAQ;QAChB,qBAAqB,EAAE,cAAc,CACnC,8BAA8B,EAC9B,+BAA+B,EAC/B,kBAAkB,CACnB,CAAC;KACH;CACF"}
|
|
@@ -10,9 +10,18 @@ export declare const TextNamedEntityRecognitionInputSchema: {
|
|
|
10
10
|
readonly type: "object";
|
|
11
11
|
readonly properties: {
|
|
12
12
|
readonly text: {
|
|
13
|
-
readonly
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
readonly anyOf: readonly [{
|
|
14
|
+
readonly type: "string";
|
|
15
|
+
readonly title: "Text";
|
|
16
|
+
readonly description: "The text to extract named entities from";
|
|
17
|
+
}, {
|
|
18
|
+
readonly type: "array";
|
|
19
|
+
readonly items: {
|
|
20
|
+
readonly type: "string";
|
|
21
|
+
readonly title: "Text";
|
|
22
|
+
readonly description: "The text to extract named entities from";
|
|
23
|
+
};
|
|
24
|
+
}];
|
|
16
25
|
};
|
|
17
26
|
readonly blockList: {
|
|
18
27
|
readonly type: "array";
|
|
@@ -89,31 +98,62 @@ export declare const TextNamedEntityRecognitionOutputSchema: {
|
|
|
89
98
|
readonly type: "object";
|
|
90
99
|
readonly properties: {
|
|
91
100
|
readonly entities: {
|
|
92
|
-
readonly
|
|
93
|
-
|
|
94
|
-
readonly
|
|
95
|
-
|
|
96
|
-
readonly
|
|
97
|
-
readonly
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
readonly
|
|
103
|
-
|
|
104
|
-
|
|
101
|
+
readonly anyOf: readonly [{
|
|
102
|
+
readonly type: "array";
|
|
103
|
+
readonly items: {
|
|
104
|
+
readonly type: "object";
|
|
105
|
+
readonly properties: {
|
|
106
|
+
readonly entity: {
|
|
107
|
+
readonly type: "string";
|
|
108
|
+
readonly title: "Entity";
|
|
109
|
+
readonly description: "The type of the named entity";
|
|
110
|
+
};
|
|
111
|
+
readonly score: {
|
|
112
|
+
readonly type: "number";
|
|
113
|
+
readonly title: "Score";
|
|
114
|
+
readonly description: "The confidence score for this entity";
|
|
115
|
+
};
|
|
116
|
+
readonly word: {
|
|
117
|
+
readonly type: "string";
|
|
118
|
+
readonly title: "Word";
|
|
119
|
+
readonly description: "The extracted text of the named entity";
|
|
120
|
+
};
|
|
105
121
|
};
|
|
106
|
-
readonly
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
122
|
+
readonly required: readonly ["entity", "score", "word"];
|
|
123
|
+
readonly additionalProperties: false;
|
|
124
|
+
};
|
|
125
|
+
readonly title: "Entities";
|
|
126
|
+
readonly description: "The extracted named entities with their types, scores, and text";
|
|
127
|
+
}, {
|
|
128
|
+
readonly type: "array";
|
|
129
|
+
readonly items: {
|
|
130
|
+
readonly type: "array";
|
|
131
|
+
readonly items: {
|
|
132
|
+
readonly type: "object";
|
|
133
|
+
readonly properties: {
|
|
134
|
+
readonly entity: {
|
|
135
|
+
readonly type: "string";
|
|
136
|
+
readonly title: "Entity";
|
|
137
|
+
readonly description: "The type of the named entity";
|
|
138
|
+
};
|
|
139
|
+
readonly score: {
|
|
140
|
+
readonly type: "number";
|
|
141
|
+
readonly title: "Score";
|
|
142
|
+
readonly description: "The confidence score for this entity";
|
|
143
|
+
};
|
|
144
|
+
readonly word: {
|
|
145
|
+
readonly type: "string";
|
|
146
|
+
readonly title: "Word";
|
|
147
|
+
readonly description: "The extracted text of the named entity";
|
|
148
|
+
};
|
|
149
|
+
};
|
|
150
|
+
readonly required: readonly ["entity", "score", "word"];
|
|
151
|
+
readonly additionalProperties: false;
|
|
110
152
|
};
|
|
153
|
+
readonly title: "Entities";
|
|
154
|
+
readonly description: "The extracted named entities with their types, scores, and text";
|
|
111
155
|
};
|
|
112
|
-
|
|
113
|
-
readonly additionalProperties: false;
|
|
114
|
-
};
|
|
115
|
-
readonly title: "Entities";
|
|
116
|
-
readonly description: "The extracted named entities with their types, scores, and text";
|
|
156
|
+
}];
|
|
117
157
|
};
|
|
118
158
|
};
|
|
119
159
|
readonly required: readonly ["entities"];
|
|
@@ -143,7 +183,11 @@ export declare const textNamedEntityRecognition: (input: TextNamedEntityRecognit
|
|
|
143
183
|
score: number;
|
|
144
184
|
entity: string;
|
|
145
185
|
word: string;
|
|
146
|
-
}[]
|
|
186
|
+
}[] | {
|
|
187
|
+
score: number;
|
|
188
|
+
entity: string;
|
|
189
|
+
word: string;
|
|
190
|
+
}[][];
|
|
147
191
|
}>;
|
|
148
192
|
declare module "@workglow/task-graph" {
|
|
149
193
|
interface Workflow {
|