@workglow/ai 0.0.126 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +214 -47
- package/dist/browser.js +562 -1274
- package/dist/browser.js.map +55 -60
- package/dist/bun.js +562 -1274
- package/dist/bun.js.map +55 -60
- package/dist/common.d.ts +3 -1
- package/dist/common.d.ts.map +1 -1
- package/dist/execution/DirectExecutionStrategy.d.ts +20 -0
- package/dist/execution/DirectExecutionStrategy.d.ts.map +1 -0
- package/dist/execution/IAiExecutionStrategy.d.ts +33 -0
- package/dist/execution/IAiExecutionStrategy.d.ts.map +1 -0
- package/dist/execution/QueuedExecutionStrategy.d.ts +50 -0
- package/dist/execution/QueuedExecutionStrategy.d.ts.map +1 -0
- package/dist/job/AiJob.d.ts +6 -0
- package/dist/job/AiJob.d.ts.map +1 -1
- package/dist/node.js +562 -1274
- package/dist/node.js.map +55 -60
- package/dist/provider/AiProvider.d.ts +16 -2
- package/dist/provider/AiProvider.d.ts.map +1 -1
- package/dist/provider/AiProviderRegistry.d.ts +20 -0
- package/dist/provider/AiProviderRegistry.d.ts.map +1 -1
- package/dist/provider/QueuedAiProvider.d.ts +23 -2
- package/dist/provider/QueuedAiProvider.d.ts.map +1 -1
- package/dist/task/BackgroundRemovalTask.d.ts +3 -3
- package/dist/task/BackgroundRemovalTask.d.ts.map +1 -1
- package/dist/task/ChunkRetrievalTask.d.ts +4 -4
- package/dist/task/ChunkRetrievalTask.d.ts.map +1 -1
- package/dist/task/ChunkToVectorTask.d.ts +4 -4
- package/dist/task/ChunkToVectorTask.d.ts.map +1 -1
- package/dist/task/ChunkVectorHybridSearchTask.d.ts +4 -4
- package/dist/task/ChunkVectorHybridSearchTask.d.ts.map +1 -1
- package/dist/task/ChunkVectorSearchTask.d.ts +4 -4
- package/dist/task/ChunkVectorSearchTask.d.ts.map +1 -1
- package/dist/task/ChunkVectorUpsertTask.d.ts +4 -4
- package/dist/task/ChunkVectorUpsertTask.d.ts.map +1 -1
- package/dist/task/ContextBuilderTask.d.ts +4 -4
- package/dist/task/ContextBuilderTask.d.ts.map +1 -1
- package/dist/task/CountTokensTask.d.ts +11 -29
- package/dist/task/CountTokensTask.d.ts.map +1 -1
- package/dist/task/DocumentEnricherTask.d.ts +4 -4
- package/dist/task/DocumentEnricherTask.d.ts.map +1 -1
- package/dist/task/DownloadModelTask.d.ts +5 -5
- package/dist/task/DownloadModelTask.d.ts.map +1 -1
- package/dist/task/FaceDetectorTask.d.ts +4 -4
- package/dist/task/FaceDetectorTask.d.ts.map +1 -1
- package/dist/task/FaceLandmarkerTask.d.ts +4 -4
- package/dist/task/FaceLandmarkerTask.d.ts.map +1 -1
- package/dist/task/GestureRecognizerTask.d.ts +4 -4
- package/dist/task/GestureRecognizerTask.d.ts.map +1 -1
- package/dist/task/HandLandmarkerTask.d.ts +4 -4
- package/dist/task/HandLandmarkerTask.d.ts.map +1 -1
- package/dist/task/HierarchicalChunkerTask.d.ts +4 -4
- package/dist/task/HierarchicalChunkerTask.d.ts.map +1 -1
- package/dist/task/HierarchyJoinTask.d.ts +4 -4
- package/dist/task/HierarchyJoinTask.d.ts.map +1 -1
- package/dist/task/ImageClassificationTask.d.ts +4 -4
- package/dist/task/ImageClassificationTask.d.ts.map +1 -1
- package/dist/task/ImageEmbeddingTask.d.ts +203 -89
- package/dist/task/ImageEmbeddingTask.d.ts.map +1 -1
- package/dist/task/ImageSegmentationTask.d.ts +4 -4
- package/dist/task/ImageSegmentationTask.d.ts.map +1 -1
- package/dist/task/ImageToTextTask.d.ts +4 -4
- package/dist/task/ImageToTextTask.d.ts.map +1 -1
- package/dist/task/ModelInfoTask.d.ts +5 -5
- package/dist/task/ModelInfoTask.d.ts.map +1 -1
- package/dist/task/ObjectDetectionTask.d.ts +4 -4
- package/dist/task/ObjectDetectionTask.d.ts.map +1 -1
- package/dist/task/PoseLandmarkerTask.d.ts +4 -4
- package/dist/task/PoseLandmarkerTask.d.ts.map +1 -1
- package/dist/task/QueryExpanderTask.d.ts +4 -4
- package/dist/task/QueryExpanderTask.d.ts.map +1 -1
- package/dist/task/RerankerTask.d.ts +4 -4
- package/dist/task/RerankerTask.d.ts.map +1 -1
- package/dist/task/StructuralParserTask.d.ts +4 -4
- package/dist/task/StructuralParserTask.d.ts.map +1 -1
- package/dist/task/StructuredGenerationTask.d.ts +4 -4
- package/dist/task/StructuredGenerationTask.d.ts.map +1 -1
- package/dist/task/TextChunkerTask.d.ts +4 -4
- package/dist/task/TextChunkerTask.d.ts.map +1 -1
- package/dist/task/TextClassificationTask.d.ts +24 -62
- package/dist/task/TextClassificationTask.d.ts.map +1 -1
- package/dist/task/TextEmbeddingTask.d.ts +3 -3
- package/dist/task/TextEmbeddingTask.d.ts.map +1 -1
- package/dist/task/TextFillMaskTask.d.ts +29 -73
- package/dist/task/TextFillMaskTask.d.ts.map +1 -1
- package/dist/task/TextGenerationTask.d.ts +13 -32
- package/dist/task/TextGenerationTask.d.ts.map +1 -1
- package/dist/task/TextLanguageDetectionTask.d.ts +24 -62
- package/dist/task/TextLanguageDetectionTask.d.ts.map +1 -1
- package/dist/task/TextNamedEntityRecognitionTask.d.ts +29 -73
- package/dist/task/TextNamedEntityRecognitionTask.d.ts.map +1 -1
- package/dist/task/TextQuestionAnswerTask.d.ts +17 -45
- package/dist/task/TextQuestionAnswerTask.d.ts.map +1 -1
- package/dist/task/TextRewriterTask.d.ts +12 -31
- package/dist/task/TextRewriterTask.d.ts.map +1 -1
- package/dist/task/TextSummaryTask.d.ts +12 -31
- package/dist/task/TextSummaryTask.d.ts.map +1 -1
- package/dist/task/TextTranslationTask.d.ts +12 -31
- package/dist/task/TextTranslationTask.d.ts.map +1 -1
- package/dist/task/TopicSegmenterTask.d.ts +4 -4
- package/dist/task/TopicSegmenterTask.d.ts.map +1 -1
- package/dist/task/UnloadModelTask.d.ts +4 -4
- package/dist/task/UnloadModelTask.d.ts.map +1 -1
- package/dist/task/VectorQuantizeTask.d.ts +4 -4
- package/dist/task/VectorQuantizeTask.d.ts.map +1 -1
- package/dist/task/VectorSimilarityTask.d.ts +4 -4
- package/dist/task/VectorSimilarityTask.d.ts.map +1 -1
- package/dist/task/base/AiTask.d.ts +12 -31
- package/dist/task/base/AiTask.d.ts.map +1 -1
- package/dist/task/base/AiVisionTask.d.ts +7 -12
- package/dist/task/base/AiVisionTask.d.ts.map +1 -1
- package/dist/task/base/StreamingAiTask.d.ts +7 -4
- package/dist/task/base/StreamingAiTask.d.ts.map +1 -1
- package/dist/task/index.d.ts +1 -13
- package/dist/task/index.d.ts.map +1 -1
- package/dist/worker.d.ts +0 -2
- package/dist/worker.d.ts.map +1 -1
- package/dist/worker.js +217 -233
- package/dist/worker.js.map +7 -7
- package/package.json +11 -11
- package/dist/queue/createDefaultQueue.d.ts +0 -17
- package/dist/queue/createDefaultQueue.d.ts.map +0 -1
- package/dist/task/AgentTask.d.ts +0 -524
- package/dist/task/AgentTask.d.ts.map +0 -1
- package/dist/task/AgentTypes.d.ts +0 -181
- package/dist/task/AgentTypes.d.ts.map +0 -1
- package/dist/task/AgentUtils.d.ts +0 -50
- package/dist/task/AgentUtils.d.ts.map +0 -1
- package/dist/task/MessageConversion.d.ts +0 -52
- package/dist/task/MessageConversion.d.ts.map +0 -1
- package/dist/task/ToolCallingTask.d.ts +0 -385
- package/dist/task/ToolCallingTask.d.ts.map +0 -1
- package/dist/task/ToolCallingUtils.d.ts +0 -65
- package/dist/task/ToolCallingUtils.d.ts.map +0 -1
|
@@ -3,25 +3,16 @@
|
|
|
3
3
|
* Copyright 2025 Steven Roussey <sroussey@gmail.com>
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
*/
|
|
6
|
-
import { CreateWorkflow,
|
|
6
|
+
import { CreateWorkflow, TaskConfig } from "@workglow/task-graph";
|
|
7
7
|
import { DataPortSchema, FromSchema } from "@workglow/util/schema";
|
|
8
8
|
import { AiTask } from "./base/AiTask";
|
|
9
9
|
export declare const TextLanguageDetectionInputSchema: {
|
|
10
10
|
readonly type: "object";
|
|
11
11
|
readonly properties: {
|
|
12
12
|
readonly text: {
|
|
13
|
-
readonly
|
|
14
|
-
|
|
15
|
-
|
|
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
|
-
}];
|
|
13
|
+
readonly type: "string";
|
|
14
|
+
readonly title: "Text";
|
|
15
|
+
readonly description: "The text to detect the language of";
|
|
25
16
|
};
|
|
26
17
|
readonly maxLanguages: {
|
|
27
18
|
readonly type: "number";
|
|
@@ -96,52 +87,26 @@ export declare const TextLanguageDetectionOutputSchema: {
|
|
|
96
87
|
readonly type: "object";
|
|
97
88
|
readonly properties: {
|
|
98
89
|
readonly languages: {
|
|
99
|
-
readonly
|
|
100
|
-
|
|
101
|
-
readonly
|
|
102
|
-
|
|
103
|
-
readonly
|
|
104
|
-
readonly
|
|
105
|
-
|
|
106
|
-
|
|
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
|
-
};
|
|
90
|
+
readonly type: "array";
|
|
91
|
+
readonly items: {
|
|
92
|
+
readonly type: "object";
|
|
93
|
+
readonly properties: {
|
|
94
|
+
readonly language: {
|
|
95
|
+
readonly type: "string";
|
|
96
|
+
readonly title: "Language";
|
|
97
|
+
readonly description: "The language";
|
|
114
98
|
};
|
|
115
|
-
readonly
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
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;
|
|
99
|
+
readonly score: {
|
|
100
|
+
readonly type: "number";
|
|
101
|
+
readonly title: "Score";
|
|
102
|
+
readonly description: "The confidence score for this language";
|
|
140
103
|
};
|
|
141
|
-
readonly title: "Languages";
|
|
142
|
-
readonly description: "The languages with their scores";
|
|
143
104
|
};
|
|
144
|
-
|
|
105
|
+
readonly required: readonly ["language", "score"];
|
|
106
|
+
readonly additionalProperties: false;
|
|
107
|
+
};
|
|
108
|
+
readonly title: "Languages";
|
|
109
|
+
readonly description: "The languages with their scores";
|
|
145
110
|
};
|
|
146
111
|
};
|
|
147
112
|
readonly required: readonly ["languages"];
|
|
@@ -183,19 +148,16 @@ export declare const textLanguageDetection: (input: {
|
|
|
183
148
|
tasks?: string[] | undefined;
|
|
184
149
|
title?: string | undefined;
|
|
185
150
|
};
|
|
186
|
-
text: string
|
|
187
|
-
}, config?:
|
|
151
|
+
text: string;
|
|
152
|
+
}, config?: TaskConfig | undefined) => Promise<{
|
|
188
153
|
languages: {
|
|
189
154
|
language: string;
|
|
190
155
|
score: number;
|
|
191
|
-
}[][] | {
|
|
192
|
-
language: string;
|
|
193
|
-
score: number;
|
|
194
156
|
}[];
|
|
195
157
|
}>;
|
|
196
158
|
declare module "@workglow/task-graph" {
|
|
197
159
|
interface Workflow {
|
|
198
|
-
textLanguageDetection: CreateWorkflow<TextLanguageDetectionTaskInput, TextLanguageDetectionTaskOutput,
|
|
160
|
+
textLanguageDetection: CreateWorkflow<TextLanguageDetectionTaskInput, TextLanguageDetectionTaskOutput, TaskConfig>;
|
|
199
161
|
}
|
|
200
162
|
}
|
|
201
163
|
//# sourceMappingURL=TextLanguageDetectionTask.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextLanguageDetectionTask.d.ts","sourceRoot":"","sources":["../../src/task/TextLanguageDetectionTask.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,cAAc,EAAE,
|
|
1
|
+
{"version":3,"file":"TextLanguageDetectionTask.d.ts","sourceRoot":"","sources":["../../src/task/TextLanguageDetectionTask.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,cAAc,EAAE,UAAU,EAAY,MAAM,sBAAsB,CAAC;AAC5E,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACnE,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;IACjF,OAAc,WAAW,IAAI,cAAc,CAE1C;IACD,OAAc,YAAY,IAAI,cAAc,CAE3C;CACF;AAED;;;;;GAKG;AACH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;EAKjC,CAAC;AAEF,OAAO,QAAQ,sBAAsB,CAAC,CAAC;IACrC,UAAU,QAAQ;QAChB,qBAAqB,EAAE,cAAc,CACnC,8BAA8B,EAC9B,+BAA+B,EAC/B,UAAU,CACX,CAAC;KACH;CACF"}
|
|
@@ -3,25 +3,16 @@
|
|
|
3
3
|
* Copyright 2025 Steven Roussey <sroussey@gmail.com>
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
*/
|
|
6
|
-
import { CreateWorkflow,
|
|
6
|
+
import { CreateWorkflow, TaskConfig } from "@workglow/task-graph";
|
|
7
7
|
import { DataPortSchema, FromSchema } from "@workglow/util/schema";
|
|
8
8
|
import { AiTask } from "./base/AiTask";
|
|
9
9
|
export declare const TextNamedEntityRecognitionInputSchema: {
|
|
10
10
|
readonly type: "object";
|
|
11
11
|
readonly properties: {
|
|
12
12
|
readonly text: {
|
|
13
|
-
readonly
|
|
14
|
-
|
|
15
|
-
|
|
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
|
-
}];
|
|
13
|
+
readonly type: "string";
|
|
14
|
+
readonly title: "Text";
|
|
15
|
+
readonly description: "The text to extract named entities from";
|
|
25
16
|
};
|
|
26
17
|
readonly blockList: {
|
|
27
18
|
readonly type: "array";
|
|
@@ -98,62 +89,31 @@ export declare const TextNamedEntityRecognitionOutputSchema: {
|
|
|
98
89
|
readonly type: "object";
|
|
99
90
|
readonly properties: {
|
|
100
91
|
readonly entities: {
|
|
101
|
-
readonly
|
|
102
|
-
|
|
103
|
-
readonly
|
|
104
|
-
|
|
105
|
-
readonly
|
|
106
|
-
readonly
|
|
107
|
-
|
|
108
|
-
|
|
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
|
-
};
|
|
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 type of the named entity";
|
|
121
100
|
};
|
|
122
|
-
readonly
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
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;
|
|
101
|
+
readonly score: {
|
|
102
|
+
readonly type: "number";
|
|
103
|
+
readonly title: "Score";
|
|
104
|
+
readonly description: "The confidence score for this entity";
|
|
105
|
+
};
|
|
106
|
+
readonly word: {
|
|
107
|
+
readonly type: "string";
|
|
108
|
+
readonly title: "Word";
|
|
109
|
+
readonly description: "The extracted text of the named entity";
|
|
152
110
|
};
|
|
153
|
-
readonly title: "Entities";
|
|
154
|
-
readonly description: "The extracted named entities with their types, scores, and text";
|
|
155
111
|
};
|
|
156
|
-
|
|
112
|
+
readonly required: readonly ["entity", "score", "word"];
|
|
113
|
+
readonly additionalProperties: false;
|
|
114
|
+
};
|
|
115
|
+
readonly title: "Entities";
|
|
116
|
+
readonly description: "The extracted named entities with their types, scores, and text";
|
|
157
117
|
};
|
|
158
118
|
};
|
|
159
119
|
readonly required: readonly ["entities"];
|
|
@@ -195,21 +155,17 @@ export declare const textNamedEntityRecognition: (input: {
|
|
|
195
155
|
tasks?: string[] | undefined;
|
|
196
156
|
title?: string | undefined;
|
|
197
157
|
};
|
|
198
|
-
text: string
|
|
199
|
-
}, config?:
|
|
158
|
+
text: string;
|
|
159
|
+
}, config?: TaskConfig | undefined) => Promise<{
|
|
200
160
|
entities: {
|
|
201
161
|
entity: string;
|
|
202
162
|
score: number;
|
|
203
163
|
word: string;
|
|
204
|
-
}[][] | {
|
|
205
|
-
entity: string;
|
|
206
|
-
score: number;
|
|
207
|
-
word: string;
|
|
208
164
|
}[];
|
|
209
165
|
}>;
|
|
210
166
|
declare module "@workglow/task-graph" {
|
|
211
167
|
interface Workflow {
|
|
212
|
-
textNamedEntityRecognition: CreateWorkflow<TextNamedEntityRecognitionTaskInput, TextNamedEntityRecognitionTaskOutput,
|
|
168
|
+
textNamedEntityRecognition: CreateWorkflow<TextNamedEntityRecognitionTaskInput, TextNamedEntityRecognitionTaskOutput, TaskConfig>;
|
|
213
169
|
}
|
|
214
170
|
}
|
|
215
171
|
//# sourceMappingURL=TextNamedEntityRecognitionTask.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextNamedEntityRecognitionTask.d.ts","sourceRoot":"","sources":["../../src/task/TextNamedEntityRecognitionTask.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,cAAc,EAAE,
|
|
1
|
+
{"version":3,"file":"TextNamedEntityRecognitionTask.d.ts","sourceRoot":"","sources":["../../src/task/TextNamedEntityRecognitionTask.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,cAAc,EAAE,UAAU,EAAY,MAAM,sBAAsB,CAAC;AAC5E,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACnE,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAKvC,eAAO,MAAM,qCAAqC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsBf,CAAC;AAEpC,eAAO,MAAM,sCAAsC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiChB,CAAC;AAEpC,MAAM,MAAM,mCAAmC,GAAG,UAAU,CAC1D,OAAO,qCAAqC,CAC7C,CAAC;AACF,MAAM,MAAM,oCAAoC,GAAG,UAAU,CAC3D,OAAO,sCAAsC,CAC9C,CAAC;AAEF;;GAEG;AACH,qBAAa,8BAA+B,SAAQ,MAAM,CACxD,mCAAmC,EACnC,oCAAoC,CACrC;IACC,OAAc,IAAI,SAAoC;IACtD,OAAc,QAAQ,SAAmB;IACzC,OAAc,KAAK,SAA8B;IACjD,OAAc,WAAW,SAAuC;IAChE,OAAc,WAAW,IAAI,cAAc,CAE1C;IACD,OAAc,YAAY,IAAI,cAAc,CAE3C;CACF;AAED;;;;;GAKG;AACH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;EAOtC,CAAC;AAEF,OAAO,QAAQ,sBAAsB,CAAC,CAAC;IACrC,UAAU,QAAQ;QAChB,0BAA0B,EAAE,cAAc,CACxC,mCAAmC,EACnC,oCAAoC,EACpC,UAAU,CACX,CAAC;KACH;CACF"}
|
|
@@ -3,39 +3,21 @@
|
|
|
3
3
|
* Copyright 2025 Steven Roussey <sroussey@gmail.com>
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
*/
|
|
6
|
-
import { CreateWorkflow,
|
|
6
|
+
import { CreateWorkflow, TaskConfig } from "@workglow/task-graph";
|
|
7
7
|
import { DataPortSchema, FromSchema } from "@workglow/util/schema";
|
|
8
8
|
import { StreamingAiTask } from "./base/StreamingAiTask";
|
|
9
9
|
export declare const TextQuestionAnswerInputSchema: {
|
|
10
10
|
readonly type: "object";
|
|
11
11
|
readonly properties: {
|
|
12
12
|
readonly context: {
|
|
13
|
-
readonly
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
readonly description: "The context of the question";
|
|
17
|
-
}, {
|
|
18
|
-
readonly type: "array";
|
|
19
|
-
readonly items: {
|
|
20
|
-
readonly type: "string";
|
|
21
|
-
readonly title: "Context";
|
|
22
|
-
readonly description: "The context of the question";
|
|
23
|
-
};
|
|
24
|
-
}];
|
|
13
|
+
readonly type: "string";
|
|
14
|
+
readonly title: "Context";
|
|
15
|
+
readonly description: "The context of the question";
|
|
25
16
|
};
|
|
26
17
|
readonly question: {
|
|
27
|
-
readonly
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
readonly description: "The question to answer";
|
|
31
|
-
}, {
|
|
32
|
-
readonly type: "array";
|
|
33
|
-
readonly items: {
|
|
34
|
-
readonly type: "string";
|
|
35
|
-
readonly title: "Question";
|
|
36
|
-
readonly description: "The question to answer";
|
|
37
|
-
};
|
|
38
|
-
}];
|
|
18
|
+
readonly type: "string";
|
|
19
|
+
readonly title: "Question";
|
|
20
|
+
readonly description: "The question to answer";
|
|
39
21
|
};
|
|
40
22
|
readonly model: {
|
|
41
23
|
readonly oneOf: readonly [{
|
|
@@ -102,20 +84,10 @@ export declare const TextQuestionAnswerOutputSchema: {
|
|
|
102
84
|
readonly type: "object";
|
|
103
85
|
readonly properties: {
|
|
104
86
|
readonly text: {
|
|
105
|
-
readonly
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
readonly "x-stream": "append";
|
|
110
|
-
}, {
|
|
111
|
-
readonly type: "array";
|
|
112
|
-
readonly items: {
|
|
113
|
-
readonly type: "string";
|
|
114
|
-
readonly title: "Text";
|
|
115
|
-
readonly description: "The generated text";
|
|
116
|
-
readonly "x-stream": "append";
|
|
117
|
-
};
|
|
118
|
-
}];
|
|
87
|
+
readonly type: "string";
|
|
88
|
+
readonly title: "Text";
|
|
89
|
+
readonly description: "The generated text";
|
|
90
|
+
readonly "x-stream": "append";
|
|
119
91
|
};
|
|
120
92
|
};
|
|
121
93
|
readonly required: readonly ["text"];
|
|
@@ -126,7 +98,7 @@ export type TextQuestionAnswerTaskOutput = FromSchema<typeof TextQuestionAnswerO
|
|
|
126
98
|
/**
|
|
127
99
|
* This is a special case of text generation that takes a context and a question
|
|
128
100
|
*/
|
|
129
|
-
export declare class TextQuestionAnswerTask extends StreamingAiTask<TextQuestionAnswerTaskInput, TextQuestionAnswerTaskOutput,
|
|
101
|
+
export declare class TextQuestionAnswerTask extends StreamingAiTask<TextQuestionAnswerTaskInput, TextQuestionAnswerTaskOutput, TaskConfig> {
|
|
130
102
|
static type: string;
|
|
131
103
|
static category: string;
|
|
132
104
|
static title: string;
|
|
@@ -141,7 +113,7 @@ export declare class TextQuestionAnswerTask extends StreamingAiTask<TextQuestion
|
|
|
141
113
|
* @returns Promise resolving to the generated answer(s)
|
|
142
114
|
*/
|
|
143
115
|
export declare const textQuestionAnswer: (input: {
|
|
144
|
-
context: string
|
|
116
|
+
context: string;
|
|
145
117
|
model: string | {
|
|
146
118
|
[x: string]: unknown;
|
|
147
119
|
description?: string | undefined;
|
|
@@ -157,13 +129,13 @@ export declare const textQuestionAnswer: (input: {
|
|
|
157
129
|
tasks?: string[] | undefined;
|
|
158
130
|
title?: string | undefined;
|
|
159
131
|
};
|
|
160
|
-
question: string
|
|
161
|
-
}, config?:
|
|
162
|
-
text: string
|
|
132
|
+
question: string;
|
|
133
|
+
}, config?: TaskConfig | undefined) => Promise<{
|
|
134
|
+
text: string;
|
|
163
135
|
}>;
|
|
164
136
|
declare module "@workglow/task-graph" {
|
|
165
137
|
interface Workflow {
|
|
166
|
-
textQuestionAnswer: CreateWorkflow<TextQuestionAnswerTaskInput, TextQuestionAnswerTaskOutput,
|
|
138
|
+
textQuestionAnswer: CreateWorkflow<TextQuestionAnswerTaskInput, TextQuestionAnswerTaskOutput, TaskConfig>;
|
|
167
139
|
}
|
|
168
140
|
}
|
|
169
141
|
//# sourceMappingURL=TextQuestionAnswerTask.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextQuestionAnswerTask.d.ts","sourceRoot":"","sources":["../../src/task/TextQuestionAnswerTask.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,cAAc,EAAE,
|
|
1
|
+
{"version":3,"file":"TextQuestionAnswerTask.d.ts","sourceRoot":"","sources":["../../src/task/TextQuestionAnswerTask.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,cAAc,EAAE,UAAU,EAAY,MAAM,sBAAsB,CAAC;AAC5E,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAEnE,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAuBzD,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CASP,CAAC;AAEpC,eAAO,MAAM,8BAA8B;;;;;;;;;;;;CAOR,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,eAAe,CACzD,2BAA2B,EAC3B,4BAA4B,EAC5B,UAAU,CACX;IACC,OAAc,IAAI,SAA4B;IAC9C,OAAc,QAAQ,SAAmB;IACzC,OAAc,KAAK,SAA0B;IAC7C,OAAc,WAAW,SAAuE;IAChG,OAAc,WAAW,IAAI,cAAc,CAE1C;IACD,OAAc,YAAY,IAAI,cAAc,CAE3C;CACF;AAED;;;;;GAKG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;EAE9B,CAAC;AAEF,OAAO,QAAQ,sBAAsB,CAAC,CAAC;IACrC,UAAU,QAAQ;QAChB,kBAAkB,EAAE,cAAc,CAChC,2BAA2B,EAC3B,4BAA4B,EAC5B,UAAU,CACX,CAAC;KACH;CACF"}
|
|
@@ -3,25 +3,16 @@
|
|
|
3
3
|
* Copyright 2025 Steven Roussey <sroussey@gmail.com>
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
*/
|
|
6
|
-
import { CreateWorkflow,
|
|
6
|
+
import { CreateWorkflow, TaskConfig } from "@workglow/task-graph";
|
|
7
7
|
import { DataPortSchema, FromSchema } from "@workglow/util/schema";
|
|
8
8
|
import { StreamingAiTask } from "./base/StreamingAiTask";
|
|
9
9
|
export declare const TextRewriterInputSchema: {
|
|
10
10
|
readonly type: "object";
|
|
11
11
|
readonly properties: {
|
|
12
12
|
readonly text: {
|
|
13
|
-
readonly
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
readonly description: "The text to rewrite";
|
|
17
|
-
}, {
|
|
18
|
-
readonly type: "array";
|
|
19
|
-
readonly items: {
|
|
20
|
-
readonly type: "string";
|
|
21
|
-
readonly title: "Text";
|
|
22
|
-
readonly description: "The text to rewrite";
|
|
23
|
-
};
|
|
24
|
-
}];
|
|
13
|
+
readonly type: "string";
|
|
14
|
+
readonly title: "Text";
|
|
15
|
+
readonly description: "The text to rewrite";
|
|
25
16
|
};
|
|
26
17
|
readonly prompt: {
|
|
27
18
|
readonly type: "string";
|
|
@@ -93,20 +84,10 @@ export declare const TextRewriterOutputSchema: {
|
|
|
93
84
|
readonly type: "object";
|
|
94
85
|
readonly properties: {
|
|
95
86
|
readonly text: {
|
|
96
|
-
readonly
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
readonly "x-stream": "append";
|
|
101
|
-
}, {
|
|
102
|
-
readonly type: "array";
|
|
103
|
-
readonly items: {
|
|
104
|
-
readonly type: "string";
|
|
105
|
-
readonly title: "Text";
|
|
106
|
-
readonly description: "The rewritten text";
|
|
107
|
-
readonly "x-stream": "append";
|
|
108
|
-
};
|
|
109
|
-
}];
|
|
87
|
+
readonly type: "string";
|
|
88
|
+
readonly title: "Text";
|
|
89
|
+
readonly description: "The rewritten text";
|
|
90
|
+
readonly "x-stream": "append";
|
|
110
91
|
};
|
|
111
92
|
};
|
|
112
93
|
readonly required: readonly ["text"];
|
|
@@ -148,13 +129,13 @@ export declare const textRewriter: (input: {
|
|
|
148
129
|
title?: string | undefined;
|
|
149
130
|
};
|
|
150
131
|
prompt: string;
|
|
151
|
-
text: string
|
|
152
|
-
}, config?:
|
|
153
|
-
text: string
|
|
132
|
+
text: string;
|
|
133
|
+
}, config?: TaskConfig | undefined) => Promise<{
|
|
134
|
+
text: string;
|
|
154
135
|
}>;
|
|
155
136
|
declare module "@workglow/task-graph" {
|
|
156
137
|
interface Workflow {
|
|
157
|
-
textRewriter: CreateWorkflow<TextRewriterTaskInput, TextRewriterTaskOutput,
|
|
138
|
+
textRewriter: CreateWorkflow<TextRewriterTaskInput, TextRewriterTaskOutput, TaskConfig>;
|
|
158
139
|
}
|
|
159
140
|
}
|
|
160
141
|
//# sourceMappingURL=TextRewriterTask.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextRewriterTask.d.ts","sourceRoot":"","sources":["../../src/task/TextRewriterTask.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,cAAc,EAAE,
|
|
1
|
+
{"version":3,"file":"TextRewriterTask.d.ts","sourceRoot":"","sources":["../../src/task/TextRewriterTask.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,cAAc,EAAE,UAAU,EAAY,MAAM,sBAAsB,CAAC;AAC5E,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAEnE,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAIzD,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiBD,CAAC;AAEpC,eAAO,MAAM,wBAAwB;;;;;;;;;;;;CAYF,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,eAAe,CACnD,qBAAqB,EACrB,sBAAsB,CACvB;IACC,OAAc,IAAI,SAAsB;IACxC,OAAc,QAAQ,SAAmB;IACzC,OAAc,KAAK,SAAmB;IACtC,OAAc,WAAW,SAAqE;IAC9F,OAAc,WAAW,IAAI,cAAc,CAE1C;IACD,OAAc,YAAY,IAAI,cAAc,CAE3C;CACF;AAED;;;;;GAKG;AACH,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;EAExB,CAAC;AAEF,OAAO,QAAQ,sBAAsB,CAAC,CAAC;IACrC,UAAU,QAAQ;QAChB,YAAY,EAAE,cAAc,CAAC,qBAAqB,EAAE,sBAAsB,EAAE,UAAU,CAAC,CAAC;KACzF;CACF"}
|
|
@@ -3,25 +3,16 @@
|
|
|
3
3
|
* Copyright 2025 Steven Roussey <sroussey@gmail.com>
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
*/
|
|
6
|
-
import { CreateWorkflow,
|
|
6
|
+
import { CreateWorkflow, TaskConfig } from "@workglow/task-graph";
|
|
7
7
|
import { DataPortSchema, FromSchema } from "@workglow/util/schema";
|
|
8
8
|
import { StreamingAiTask } from "./base/StreamingAiTask";
|
|
9
9
|
export declare const TextSummaryInputSchema: {
|
|
10
10
|
readonly type: "object";
|
|
11
11
|
readonly properties: {
|
|
12
12
|
readonly text: {
|
|
13
|
-
readonly
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
readonly description: "The text to summarize";
|
|
17
|
-
}, {
|
|
18
|
-
readonly type: "array";
|
|
19
|
-
readonly items: {
|
|
20
|
-
readonly type: "string";
|
|
21
|
-
readonly title: "Text";
|
|
22
|
-
readonly description: "The text to summarize";
|
|
23
|
-
};
|
|
24
|
-
}];
|
|
13
|
+
readonly type: "string";
|
|
14
|
+
readonly title: "Text";
|
|
15
|
+
readonly description: "The text to summarize";
|
|
25
16
|
};
|
|
26
17
|
readonly model: {
|
|
27
18
|
readonly oneOf: readonly [{
|
|
@@ -88,20 +79,10 @@ export declare const TextSummaryOutputSchema: {
|
|
|
88
79
|
readonly type: "object";
|
|
89
80
|
readonly properties: {
|
|
90
81
|
readonly text: {
|
|
91
|
-
readonly
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
readonly "x-stream": "append";
|
|
96
|
-
}, {
|
|
97
|
-
readonly type: "array";
|
|
98
|
-
readonly items: {
|
|
99
|
-
readonly type: "string";
|
|
100
|
-
readonly title: "Text";
|
|
101
|
-
readonly description: "The summarized text";
|
|
102
|
-
readonly "x-stream": "append";
|
|
103
|
-
};
|
|
104
|
-
}];
|
|
82
|
+
readonly type: "string";
|
|
83
|
+
readonly title: "Text";
|
|
84
|
+
readonly description: "The summarized text";
|
|
85
|
+
readonly "x-stream": "append";
|
|
105
86
|
};
|
|
106
87
|
};
|
|
107
88
|
readonly required: readonly ["text"];
|
|
@@ -142,13 +123,13 @@ export declare const textSummary: (input: {
|
|
|
142
123
|
tasks?: string[] | undefined;
|
|
143
124
|
title?: string | undefined;
|
|
144
125
|
};
|
|
145
|
-
text: string
|
|
146
|
-
}, config?:
|
|
147
|
-
text: string
|
|
126
|
+
text: string;
|
|
127
|
+
}, config?: TaskConfig | undefined) => Promise<{
|
|
128
|
+
text: string;
|
|
148
129
|
}>;
|
|
149
130
|
declare module "@workglow/task-graph" {
|
|
150
131
|
interface Workflow {
|
|
151
|
-
textSummary: CreateWorkflow<TextSummaryTaskInput, TextSummaryTaskOutput,
|
|
132
|
+
textSummary: CreateWorkflow<TextSummaryTaskInput, TextSummaryTaskOutput, TaskConfig>;
|
|
152
133
|
}
|
|
153
134
|
}
|
|
154
135
|
//# sourceMappingURL=TextSummaryTask.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextSummaryTask.d.ts","sourceRoot":"","sources":["../../src/task/TextSummaryTask.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,cAAc,EAAE,
|
|
1
|
+
{"version":3,"file":"TextSummaryTask.d.ts","sourceRoot":"","sources":["../../src/task/TextSummaryTask.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,cAAc,EAAE,UAAU,EAAY,MAAM,sBAAsB,CAAC;AAC5E,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAEnE,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAIzD,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAYA,CAAC;AAEpC,eAAO,MAAM,uBAAuB;;;;;;;;;;;;CAYD,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;;GAEG;AAEH,qBAAa,eAAgB,SAAQ,eAAe,CAAC,oBAAoB,EAAE,qBAAqB,CAAC;IAC/F,OAAc,IAAI,SAAqB;IACvC,OAAc,QAAQ,SAAmB;IACzC,OAAc,KAAK,SAAkB;IACrC,OAAc,WAAW,SACgD;IACzE,OAAc,WAAW,IAAI,cAAc,CAE1C;IACD,OAAc,YAAY,IAAI,cAAc,CAE3C;CACF;AAED;;;;;GAKG;AACH,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;EAEvB,CAAC;AAEF,OAAO,QAAQ,sBAAsB,CAAC,CAAC;IACrC,UAAU,QAAQ;QAChB,WAAW,EAAE,cAAc,CAAC,oBAAoB,EAAE,qBAAqB,EAAE,UAAU,CAAC,CAAC;KACtF;CACF"}
|
|
@@ -3,25 +3,16 @@
|
|
|
3
3
|
* Copyright 2025 Steven Roussey <sroussey@gmail.com>
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
*/
|
|
6
|
-
import { CreateWorkflow,
|
|
6
|
+
import { CreateWorkflow, TaskConfig } from "@workglow/task-graph";
|
|
7
7
|
import { DataPortSchema, FromSchema } from "@workglow/util/schema";
|
|
8
8
|
import { StreamingAiTask } from "./base/StreamingAiTask";
|
|
9
9
|
export declare const TextTranslationInputSchema: {
|
|
10
10
|
readonly type: "object";
|
|
11
11
|
readonly properties: {
|
|
12
12
|
readonly text: {
|
|
13
|
-
readonly
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
readonly description: "The text to translate";
|
|
17
|
-
}, {
|
|
18
|
-
readonly type: "array";
|
|
19
|
-
readonly items: {
|
|
20
|
-
readonly type: "string";
|
|
21
|
-
readonly title: "Text";
|
|
22
|
-
readonly description: "The text to translate";
|
|
23
|
-
};
|
|
24
|
-
}];
|
|
13
|
+
readonly type: "string";
|
|
14
|
+
readonly title: "Text";
|
|
15
|
+
readonly description: "The text to translate";
|
|
25
16
|
};
|
|
26
17
|
readonly source_lang: {
|
|
27
18
|
readonly type: "string";
|
|
@@ -102,20 +93,10 @@ export declare const TextTranslationOutputSchema: {
|
|
|
102
93
|
readonly type: "object";
|
|
103
94
|
readonly properties: {
|
|
104
95
|
readonly text: {
|
|
105
|
-
readonly
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
readonly "x-stream": "replace";
|
|
110
|
-
}, {
|
|
111
|
-
readonly type: "array";
|
|
112
|
-
readonly items: {
|
|
113
|
-
readonly type: "string";
|
|
114
|
-
readonly title: "Text";
|
|
115
|
-
readonly description: "The translated text";
|
|
116
|
-
readonly "x-stream": "replace";
|
|
117
|
-
};
|
|
118
|
-
}];
|
|
96
|
+
readonly type: "string";
|
|
97
|
+
readonly title: "Text";
|
|
98
|
+
readonly description: "The translated text";
|
|
99
|
+
readonly "x-stream": "replace";
|
|
119
100
|
};
|
|
120
101
|
readonly target_lang: {
|
|
121
102
|
readonly type: "string";
|
|
@@ -165,14 +146,14 @@ export declare const textTranslation: (input: {
|
|
|
165
146
|
};
|
|
166
147
|
source_lang: string;
|
|
167
148
|
target_lang: string;
|
|
168
|
-
text: string
|
|
169
|
-
}, config?:
|
|
149
|
+
text: string;
|
|
150
|
+
}, config?: TaskConfig | undefined) => Promise<{
|
|
170
151
|
target_lang: string;
|
|
171
|
-
text: string
|
|
152
|
+
text: string;
|
|
172
153
|
}>;
|
|
173
154
|
declare module "@workglow/task-graph" {
|
|
174
155
|
interface Workflow {
|
|
175
|
-
textTranslation: CreateWorkflow<TextTranslationTaskInput, TextTranslationTaskOutput,
|
|
156
|
+
textTranslation: CreateWorkflow<TextTranslationTaskInput, TextTranslationTaskOutput, TaskConfig>;
|
|
176
157
|
}
|
|
177
158
|
}
|
|
178
159
|
//# sourceMappingURL=TextTranslationTask.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextTranslationTask.d.ts","sourceRoot":"","sources":["../../src/task/TextTranslationTask.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,cAAc,EAAE,
|
|
1
|
+
{"version":3,"file":"TextTranslationTask.d.ts","sourceRoot":"","sources":["../../src/task/TextTranslationTask.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,cAAc,EAAE,UAAU,EAAY,MAAM,sBAAsB,CAAC;AAC5E,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAEnE,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAWzD,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwBJ,CAAC;AAEpC,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;CAaL,CAAC;AAEpC,MAAM,MAAM,wBAAwB,GAAG,UAAU,CAAC,OAAO,0BAA0B,CAAC,CAAC;AACrF,MAAM,MAAM,yBAAyB,GAAG,UAAU,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAEvF;;GAEG;AACH,qBAAa,mBAAoB,SAAQ,eAAe,CACtD,wBAAwB,EACxB,yBAAyB,CAC1B;IACC,OAAc,IAAI,SAAyB;IAC3C,OAAc,QAAQ,SAAmB;IACzC,OAAc,KAAK,SAAsB;IACzC,OAAc,WAAW,SAAwE;IACjG,OAAc,WAAW,IAAI,cAAc,CAE1C;IACD,OAAc,YAAY,IAAI,cAAc,CAE3C;CACF;AAED;;;;;GAKG;AACH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;EAE3B,CAAC;AAEF,OAAO,QAAQ,sBAAsB,CAAC,CAAC;IACrC,UAAU,QAAQ;QAChB,eAAe,EAAE,cAAc,CAC7B,wBAAwB,EACxB,yBAAyB,EACzB,UAAU,CACX,CAAC;KACH;CACF"}
|