@workglow/ai 0.0.69 → 0.0.71
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 +204 -62
- package/dist/browser.js.map +13 -11
- package/dist/bun.js +204 -62
- package/dist/bun.js.map +13 -11
- package/dist/node.js +204 -62
- package/dist/node.js.map +13 -11
- package/dist/task/TextClassifierTask.d.ts +7 -7
- package/dist/task/TextClassifierTask.d.ts.map +1 -1
- package/dist/task/TextEmbeddingTask.d.ts +3 -1
- package/dist/task/TextEmbeddingTask.d.ts.map +1 -1
- package/dist/task/TextFillMaskTask.d.ts +202 -0
- package/dist/task/TextFillMaskTask.d.ts.map +1 -0
- package/dist/task/TextGenerationTask.d.ts +3 -0
- package/dist/task/TextGenerationTask.d.ts.map +1 -1
- package/dist/task/TextLanguageDetectionTask.d.ts +7 -7
- package/dist/task/TextLanguageDetectionTask.d.ts.map +1 -1
- package/dist/task/TextNamedEntityRecognitionTask.d.ts +212 -0
- package/dist/task/TextNamedEntityRecognitionTask.d.ts.map +1 -0
- package/dist/task/TextQuestionAnswerTask.d.ts +3 -0
- package/dist/task/TextQuestionAnswerTask.d.ts.map +1 -1
- package/dist/task/TextRewriterTask.d.ts +3 -0
- package/dist/task/TextRewriterTask.d.ts.map +1 -1
- package/dist/task/TextSummaryTask.d.ts +3 -0
- package/dist/task/TextSummaryTask.d.ts.map +1 -1
- package/dist/task/TextTranslationTask.d.ts +3 -0
- package/dist/task/TextTranslationTask.d.ts.map +1 -1
- package/dist/task/base/AiTaskSchemas.d.ts +1 -1
- package/dist/task/index.d.ts +2 -0
- package/dist/task/index.d.ts.map +1 -1
- package/package.json +9 -9
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2025 Steven Roussey <sroussey@gmail.com>
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import { CreateWorkflow, JobQueueTaskConfig } from "@workglow/task-graph";
|
|
7
|
+
import { DataPortSchema, FromSchema } from "@workglow/util";
|
|
8
|
+
import { AiTask } from "./base/AiTask";
|
|
9
|
+
import { DeReplicateFromSchema } from "./base/AiTaskSchemas";
|
|
10
|
+
export declare const TextFillMaskInputSchema: {
|
|
11
|
+
readonly type: "object";
|
|
12
|
+
readonly properties: {
|
|
13
|
+
readonly text: {
|
|
14
|
+
readonly "x-replicate": true;
|
|
15
|
+
readonly format?: string | undefined;
|
|
16
|
+
readonly oneOf: readonly [{
|
|
17
|
+
type: "string";
|
|
18
|
+
title: string;
|
|
19
|
+
description: string;
|
|
20
|
+
}, {
|
|
21
|
+
readonly type: "array";
|
|
22
|
+
readonly items: {
|
|
23
|
+
type: "string";
|
|
24
|
+
title: string;
|
|
25
|
+
description: string;
|
|
26
|
+
};
|
|
27
|
+
}];
|
|
28
|
+
readonly title: string | undefined;
|
|
29
|
+
readonly description: string | undefined;
|
|
30
|
+
};
|
|
31
|
+
readonly model: {
|
|
32
|
+
readonly "x-replicate": true;
|
|
33
|
+
readonly format?: string | undefined;
|
|
34
|
+
readonly oneOf: readonly [{
|
|
35
|
+
readonly oneOf: readonly [{
|
|
36
|
+
readonly title: "Model";
|
|
37
|
+
readonly description: `The model ${string}`;
|
|
38
|
+
} & {
|
|
39
|
+
readonly format: import(".").TypeModelSemantic;
|
|
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 format: "model";
|
|
73
|
+
readonly additionalProperties: false;
|
|
74
|
+
} & {
|
|
75
|
+
readonly format: import(".").TypeModelSemantic;
|
|
76
|
+
}];
|
|
77
|
+
} & {
|
|
78
|
+
readonly format: import(".").TypeModelSemantic;
|
|
79
|
+
}, {
|
|
80
|
+
readonly type: "array";
|
|
81
|
+
readonly items: {
|
|
82
|
+
readonly oneOf: readonly [{
|
|
83
|
+
readonly title: "Model";
|
|
84
|
+
readonly description: `The model ${string}`;
|
|
85
|
+
} & {
|
|
86
|
+
readonly format: import(".").TypeModelSemantic;
|
|
87
|
+
readonly type: "string";
|
|
88
|
+
}, {
|
|
89
|
+
readonly type: "object";
|
|
90
|
+
readonly properties: {
|
|
91
|
+
readonly model_id: {
|
|
92
|
+
readonly type: "string";
|
|
93
|
+
};
|
|
94
|
+
readonly tasks: {
|
|
95
|
+
readonly type: "array";
|
|
96
|
+
readonly items: {
|
|
97
|
+
readonly type: "string";
|
|
98
|
+
};
|
|
99
|
+
};
|
|
100
|
+
readonly title: {
|
|
101
|
+
readonly type: "string";
|
|
102
|
+
};
|
|
103
|
+
readonly description: {
|
|
104
|
+
readonly type: "string";
|
|
105
|
+
};
|
|
106
|
+
readonly provider: {
|
|
107
|
+
readonly type: "string";
|
|
108
|
+
};
|
|
109
|
+
readonly providerConfig: {
|
|
110
|
+
readonly type: "object";
|
|
111
|
+
readonly default: {};
|
|
112
|
+
};
|
|
113
|
+
readonly metadata: {
|
|
114
|
+
readonly type: "object";
|
|
115
|
+
readonly default: {};
|
|
116
|
+
};
|
|
117
|
+
};
|
|
118
|
+
readonly required: readonly ["model_id", "tasks", "provider", "title", "description", "providerConfig", "metadata"];
|
|
119
|
+
readonly format: "model";
|
|
120
|
+
readonly additionalProperties: false;
|
|
121
|
+
} & {
|
|
122
|
+
readonly format: import(".").TypeModelSemantic;
|
|
123
|
+
}];
|
|
124
|
+
} & {
|
|
125
|
+
readonly format: import(".").TypeModelSemantic;
|
|
126
|
+
};
|
|
127
|
+
}];
|
|
128
|
+
readonly title: string | undefined;
|
|
129
|
+
readonly description: string | undefined;
|
|
130
|
+
};
|
|
131
|
+
};
|
|
132
|
+
readonly required: readonly ["text", "model"];
|
|
133
|
+
readonly additionalProperties: false;
|
|
134
|
+
};
|
|
135
|
+
export declare const TextFillMaskOutputSchema: {
|
|
136
|
+
readonly type: "object";
|
|
137
|
+
readonly properties: {
|
|
138
|
+
readonly predictions: {
|
|
139
|
+
readonly type: "array";
|
|
140
|
+
readonly items: {
|
|
141
|
+
readonly type: "object";
|
|
142
|
+
readonly properties: {
|
|
143
|
+
readonly entity: {
|
|
144
|
+
readonly type: "string";
|
|
145
|
+
readonly title: "Entity";
|
|
146
|
+
readonly description: "The token that was predicted to fill the mask";
|
|
147
|
+
};
|
|
148
|
+
readonly score: {
|
|
149
|
+
readonly type: "number";
|
|
150
|
+
readonly title: "Score";
|
|
151
|
+
readonly description: "The confidence score for this prediction";
|
|
152
|
+
};
|
|
153
|
+
readonly sequence: {
|
|
154
|
+
readonly type: "string";
|
|
155
|
+
readonly title: "Sequence";
|
|
156
|
+
readonly description: "The complete text with the mask filled";
|
|
157
|
+
};
|
|
158
|
+
};
|
|
159
|
+
readonly required: readonly ["entity", "score", "sequence"];
|
|
160
|
+
readonly additionalProperties: false;
|
|
161
|
+
};
|
|
162
|
+
readonly title: "Predictions";
|
|
163
|
+
readonly description: "The predicted tokens to fill the mask with their scores and complete sequences";
|
|
164
|
+
};
|
|
165
|
+
};
|
|
166
|
+
readonly required: readonly ["predictions"];
|
|
167
|
+
readonly additionalProperties: false;
|
|
168
|
+
};
|
|
169
|
+
export type TextFillMaskTaskInput = FromSchema<typeof TextFillMaskInputSchema>;
|
|
170
|
+
export type TextFillMaskTaskOutput = FromSchema<typeof TextFillMaskOutputSchema>;
|
|
171
|
+
export type TextFillMaskTaskExecuteInput = DeReplicateFromSchema<typeof TextFillMaskInputSchema>;
|
|
172
|
+
export type TextFillMaskTaskExecuteOutput = DeReplicateFromSchema<typeof TextFillMaskOutputSchema>;
|
|
173
|
+
/**
|
|
174
|
+
* Fills masked tokens in text using language models
|
|
175
|
+
*/
|
|
176
|
+
export declare class TextFillMaskTask extends AiTask<TextFillMaskTaskInput, TextFillMaskTaskOutput> {
|
|
177
|
+
static type: string;
|
|
178
|
+
static category: string;
|
|
179
|
+
static title: string;
|
|
180
|
+
static description: string;
|
|
181
|
+
static inputSchema(): DataPortSchema;
|
|
182
|
+
static outputSchema(): DataPortSchema;
|
|
183
|
+
}
|
|
184
|
+
/**
|
|
185
|
+
* Convenience function to run fill mask tasks.
|
|
186
|
+
* Creates and executes a TextFillMaskTask with the provided input.
|
|
187
|
+
* @param input The input parameters for fill mask (text with mask token and model)
|
|
188
|
+
* @returns Promise resolving to the predicted tokens with scores and complete sequences
|
|
189
|
+
*/
|
|
190
|
+
export declare const TextFillMask: (input: TextFillMaskTaskInput, config?: JobQueueTaskConfig) => Promise<{
|
|
191
|
+
predictions: {
|
|
192
|
+
score: number;
|
|
193
|
+
entity: string;
|
|
194
|
+
sequence: string;
|
|
195
|
+
}[];
|
|
196
|
+
}>;
|
|
197
|
+
declare module "@workglow/task-graph" {
|
|
198
|
+
interface Workflow {
|
|
199
|
+
TextFillMask: CreateWorkflow<TextFillMaskTaskInput, TextFillMaskTaskOutput, JobQueueTaskConfig>;
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
//# sourceMappingURL=TextFillMaskTask.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
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F,OAAO,QAAQ,sBAAsB,CAAC;IACpC,UAAU,QAAQ;QAChB,YAAY,EAAE,cAAc,CAC1B,qBAAqB,EACrB,sBAAsB,EACtB,kBAAkB,CACnB,CAAC;KACH;CACF"}
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
import { CreateWorkflow, JobQueueTaskConfig } from "@workglow/task-graph";
|
|
7
7
|
import { DataPortSchema, FromSchema } from "@workglow/util";
|
|
8
8
|
import { AiTask } from "./base/AiTask";
|
|
9
|
+
import { DeReplicateFromSchema } from "./base/AiTaskSchemas";
|
|
9
10
|
export declare const TextGenerationInputSchema: {
|
|
10
11
|
readonly type: "object";
|
|
11
12
|
readonly properties: {
|
|
@@ -196,6 +197,8 @@ export declare const TextGenerationOutputSchema: {
|
|
|
196
197
|
};
|
|
197
198
|
export type TextGenerationTaskInput = FromSchema<typeof TextGenerationInputSchema>;
|
|
198
199
|
export type TextGenerationTaskOutput = FromSchema<typeof TextGenerationOutputSchema>;
|
|
200
|
+
export type TextGenerationTaskExecuteInput = DeReplicateFromSchema<typeof TextGenerationInputSchema>;
|
|
201
|
+
export type TextGenerationTaskExecuteOutput = DeReplicateFromSchema<typeof TextGenerationOutputSchema>;
|
|
199
202
|
export declare class TextGenerationTask extends AiTask<TextGenerationTaskInput, TextGenerationTaskOutput, JobQueueTaskConfig> {
|
|
200
203
|
static type: string;
|
|
201
204
|
static category: string;
|
|
@@ -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;
|
|
1
|
+
{"version":3,"file":"TextGenerationTask.d.ts","sourceRoot":"","sources":["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BAAsB,CAAC;IACpC,UAAU,QAAQ;QAChB,cAAc,EAAE,cAAc,CAC5B,uBAAuB,EACvB,wBAAwB,EACxB,kBAAkB,CACnB,CAAC;KACH;CACF"}
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
import { CreateWorkflow, JobQueueTaskConfig } from "@workglow/task-graph";
|
|
7
7
|
import { DataPortSchema, FromSchema } from "@workglow/util";
|
|
8
8
|
import { AiTask } from "./base/AiTask";
|
|
9
|
+
import { DeReplicateFromSchema } from "./base/AiTaskSchemas";
|
|
9
10
|
export declare const TextLanguageDetectionInputSchema: {
|
|
10
11
|
readonly type: "object";
|
|
11
12
|
readonly properties: {
|
|
@@ -28,13 +29,10 @@ export declare const TextLanguageDetectionInputSchema: {
|
|
|
28
29
|
readonly description: string | undefined;
|
|
29
30
|
};
|
|
30
31
|
readonly maxLanguages: {
|
|
31
|
-
readonly
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
}, {
|
|
36
|
-
readonly type: "null";
|
|
37
|
-
}];
|
|
32
|
+
readonly type: "number";
|
|
33
|
+
readonly minimum: 0;
|
|
34
|
+
readonly maximum: 100;
|
|
35
|
+
readonly default: 5;
|
|
38
36
|
readonly title: "Max Languages";
|
|
39
37
|
readonly description: "The maximum number of languages to return";
|
|
40
38
|
};
|
|
@@ -173,6 +171,8 @@ export declare const TextLanguageDetectionOutputSchema: {
|
|
|
173
171
|
};
|
|
174
172
|
export type TextLanguageDetectionTaskInput = FromSchema<typeof TextLanguageDetectionInputSchema>;
|
|
175
173
|
export type TextLanguageDetectionTaskOutput = FromSchema<typeof TextLanguageDetectionOutputSchema>;
|
|
174
|
+
export type TextLanguageDetectionTaskExecuteInput = DeReplicateFromSchema<typeof TextLanguageDetectionInputSchema>;
|
|
175
|
+
export type TextLanguageDetectionTaskExecuteOutput = DeReplicateFromSchema<typeof TextLanguageDetectionOutputSchema>;
|
|
176
176
|
/**
|
|
177
177
|
* Detects the language of text using language models
|
|
178
178
|
*/
|
|
@@ -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,EAA0B,MAAM,sBAAsB,CAAC;AAClG,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"TextLanguageDetectionTask.d.ts","sourceRoot":"","sources":["../../src/task/TextLanguageDetectionTask.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,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;AACnG,MAAM,MAAM,qCAAqC,GAAG,qBAAqB,CACvE,OAAO,gCAAgC,CACxC,CAAC;AACF,MAAM,MAAM,sCAAsC,GAAG,qBAAqB,CACxE,OAAO,iCAAiC,CACzC,CAAC;AAEF;;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;AAID;;;;;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"}
|
|
@@ -0,0 +1,212 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2025 Steven Roussey <sroussey@gmail.com>
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import { CreateWorkflow, JobQueueTaskConfig } from "@workglow/task-graph";
|
|
7
|
+
import { DataPortSchema, FromSchema } from "@workglow/util";
|
|
8
|
+
import { AiTask } from "./base/AiTask";
|
|
9
|
+
import { DeReplicateFromSchema } from "./base/AiTaskSchemas";
|
|
10
|
+
export declare const TextNamedEntityRecognitionInputSchema: {
|
|
11
|
+
readonly type: "object";
|
|
12
|
+
readonly properties: {
|
|
13
|
+
readonly text: {
|
|
14
|
+
readonly "x-replicate": true;
|
|
15
|
+
readonly format?: string | undefined;
|
|
16
|
+
readonly oneOf: readonly [{
|
|
17
|
+
type: "string";
|
|
18
|
+
title: string;
|
|
19
|
+
description: string;
|
|
20
|
+
}, {
|
|
21
|
+
readonly type: "array";
|
|
22
|
+
readonly items: {
|
|
23
|
+
type: "string";
|
|
24
|
+
title: string;
|
|
25
|
+
description: string;
|
|
26
|
+
};
|
|
27
|
+
}];
|
|
28
|
+
readonly title: string | undefined;
|
|
29
|
+
readonly description: string | undefined;
|
|
30
|
+
};
|
|
31
|
+
readonly blockList: {
|
|
32
|
+
readonly type: "array";
|
|
33
|
+
readonly items: {
|
|
34
|
+
readonly type: "string";
|
|
35
|
+
};
|
|
36
|
+
readonly title: "Block List";
|
|
37
|
+
readonly description: "The entity types to exclude from results";
|
|
38
|
+
readonly "x-ui-group": "Configuration";
|
|
39
|
+
readonly "x-ui-group-open": false;
|
|
40
|
+
};
|
|
41
|
+
readonly model: {
|
|
42
|
+
readonly "x-replicate": true;
|
|
43
|
+
readonly format?: string | undefined;
|
|
44
|
+
readonly oneOf: readonly [{
|
|
45
|
+
readonly oneOf: readonly [{
|
|
46
|
+
readonly title: "Model";
|
|
47
|
+
readonly description: `The model ${string}`;
|
|
48
|
+
} & {
|
|
49
|
+
readonly format: import(".").TypeModelSemantic;
|
|
50
|
+
readonly type: "string";
|
|
51
|
+
}, {
|
|
52
|
+
readonly type: "object";
|
|
53
|
+
readonly properties: {
|
|
54
|
+
readonly model_id: {
|
|
55
|
+
readonly type: "string";
|
|
56
|
+
};
|
|
57
|
+
readonly tasks: {
|
|
58
|
+
readonly type: "array";
|
|
59
|
+
readonly items: {
|
|
60
|
+
readonly type: "string";
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
readonly title: {
|
|
64
|
+
readonly type: "string";
|
|
65
|
+
};
|
|
66
|
+
readonly description: {
|
|
67
|
+
readonly type: "string";
|
|
68
|
+
};
|
|
69
|
+
readonly provider: {
|
|
70
|
+
readonly type: "string";
|
|
71
|
+
};
|
|
72
|
+
readonly providerConfig: {
|
|
73
|
+
readonly type: "object";
|
|
74
|
+
readonly default: {};
|
|
75
|
+
};
|
|
76
|
+
readonly metadata: {
|
|
77
|
+
readonly type: "object";
|
|
78
|
+
readonly default: {};
|
|
79
|
+
};
|
|
80
|
+
};
|
|
81
|
+
readonly required: readonly ["model_id", "tasks", "provider", "title", "description", "providerConfig", "metadata"];
|
|
82
|
+
readonly format: "model";
|
|
83
|
+
readonly additionalProperties: false;
|
|
84
|
+
} & {
|
|
85
|
+
readonly format: import(".").TypeModelSemantic;
|
|
86
|
+
}];
|
|
87
|
+
} & {
|
|
88
|
+
readonly format: import(".").TypeModelSemantic;
|
|
89
|
+
}, {
|
|
90
|
+
readonly type: "array";
|
|
91
|
+
readonly items: {
|
|
92
|
+
readonly oneOf: readonly [{
|
|
93
|
+
readonly title: "Model";
|
|
94
|
+
readonly description: `The model ${string}`;
|
|
95
|
+
} & {
|
|
96
|
+
readonly format: import(".").TypeModelSemantic;
|
|
97
|
+
readonly type: "string";
|
|
98
|
+
}, {
|
|
99
|
+
readonly type: "object";
|
|
100
|
+
readonly properties: {
|
|
101
|
+
readonly model_id: {
|
|
102
|
+
readonly type: "string";
|
|
103
|
+
};
|
|
104
|
+
readonly tasks: {
|
|
105
|
+
readonly type: "array";
|
|
106
|
+
readonly items: {
|
|
107
|
+
readonly type: "string";
|
|
108
|
+
};
|
|
109
|
+
};
|
|
110
|
+
readonly title: {
|
|
111
|
+
readonly type: "string";
|
|
112
|
+
};
|
|
113
|
+
readonly description: {
|
|
114
|
+
readonly type: "string";
|
|
115
|
+
};
|
|
116
|
+
readonly provider: {
|
|
117
|
+
readonly type: "string";
|
|
118
|
+
};
|
|
119
|
+
readonly providerConfig: {
|
|
120
|
+
readonly type: "object";
|
|
121
|
+
readonly default: {};
|
|
122
|
+
};
|
|
123
|
+
readonly metadata: {
|
|
124
|
+
readonly type: "object";
|
|
125
|
+
readonly default: {};
|
|
126
|
+
};
|
|
127
|
+
};
|
|
128
|
+
readonly required: readonly ["model_id", "tasks", "provider", "title", "description", "providerConfig", "metadata"];
|
|
129
|
+
readonly format: "model";
|
|
130
|
+
readonly additionalProperties: false;
|
|
131
|
+
} & {
|
|
132
|
+
readonly format: import(".").TypeModelSemantic;
|
|
133
|
+
}];
|
|
134
|
+
} & {
|
|
135
|
+
readonly format: import(".").TypeModelSemantic;
|
|
136
|
+
};
|
|
137
|
+
}];
|
|
138
|
+
readonly title: string | undefined;
|
|
139
|
+
readonly description: string | undefined;
|
|
140
|
+
};
|
|
141
|
+
};
|
|
142
|
+
readonly required: readonly ["text", "model"];
|
|
143
|
+
readonly additionalProperties: false;
|
|
144
|
+
};
|
|
145
|
+
export declare const TextNamedEntityRecognitionOutputSchema: {
|
|
146
|
+
readonly type: "object";
|
|
147
|
+
readonly properties: {
|
|
148
|
+
readonly entities: {
|
|
149
|
+
readonly type: "array";
|
|
150
|
+
readonly items: {
|
|
151
|
+
readonly type: "object";
|
|
152
|
+
readonly properties: {
|
|
153
|
+
readonly entity: {
|
|
154
|
+
readonly type: "string";
|
|
155
|
+
readonly title: "Entity";
|
|
156
|
+
readonly description: "The type of the named entity";
|
|
157
|
+
};
|
|
158
|
+
readonly score: {
|
|
159
|
+
readonly type: "number";
|
|
160
|
+
readonly title: "Score";
|
|
161
|
+
readonly description: "The confidence score for this entity";
|
|
162
|
+
};
|
|
163
|
+
readonly word: {
|
|
164
|
+
readonly type: "string";
|
|
165
|
+
readonly title: "Word";
|
|
166
|
+
readonly description: "The extracted text of the named entity";
|
|
167
|
+
};
|
|
168
|
+
};
|
|
169
|
+
readonly required: readonly ["entity", "score", "word"];
|
|
170
|
+
readonly additionalProperties: false;
|
|
171
|
+
};
|
|
172
|
+
readonly title: "Entities";
|
|
173
|
+
readonly description: "The extracted named entities with their types, scores, and text";
|
|
174
|
+
};
|
|
175
|
+
};
|
|
176
|
+
readonly required: readonly ["entities"];
|
|
177
|
+
readonly additionalProperties: false;
|
|
178
|
+
};
|
|
179
|
+
export type TextNamedEntityRecognitionTaskInput = FromSchema<typeof TextNamedEntityRecognitionInputSchema>;
|
|
180
|
+
export type TextNamedEntityRecognitionTaskOutput = FromSchema<typeof TextNamedEntityRecognitionOutputSchema>;
|
|
181
|
+
export type TextNamedEntityRecognitionTaskExecuteInput = DeReplicateFromSchema<typeof TextNamedEntityRecognitionInputSchema>;
|
|
182
|
+
export type TextNamedEntityRecognitionTaskExecuteOutput = DeReplicateFromSchema<typeof TextNamedEntityRecognitionOutputSchema>;
|
|
183
|
+
/**
|
|
184
|
+
* Extracts named entities from text using language models
|
|
185
|
+
*/
|
|
186
|
+
export declare class TextNamedEntityRecognitionTask extends AiTask<TextNamedEntityRecognitionTaskInput, TextNamedEntityRecognitionTaskOutput> {
|
|
187
|
+
static type: string;
|
|
188
|
+
static category: string;
|
|
189
|
+
static title: string;
|
|
190
|
+
static description: string;
|
|
191
|
+
static inputSchema(): DataPortSchema;
|
|
192
|
+
static outputSchema(): DataPortSchema;
|
|
193
|
+
}
|
|
194
|
+
/**
|
|
195
|
+
* Convenience function to run named entity recognition tasks.
|
|
196
|
+
* Creates and executes a TextNamedEntityRecognitionTask with the provided input.
|
|
197
|
+
* @param input The input parameters for named entity recognition (text and model)
|
|
198
|
+
* @returns Promise resolving to the extracted named entities with types, scores, and text
|
|
199
|
+
*/
|
|
200
|
+
export declare const TextNamedEntityRecognition: (input: TextNamedEntityRecognitionTaskInput, config?: JobQueueTaskConfig) => Promise<{
|
|
201
|
+
entities: {
|
|
202
|
+
score: number;
|
|
203
|
+
entity: string;
|
|
204
|
+
word: string;
|
|
205
|
+
}[];
|
|
206
|
+
}>;
|
|
207
|
+
declare module "@workglow/task-graph" {
|
|
208
|
+
interface Workflow {
|
|
209
|
+
TextNamedEntityRecognition: CreateWorkflow<TextNamedEntityRecognitionTaskInput, TextNamedEntityRecognitionTaskOutput, JobQueueTaskConfig>;
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
//# sourceMappingURL=TextNamedEntityRecognitionTask.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TextNamedEntityRecognitionTask.d.ts","sourceRoot":"","sources":["../../src/task/TextNamedEntityRecognitionTask.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAA0B,MAAM,sBAAsB,CAAC;AAClG,OAAO,EAAE,cAA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
|
|
|
6
6
|
import { CreateWorkflow, JobQueueTaskConfig } from "@workglow/task-graph";
|
|
7
7
|
import { DataPortSchema, FromSchema } from "@workglow/util";
|
|
8
8
|
import { AiTask } from "./base/AiTask";
|
|
9
|
+
import { DeReplicateFromSchema } from "./base/AiTaskSchemas";
|
|
9
10
|
export declare const TextQuestionAnswerInputSchema: {
|
|
10
11
|
readonly type: "object";
|
|
11
12
|
readonly properties: {
|
|
@@ -174,6 +175,8 @@ export declare const TextQuestionAnswerOutputSchema: {
|
|
|
174
175
|
};
|
|
175
176
|
export type TextQuestionAnswerTaskInput = FromSchema<typeof TextQuestionAnswerInputSchema>;
|
|
176
177
|
export type TextQuestionAnswerTaskOutput = FromSchema<typeof TextQuestionAnswerOutputSchema>;
|
|
178
|
+
export type TextQuestionAnswerTaskExecuteInput = DeReplicateFromSchema<typeof TextQuestionAnswerInputSchema>;
|
|
179
|
+
export type TextQuestionAnswerTaskExecuteOutput = DeReplicateFromSchema<typeof TextQuestionAnswerOutputSchema>;
|
|
177
180
|
/**
|
|
178
181
|
* This is a special case of text generation that takes a context and a question
|
|
179
182
|
*/
|
|
@@ -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;
|
|
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,UAA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|
6
6
|
import { CreateWorkflow, JobQueueTaskConfig } from "@workglow/task-graph";
|
|
7
7
|
import { DataPortSchema, FromSchema } from "@workglow/util";
|
|
8
8
|
import { AiTask } from "./base/AiTask";
|
|
9
|
+
import { DeReplicateFromSchema } from "./base/AiTaskSchemas";
|
|
9
10
|
export declare const TextRewriterInputSchema: {
|
|
10
11
|
readonly type: "object";
|
|
11
12
|
readonly properties: {
|
|
@@ -163,6 +164,8 @@ export declare const TextRewriterOutputSchema: {
|
|
|
163
164
|
};
|
|
164
165
|
export type TextRewriterTaskInput = FromSchema<typeof TextRewriterInputSchema>;
|
|
165
166
|
export type TextRewriterTaskOutput = FromSchema<typeof TextRewriterOutputSchema>;
|
|
167
|
+
export type TextRewriterTaskExecuteInput = DeReplicateFromSchema<typeof TextRewriterInputSchema>;
|
|
168
|
+
export type TextRewriterTaskExecuteOutput = DeReplicateFromSchema<typeof TextRewriterOutputSchema>;
|
|
166
169
|
/**
|
|
167
170
|
* This is a special case of text generation that takes a prompt and text to rewrite
|
|
168
171
|
*/
|
|
@@ -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;
|
|
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,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8
|
import { AiTask } from "./base/AiTask";
|
|
9
|
+
import { DeReplicateFromSchema } from "./base/AiTaskSchemas";
|
|
9
10
|
export declare const TextSummaryInputSchema: {
|
|
10
11
|
readonly type: "object";
|
|
11
12
|
readonly properties: {
|
|
@@ -145,6 +146,8 @@ export declare const TextSummaryOutputSchema: {
|
|
|
145
146
|
};
|
|
146
147
|
export type TextSummaryTaskInput = FromSchema<typeof TextSummaryInputSchema>;
|
|
147
148
|
export type TextSummaryTaskOutput = FromSchema<typeof TextSummaryOutputSchema>;
|
|
149
|
+
export type TextSummaryTaskExecuteInput = DeReplicateFromSchema<typeof TextSummaryInputSchema>;
|
|
150
|
+
export type TextSummaryTaskExecuteOutput = DeReplicateFromSchema<typeof TextSummaryOutputSchema>;
|
|
148
151
|
/**
|
|
149
152
|
* This summarizes a piece of text
|
|
150
153
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextSummaryTask.d.ts","sourceRoot":"","sources":["../../src/task/TextSummaryTask.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;
|
|
1
|
+
{"version":3,"file":"TextSummaryTask.d.ts","sourceRoot":"","sources":["../../src/task/TextSummaryTask.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,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;AAC/E,MAAM,MAAM,2BAA2B,GAAG,qBAAqB,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAC/F,MAAM,MAAM,4BAA4B,GAAG,qBAAqB,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAEjG;;GAEG;AAEH,qBAAa,eAAgB,SAAQ,MAAM,CAAC,oBAAoB,EAAE,qBAAqB,CAAC;IACtF,OAAc,IAAI,SAAqB;IACvC,OAAc,QAAQ,SAAmB;IACzC,OAAc,KAAK,SAAkB;IACrC,OAAc,WAAW,SACgD;WAC3D,WAAW,IAAI,cAAc;WAG7B,YAAY,IAAI,cAAc;CAG7C;AAID;;;;;GAKG;AACH,eAAO,MAAM,WAAW,GAAU,OAAO,oBAAoB,EAAE,SAAS,kBAAkB;;EAEzF,CAAC;AAEF,OAAO,QAAQ,sBAAsB,CAAC;IACpC,UAAU,QAAQ;QAChB,WAAW,EAAE,cAAc,CAAC,oBAAoB,EAAE,qBAAqB,EAAE,kBAAkB,CAAC,CAAC;KAC9F;CACF"}
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
import { CreateWorkflow, JobQueueTaskConfig } from "@workglow/task-graph";
|
|
7
7
|
import { DataPortSchema, FromSchema } from "@workglow/util";
|
|
8
8
|
import { AiTask } from "./base/AiTask";
|
|
9
|
+
import { DeReplicateFromSchema } from "./base/AiTaskSchemas";
|
|
9
10
|
export declare const TextTranslationInputSchema: {
|
|
10
11
|
readonly type: "object";
|
|
11
12
|
readonly properties: {
|
|
@@ -207,6 +208,8 @@ export declare const TextTranslationOutputSchema: {
|
|
|
207
208
|
};
|
|
208
209
|
export type TextTranslationTaskInput = FromSchema<typeof TextTranslationInputSchema>;
|
|
209
210
|
export type TextTranslationTaskOutput = FromSchema<typeof TextTranslationOutputSchema>;
|
|
211
|
+
export type TextTranslationTaskExecuteInput = DeReplicateFromSchema<typeof TextTranslationInputSchema>;
|
|
212
|
+
export type TextTranslationTaskExecuteOutput = DeReplicateFromSchema<typeof TextTranslationOutputSchema>;
|
|
210
213
|
/**
|
|
211
214
|
* This translates text from one language to another
|
|
212
215
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextTranslationTask.d.ts","sourceRoot":"","sources":["../../src/task/TextTranslationTask.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;
|
|
1
|
+
{"version":3,"file":"TextTranslationTask.d.ts","sourceRoot":"","sources":["../../src/task/TextTranslationTask.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,EACL,qBAAqB,EAItB,MAAM,sBAAsB,CAAC;AAU9B,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4BJ,CAAC;AAEpC,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiBL,CAAC;AAEpC,MAAM,MAAM,wBAAwB,GAAG,UAAU,CAAC,OAAO,0BAA0B,CAAC,CAAC;AACrF,MAAM,MAAM,yBAAyB,GAAG,UAAU,CAAC,OAAO,2BAA2B,CAAC,CAAC;AACvF,MAAM,MAAM,+BAA+B,GAAG,qBAAqB,CACjE,OAAO,0BAA0B,CAClC,CAAC;AACF,MAAM,MAAM,gCAAgC,GAAG,qBAAqB,CAClE,OAAO,2BAA2B,CACnC,CAAC;AAEF;;GAEG;AACH,qBAAa,mBAAoB,SAAQ,MAAM,CAC7C,wBAAwB,EACxB,yBAAyB,CAC1B;IACC,OAAc,IAAI,SAAyB;IAC3C,OAAc,QAAQ,SAAmB;IACzC,OAAc,KAAK,SAAsB;IACzC,OAAc,WAAW,SAAwE;WACnF,WAAW,IAAI,cAAc;WAG7B,YAAY,IAAI,cAAc;CAG7C;AAID;;;;;GAKG;AACH,eAAO,MAAM,eAAe,GAAI,OAAO,wBAAwB,EAAE,SAAS,kBAAkB;;;EAE3F,CAAC;AAEF,OAAO,QAAQ,sBAAsB,CAAC;IACpC,UAAU,QAAQ;QAChB,eAAe,EAAE,cAAc,CAC7B,wBAAwB,EACxB,yBAAyB,EACzB,kBAAkB,CACnB,CAAC;KACH;CACF"}
|
|
@@ -13,7 +13,7 @@ declare const TypedArraySchemaOptions: {
|
|
|
13
13
|
readonly output: TypedArray;
|
|
14
14
|
}];
|
|
15
15
|
readonly parseNotKeyword: true;
|
|
16
|
-
readonly parseIfThenElseKeywords:
|
|
16
|
+
readonly parseIfThenElseKeywords: true;
|
|
17
17
|
readonly keepDefaultedPropertiesOptional: true;
|
|
18
18
|
readonly references: false;
|
|
19
19
|
};
|
package/dist/task/index.d.ts
CHANGED
|
@@ -9,8 +9,10 @@ export * from "./DocumentSplitterTask";
|
|
|
9
9
|
export * from "./DownloadModelTask";
|
|
10
10
|
export * from "./TextClassifierTask";
|
|
11
11
|
export * from "./TextEmbeddingTask";
|
|
12
|
+
export * from "./TextFillMaskTask";
|
|
12
13
|
export * from "./TextGenerationTask";
|
|
13
14
|
export * from "./TextLanguageDetectionTask";
|
|
15
|
+
export * from "./TextNamedEntityRecognitionTask";
|
|
14
16
|
export * from "./TextQuestionAnswerTask";
|
|
15
17
|
export * from "./TextRewriterTask";
|
|
16
18
|
export * from "./TextSummaryTask";
|
package/dist/task/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/task/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,eAAe,CAAC;AAC9B,cAAc,sBAAsB,CAAC;AACrC,cAAc,wBAAwB,CAAC;AACvC,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,0BAA0B,CAAC;AACzC,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC;AAClC,cAAc,wBAAwB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/task/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,eAAe,CAAC;AAC9B,cAAc,sBAAsB,CAAC;AACrC,cAAc,wBAAwB,CAAC;AACvC,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,kCAAkC,CAAC;AACjD,cAAc,0BAA0B,CAAC;AACzC,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC;AAClC,cAAc,wBAAwB,CAAC"}
|