@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,98 +3,189 @@
|
|
|
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, TypedArraySchemaOptions } from "@workglow/util/schema";
|
|
8
8
|
import { AiVisionTask } from "./base/AiVisionTask";
|
|
9
9
|
export declare const ImageEmbeddingInputSchema: {
|
|
10
10
|
readonly type: "object";
|
|
11
11
|
readonly properties: {
|
|
12
12
|
readonly image: {
|
|
13
|
-
readonly
|
|
14
|
-
readonly
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
readonly
|
|
23
|
-
readonly
|
|
24
|
-
readonly
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
readonly
|
|
39
|
-
readonly
|
|
40
|
-
|
|
13
|
+
readonly anyOf: readonly [{
|
|
14
|
+
readonly oneOf: readonly [{
|
|
15
|
+
readonly type: "string";
|
|
16
|
+
readonly title: "Image Data";
|
|
17
|
+
readonly description: "Image as data-uri";
|
|
18
|
+
readonly format: "image:data-uri";
|
|
19
|
+
}, {
|
|
20
|
+
readonly type: "object";
|
|
21
|
+
readonly additionalProperties: false;
|
|
22
|
+
readonly properties: {
|
|
23
|
+
readonly data: {
|
|
24
|
+
readonly oneOf: readonly [{
|
|
25
|
+
readonly type: "object";
|
|
26
|
+
readonly format: "image:ImageBitmap";
|
|
27
|
+
readonly title: "ImageBitmap";
|
|
28
|
+
}, {
|
|
29
|
+
readonly type: "object";
|
|
30
|
+
readonly format: "image:OffscreenCanvas";
|
|
31
|
+
readonly title: "OffscreenCanvas";
|
|
32
|
+
}, {
|
|
33
|
+
readonly type: "object";
|
|
34
|
+
readonly format: "image:VideoFrame";
|
|
35
|
+
readonly title: "VideoFrame";
|
|
36
|
+
}, {
|
|
37
|
+
readonly type: "object";
|
|
38
|
+
readonly properties: {
|
|
39
|
+
readonly data: {
|
|
40
|
+
readonly type: "array";
|
|
41
|
+
readonly items: {
|
|
42
|
+
readonly type: "number";
|
|
43
|
+
readonly format: "Uint8Clamped";
|
|
44
|
+
};
|
|
45
|
+
readonly format: "Uint8ClampedArray";
|
|
46
|
+
readonly title: "Data";
|
|
47
|
+
readonly description: "Data of the image";
|
|
48
|
+
};
|
|
49
|
+
readonly width: {
|
|
41
50
|
readonly type: "number";
|
|
42
|
-
readonly
|
|
51
|
+
readonly title: "Width";
|
|
52
|
+
readonly description: "Width of the image";
|
|
53
|
+
};
|
|
54
|
+
readonly height: {
|
|
55
|
+
readonly type: "number";
|
|
56
|
+
readonly title: "Height";
|
|
57
|
+
readonly description: "Height of the image";
|
|
58
|
+
};
|
|
59
|
+
readonly channels: {
|
|
60
|
+
readonly type: "number";
|
|
61
|
+
readonly title: "Channels";
|
|
62
|
+
readonly description: "Channels of the image";
|
|
63
|
+
};
|
|
64
|
+
readonly rawChannels: {
|
|
65
|
+
readonly type: "number";
|
|
66
|
+
readonly title: "Raw Channels";
|
|
67
|
+
readonly description: "Raw channels of the image";
|
|
43
68
|
};
|
|
44
|
-
readonly format: "Uint8ClampedArray";
|
|
45
|
-
readonly title: "Data";
|
|
46
|
-
readonly description: "Data of the image";
|
|
47
|
-
};
|
|
48
|
-
readonly width: {
|
|
49
|
-
readonly type: "number";
|
|
50
|
-
readonly title: "Width";
|
|
51
|
-
readonly description: "Width of the image";
|
|
52
|
-
};
|
|
53
|
-
readonly height: {
|
|
54
|
-
readonly type: "number";
|
|
55
|
-
readonly title: "Height";
|
|
56
|
-
readonly description: "Height of the image";
|
|
57
|
-
};
|
|
58
|
-
readonly channels: {
|
|
59
|
-
readonly type: "number";
|
|
60
|
-
readonly title: "Channels";
|
|
61
|
-
readonly description: "Channels of the image";
|
|
62
|
-
};
|
|
63
|
-
readonly rawChannels: {
|
|
64
|
-
readonly type: "number";
|
|
65
|
-
readonly title: "Raw Channels";
|
|
66
|
-
readonly description: "Raw channels of the image";
|
|
67
69
|
};
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
70
|
+
readonly additionalProperties: false;
|
|
71
|
+
readonly required: readonly ["data", "width", "height", "channels"];
|
|
72
|
+
readonly format: "image:ImageBinary";
|
|
73
|
+
readonly title: "ImageBinary";
|
|
74
|
+
}];
|
|
75
|
+
};
|
|
76
|
+
readonly width: {
|
|
77
|
+
readonly type: "number";
|
|
78
|
+
readonly title: "Width";
|
|
79
|
+
readonly description: "Width of the image";
|
|
80
|
+
};
|
|
81
|
+
readonly height: {
|
|
82
|
+
readonly type: "number";
|
|
83
|
+
readonly title: "Height";
|
|
84
|
+
readonly description: "Height of the image";
|
|
85
|
+
};
|
|
86
|
+
readonly channels: {
|
|
87
|
+
readonly type: "number";
|
|
88
|
+
readonly title: "Channels";
|
|
89
|
+
readonly description: "Channels of the image";
|
|
90
|
+
readonly minimum: 1;
|
|
91
|
+
readonly maximum: 4;
|
|
92
|
+
};
|
|
91
93
|
};
|
|
94
|
+
readonly required: readonly ["data", "width", "height", "channels"];
|
|
95
|
+
}];
|
|
96
|
+
readonly title: "Image";
|
|
97
|
+
readonly format: "image";
|
|
98
|
+
readonly description: "Image as URL or base64-encoded data";
|
|
99
|
+
}, {
|
|
100
|
+
readonly type: "array";
|
|
101
|
+
readonly items: {
|
|
102
|
+
readonly oneOf: readonly [{
|
|
103
|
+
readonly type: "string";
|
|
104
|
+
readonly title: "Image Data";
|
|
105
|
+
readonly description: "Image as data-uri";
|
|
106
|
+
readonly format: "image:data-uri";
|
|
107
|
+
}, {
|
|
108
|
+
readonly type: "object";
|
|
109
|
+
readonly additionalProperties: false;
|
|
110
|
+
readonly properties: {
|
|
111
|
+
readonly data: {
|
|
112
|
+
readonly oneOf: readonly [{
|
|
113
|
+
readonly type: "object";
|
|
114
|
+
readonly format: "image:ImageBitmap";
|
|
115
|
+
readonly title: "ImageBitmap";
|
|
116
|
+
}, {
|
|
117
|
+
readonly type: "object";
|
|
118
|
+
readonly format: "image:OffscreenCanvas";
|
|
119
|
+
readonly title: "OffscreenCanvas";
|
|
120
|
+
}, {
|
|
121
|
+
readonly type: "object";
|
|
122
|
+
readonly format: "image:VideoFrame";
|
|
123
|
+
readonly title: "VideoFrame";
|
|
124
|
+
}, {
|
|
125
|
+
readonly type: "object";
|
|
126
|
+
readonly properties: {
|
|
127
|
+
readonly data: {
|
|
128
|
+
readonly type: "array";
|
|
129
|
+
readonly items: {
|
|
130
|
+
readonly type: "number";
|
|
131
|
+
readonly format: "Uint8Clamped";
|
|
132
|
+
};
|
|
133
|
+
readonly format: "Uint8ClampedArray";
|
|
134
|
+
readonly title: "Data";
|
|
135
|
+
readonly description: "Data of the image";
|
|
136
|
+
};
|
|
137
|
+
readonly width: {
|
|
138
|
+
readonly type: "number";
|
|
139
|
+
readonly title: "Width";
|
|
140
|
+
readonly description: "Width of the image";
|
|
141
|
+
};
|
|
142
|
+
readonly height: {
|
|
143
|
+
readonly type: "number";
|
|
144
|
+
readonly title: "Height";
|
|
145
|
+
readonly description: "Height of the image";
|
|
146
|
+
};
|
|
147
|
+
readonly channels: {
|
|
148
|
+
readonly type: "number";
|
|
149
|
+
readonly title: "Channels";
|
|
150
|
+
readonly description: "Channels of the image";
|
|
151
|
+
};
|
|
152
|
+
readonly rawChannels: {
|
|
153
|
+
readonly type: "number";
|
|
154
|
+
readonly title: "Raw Channels";
|
|
155
|
+
readonly description: "Raw channels of the image";
|
|
156
|
+
};
|
|
157
|
+
};
|
|
158
|
+
readonly additionalProperties: false;
|
|
159
|
+
readonly required: readonly ["data", "width", "height", "channels"];
|
|
160
|
+
readonly format: "image:ImageBinary";
|
|
161
|
+
readonly title: "ImageBinary";
|
|
162
|
+
}];
|
|
163
|
+
};
|
|
164
|
+
readonly width: {
|
|
165
|
+
readonly type: "number";
|
|
166
|
+
readonly title: "Width";
|
|
167
|
+
readonly description: "Width of the image";
|
|
168
|
+
};
|
|
169
|
+
readonly height: {
|
|
170
|
+
readonly type: "number";
|
|
171
|
+
readonly title: "Height";
|
|
172
|
+
readonly description: "Height of the image";
|
|
173
|
+
};
|
|
174
|
+
readonly channels: {
|
|
175
|
+
readonly type: "number";
|
|
176
|
+
readonly title: "Channels";
|
|
177
|
+
readonly description: "Channels of the image";
|
|
178
|
+
readonly minimum: 1;
|
|
179
|
+
readonly maximum: 4;
|
|
180
|
+
};
|
|
181
|
+
};
|
|
182
|
+
readonly required: readonly ["data", "width", "height", "channels"];
|
|
183
|
+
}];
|
|
184
|
+
readonly title: "Image";
|
|
185
|
+
readonly format: "image";
|
|
186
|
+
readonly description: "Image as URL or base64-encoded data";
|
|
92
187
|
};
|
|
93
|
-
readonly required: readonly ["data", "width", "height", "channels"];
|
|
94
188
|
}];
|
|
95
|
-
readonly title: "Image";
|
|
96
|
-
readonly format: "image";
|
|
97
|
-
readonly description: "Image as URL or base64-encoded data";
|
|
98
189
|
};
|
|
99
190
|
readonly model: {
|
|
100
191
|
readonly oneOf: readonly [{
|
|
@@ -161,10 +252,20 @@ export declare const ImageEmbeddingOutputSchema: {
|
|
|
161
252
|
readonly type: "object";
|
|
162
253
|
readonly properties: {
|
|
163
254
|
readonly vector: {
|
|
164
|
-
readonly
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
255
|
+
readonly anyOf: readonly [{
|
|
256
|
+
readonly type: "array";
|
|
257
|
+
readonly format: "TypedArray";
|
|
258
|
+
readonly title: "Typed Array";
|
|
259
|
+
readonly description: "A typed array (Float32Array, Int8Array, etc.)";
|
|
260
|
+
}, {
|
|
261
|
+
readonly type: "array";
|
|
262
|
+
readonly items: {
|
|
263
|
+
readonly type: "array";
|
|
264
|
+
readonly format: "TypedArray";
|
|
265
|
+
readonly title: "Typed Array";
|
|
266
|
+
readonly description: "A typed array (Float32Array, Int8Array, etc.)";
|
|
267
|
+
};
|
|
268
|
+
}];
|
|
168
269
|
};
|
|
169
270
|
};
|
|
170
271
|
readonly required: readonly ["vector"];
|
|
@@ -175,7 +276,7 @@ export type ImageEmbeddingTaskOutput = FromSchema<typeof ImageEmbeddingOutputSch
|
|
|
175
276
|
/**
|
|
176
277
|
* Generates embeddings from images using vision models
|
|
177
278
|
*/
|
|
178
|
-
export declare class ImageEmbeddingTask extends AiVisionTask<ImageEmbeddingTaskInput, ImageEmbeddingTaskOutput,
|
|
279
|
+
export declare class ImageEmbeddingTask extends AiVisionTask<ImageEmbeddingTaskInput, ImageEmbeddingTaskOutput, TaskConfig> {
|
|
179
280
|
static type: string;
|
|
180
281
|
static category: string;
|
|
181
282
|
static title: string;
|
|
@@ -190,7 +291,20 @@ export declare class ImageEmbeddingTask extends AiVisionTask<ImageEmbeddingTaskI
|
|
|
190
291
|
* @returns Promise resolving to the image embedding vector
|
|
191
292
|
*/
|
|
192
293
|
export declare const imageEmbedding: (input: {
|
|
193
|
-
image: string | {
|
|
294
|
+
image: string | (string | {
|
|
295
|
+
channels: number;
|
|
296
|
+
data: {
|
|
297
|
+
[x: string]: unknown;
|
|
298
|
+
} | {
|
|
299
|
+
channels: number;
|
|
300
|
+
data: number[];
|
|
301
|
+
height: number;
|
|
302
|
+
rawChannels?: number | undefined;
|
|
303
|
+
width: number;
|
|
304
|
+
};
|
|
305
|
+
height: number;
|
|
306
|
+
width: number;
|
|
307
|
+
})[] | {
|
|
194
308
|
channels: number;
|
|
195
309
|
data: {
|
|
196
310
|
[x: string]: unknown;
|
|
@@ -219,12 +333,12 @@ export declare const imageEmbedding: (input: {
|
|
|
219
333
|
tasks?: string[] | undefined;
|
|
220
334
|
title?: string | undefined;
|
|
221
335
|
};
|
|
222
|
-
}, config?:
|
|
223
|
-
vector: import("@workglow/util/schema").TypedArray;
|
|
336
|
+
}, config?: TaskConfig | undefined) => Promise<{
|
|
337
|
+
vector: import("@workglow/util/schema").TypedArray[] | import("@workglow/util/schema").TypedArray;
|
|
224
338
|
}>;
|
|
225
339
|
declare module "@workglow/task-graph" {
|
|
226
340
|
interface Workflow {
|
|
227
|
-
imageEmbedding: CreateWorkflow<ImageEmbeddingTaskInput, ImageEmbeddingTaskOutput,
|
|
341
|
+
imageEmbedding: CreateWorkflow<ImageEmbeddingTaskInput, ImageEmbeddingTaskOutput, TaskConfig>;
|
|
228
342
|
}
|
|
229
343
|
}
|
|
230
344
|
//# sourceMappingURL=ImageEmbeddingTask.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImageEmbeddingTask.d.ts","sourceRoot":"","sources":["../../src/task/ImageEmbeddingTask.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,cAAc,EAAE,
|
|
1
|
+
{"version":3,"file":"ImageEmbeddingTask.d.ts","sourceRoot":"","sources":["../../src/task/ImageEmbeddingTask.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,cAAc,EAAE,UAAU,EAAY,MAAM,sBAAsB,CAAC;AAC5E,OAAO,EACL,cAAc,EACd,UAAU,EAEV,uBAAuB,EACxB,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAInD,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAQH,CAAC;AAEpC,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;CAYJ,CAAC;AAEpC,MAAM,MAAM,uBAAuB,GAAG,UAAU,CAC9C,OAAO,yBAAyB,EAChC,uBAAuB,CACxB,CAAC;AACF,MAAM,MAAM,wBAAwB,GAAG,UAAU,CAC/C,OAAO,0BAA0B,EACjC,uBAAuB,CACxB,CAAC;AAEF;;GAEG;AACH,qBAAa,kBAAmB,SAAQ,YAAY,CAClD,uBAAuB,EACvB,wBAAwB,EACxB,UAAU,CACX;IACC,OAAc,IAAI,SAAwB;IAC1C,OAAc,QAAQ,SAAqB;IAC3C,OAAc,KAAK,SAAqB;IACxC,OAAc,WAAW,SAA0D;IACnF,OAAc,WAAW,IAAI,cAAc,CAE1C;IACD,OAAc,YAAY,IAAI,cAAc,CAE3C;CACF;AAED;;;;;GAKG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAE1B,CAAC;AAEF,OAAO,QAAQ,sBAAsB,CAAC,CAAC;IACrC,UAAU,QAAQ;QAChB,cAAc,EAAE,cAAc,CAAC,uBAAuB,EAAE,wBAAwB,EAAE,UAAU,CAAC,CAAC;KAC/F;CACF"}
|
|
@@ -3,7 +3,7 @@
|
|
|
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 { AiVisionTask } from "./base/AiVisionTask";
|
|
9
9
|
export declare const ImageSegmentationInputSchema: {
|
|
@@ -249,7 +249,7 @@ export type ImageSegmentationTaskOutput = FromSchema<typeof ImageSegmentationOut
|
|
|
249
249
|
/**
|
|
250
250
|
* Segments images into regions using computer vision models
|
|
251
251
|
*/
|
|
252
|
-
export declare class ImageSegmentationTask extends AiVisionTask<ImageSegmentationTaskInput, ImageSegmentationTaskOutput,
|
|
252
|
+
export declare class ImageSegmentationTask extends AiVisionTask<ImageSegmentationTaskInput, ImageSegmentationTaskOutput, TaskConfig> {
|
|
253
253
|
static type: string;
|
|
254
254
|
static category: string;
|
|
255
255
|
static title: string;
|
|
@@ -295,7 +295,7 @@ export declare const imageSegmentation: (input: {
|
|
|
295
295
|
title?: string | undefined;
|
|
296
296
|
};
|
|
297
297
|
threshold?: number | undefined;
|
|
298
|
-
}, config?:
|
|
298
|
+
}, config?: TaskConfig | undefined) => Promise<{
|
|
299
299
|
masks: {
|
|
300
300
|
label: string;
|
|
301
301
|
mask: {
|
|
@@ -312,7 +312,7 @@ export declare const imageSegmentation: (input: {
|
|
|
312
312
|
}>;
|
|
313
313
|
declare module "@workglow/task-graph" {
|
|
314
314
|
interface Workflow {
|
|
315
|
-
imageSegmentation: CreateWorkflow<ImageSegmentationTaskInput, ImageSegmentationTaskOutput,
|
|
315
|
+
imageSegmentation: CreateWorkflow<ImageSegmentationTaskInput, ImageSegmentationTaskOutput, TaskConfig>;
|
|
316
316
|
}
|
|
317
317
|
}
|
|
318
318
|
//# sourceMappingURL=ImageSegmentationTask.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImageSegmentationTask.d.ts","sourceRoot":"","sources":["../../src/task/ImageSegmentationTask.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,cAAc,EAAE,
|
|
1
|
+
{"version":3,"file":"ImageSegmentationTask.d.ts","sourceRoot":"","sources":["../../src/task/ImageSegmentationTask.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,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAInD,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0BN,CAAC;AA4BpC,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAcP,CAAC;AAEpC,MAAM,MAAM,0BAA0B,GAAG,UAAU,CAAC,OAAO,4BAA4B,CAAC,CAAC;AACzF,MAAM,MAAM,2BAA2B,GAAG,UAAU,CAAC,OAAO,6BAA6B,CAAC,CAAC;AAE3F;;GAEG;AACH,qBAAa,qBAAsB,SAAQ,YAAY,CACrD,0BAA0B,EAC1B,2BAA2B,EAC3B,UAAU,CACX;IACC,OAAc,IAAI,SAA2B;IAC7C,OAAc,QAAQ,SAAqB;IAC3C,OAAc,KAAK,SAAwB;IAC3C,OAAc,WAAW,SACiD;IAC1E,OAAc,WAAW,IAAI,cAAc,CAE1C;IACD,OAAc,YAAY,IAAI,cAAc,CAE3C;CACF;AAED;;;;;GAKG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAE7B,CAAC;AAEF,OAAO,QAAQ,sBAAsB,CAAC,CAAC;IACrC,UAAU,QAAQ;QAChB,iBAAiB,EAAE,cAAc,CAC/B,0BAA0B,EAC1B,2BAA2B,EAC3B,UAAU,CACX,CAAC;KACH;CACF"}
|
|
@@ -3,7 +3,7 @@
|
|
|
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 { AiVisionTask } from "./base/AiVisionTask";
|
|
9
9
|
export declare const ImageToTextInputSchema: {
|
|
@@ -193,7 +193,7 @@ export type ImageToTextTaskOutput = FromSchema<typeof ImageToTextOutputSchema>;
|
|
|
193
193
|
/**
|
|
194
194
|
* Generates text descriptions from images using vision-language models
|
|
195
195
|
*/
|
|
196
|
-
export declare class ImageToTextTask extends AiVisionTask<ImageToTextTaskInput, ImageToTextTaskOutput,
|
|
196
|
+
export declare class ImageToTextTask extends AiVisionTask<ImageToTextTaskInput, ImageToTextTaskOutput, TaskConfig> {
|
|
197
197
|
static type: string;
|
|
198
198
|
static category: string;
|
|
199
199
|
static title: string;
|
|
@@ -238,12 +238,12 @@ export declare const imageToText: (input: {
|
|
|
238
238
|
tasks?: string[] | undefined;
|
|
239
239
|
title?: string | undefined;
|
|
240
240
|
};
|
|
241
|
-
}, config?:
|
|
241
|
+
}, config?: TaskConfig | undefined) => Promise<{
|
|
242
242
|
text: string | string[];
|
|
243
243
|
}>;
|
|
244
244
|
declare module "@workglow/task-graph" {
|
|
245
245
|
interface Workflow {
|
|
246
|
-
imageToText: CreateWorkflow<ImageToTextTaskInput, ImageToTextTaskOutput,
|
|
246
|
+
imageToText: CreateWorkflow<ImageToTextTaskInput, ImageToTextTaskOutput, TaskConfig>;
|
|
247
247
|
}
|
|
248
248
|
}
|
|
249
249
|
//# sourceMappingURL=ImageToTextTask.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImageToTextTask.d.ts","sourceRoot":"","sources":["../../src/task/ImageToTextTask.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,cAAc,EAAE,
|
|
1
|
+
{"version":3,"file":"ImageToTextTask.d.ts","sourceRoot":"","sources":["../../src/task/ImageToTextTask.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,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAUnD,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgBA,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;;GAEG;AACH,qBAAa,eAAgB,SAAQ,YAAY,CAC/C,oBAAoB,EACpB,qBAAqB,EACrB,UAAU,CACX;IACC,OAAc,IAAI,SAAqB;IACvC,OAAc,QAAQ,SAAqB;IAC3C,OAAc,KAAK,SAAmB;IACtC,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,9 +3,9 @@
|
|
|
3
3
|
* Copyright 2025 Steven Roussey <sroussey@gmail.com>
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
*/
|
|
6
|
-
import { CreateWorkflow, type IExecuteContext
|
|
6
|
+
import { CreateWorkflow, type IExecuteContext } from "@workglow/task-graph";
|
|
7
7
|
import { DataPortSchema, FromSchema } from "@workglow/util/schema";
|
|
8
|
-
import { AiTask } from "./base/AiTask";
|
|
8
|
+
import { AiTask, type AiTaskConfig } from "./base/AiTask";
|
|
9
9
|
declare const ModelInfoInputSchema: {
|
|
10
10
|
readonly type: "object";
|
|
11
11
|
readonly properties: {
|
|
@@ -170,7 +170,7 @@ export type ModelInfoTaskOutput = FromSchema<typeof ModelInfoOutputSchema>;
|
|
|
170
170
|
/**
|
|
171
171
|
* Retrieve runtime metadata about a model: locality, browser support, cache status, and file sizes.
|
|
172
172
|
*/
|
|
173
|
-
export declare class ModelInfoTask extends AiTask<ModelInfoTaskInput, ModelInfoTaskOutput,
|
|
173
|
+
export declare class ModelInfoTask extends AiTask<ModelInfoTaskInput, ModelInfoTaskOutput, AiTaskConfig> {
|
|
174
174
|
static type: string;
|
|
175
175
|
static category: string;
|
|
176
176
|
static cacheable: boolean;
|
|
@@ -203,7 +203,7 @@ export declare const modelInfo: (input: {
|
|
|
203
203
|
tasks?: string[] | undefined;
|
|
204
204
|
title?: string | undefined;
|
|
205
205
|
};
|
|
206
|
-
}, config?:
|
|
206
|
+
}, config?: import("@workglow/task-graph").TaskConfig | undefined) => Promise<{
|
|
207
207
|
file_sizes: unknown;
|
|
208
208
|
is_cached: boolean;
|
|
209
209
|
is_loaded: boolean;
|
|
@@ -230,7 +230,7 @@ export declare const modelInfo: (input: {
|
|
|
230
230
|
}>;
|
|
231
231
|
declare module "@workglow/task-graph" {
|
|
232
232
|
interface Workflow {
|
|
233
|
-
modelInfo: CreateWorkflow<ModelInfoTaskInput, ModelInfoTaskOutput,
|
|
233
|
+
modelInfo: CreateWorkflow<ModelInfoTaskInput, ModelInfoTaskOutput, AiTaskConfig>;
|
|
234
234
|
}
|
|
235
235
|
}
|
|
236
236
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ModelInfoTask.d.ts","sourceRoot":"","sources":["../../src/task/ModelInfoTask.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,
|
|
1
|
+
{"version":3,"file":"ModelInfoTask.d.ts","sourceRoot":"","sources":["../../src/task/ModelInfoTask.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,cAAc,EAAE,KAAK,eAAe,EAAY,MAAM,sBAAsB,CAAC;AACtF,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAGnE,OAAO,EAAE,MAAM,EAAE,KAAK,YAAY,EAAE,MAAM,eAAe,CAAC;AAK1D,QAAA,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAYS,CAAC;AAEpC,QAAA,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6BQ,CAAC;AAEpC,MAAM,MAAM,kBAAkB,GAAG,UAAU,CAAC,OAAO,oBAAoB,CAAC,CAAC;AACzE,MAAM,MAAM,mBAAmB,GAAG,UAAU,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAE3E;;GAEG;AACH,qBAAa,aAAc,SAAQ,MAAM,CAAC,kBAAkB,EAAE,mBAAmB,EAAE,YAAY,CAAC;IAC9F,OAAc,IAAI,SAAmB;IACrC,OAAc,QAAQ,SAAc;IACpC,OAAc,SAAS,UAAS;IAChC,OAAc,KAAK,SAAgB;IACnC,OAAc,WAAW,SACsE;IAC/F,OAAc,WAAW,IAAI,cAAc,CAE1C;IACD,OAAc,YAAY,IAAI,cAAc,CAE3C;IAEK,OAAO,CAAC,KAAK,EAAE,kBAAkB,EAAE,OAAO,EAAE,eAAe,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAS/F;CACF;AAED;;;;;GAKG;AACH,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAErB,CAAC;AAEF,OAAO,QAAQ,sBAAsB,CAAC,CAAC;IACrC,UAAU,QAAQ;QAChB,SAAS,EAAE,cAAc,CAAC,kBAAkB,EAAE,mBAAmB,EAAE,YAAY,CAAC,CAAC;KAClF;CACF"}
|
|
@@ -3,7 +3,7 @@
|
|
|
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 { AiVisionTask } from "./base/AiVisionTask";
|
|
9
9
|
export declare const ObjectDetectionInputSchema: {
|
|
@@ -296,7 +296,7 @@ export type ObjectDetectionTaskOutput = FromSchema<typeof ObjectDetectionOutputS
|
|
|
296
296
|
* Detects objects in images using vision models.
|
|
297
297
|
* Automatically selects between regular and zero-shot detection based on whether labels are provided.
|
|
298
298
|
*/
|
|
299
|
-
export declare class ObjectDetectionTask extends AiVisionTask<ObjectDetectionTaskInput, ObjectDetectionTaskOutput,
|
|
299
|
+
export declare class ObjectDetectionTask extends AiVisionTask<ObjectDetectionTaskInput, ObjectDetectionTaskOutput, TaskConfig> {
|
|
300
300
|
static type: string;
|
|
301
301
|
static category: string;
|
|
302
302
|
static title: string;
|
|
@@ -342,7 +342,7 @@ export declare const objectDetection: (input: {
|
|
|
342
342
|
title?: string | undefined;
|
|
343
343
|
};
|
|
344
344
|
threshold?: number | undefined;
|
|
345
|
-
}, config?:
|
|
345
|
+
}, config?: TaskConfig | undefined) => Promise<{
|
|
346
346
|
detections: {
|
|
347
347
|
box: {
|
|
348
348
|
height: number;
|
|
@@ -365,7 +365,7 @@ export declare const objectDetection: (input: {
|
|
|
365
365
|
}>;
|
|
366
366
|
declare module "@workglow/task-graph" {
|
|
367
367
|
interface Workflow {
|
|
368
|
-
objectDetection: CreateWorkflow<ObjectDetectionTaskInput, ObjectDetectionTaskOutput,
|
|
368
|
+
objectDetection: CreateWorkflow<ObjectDetectionTaskInput, ObjectDetectionTaskOutput, TaskConfig>;
|
|
369
369
|
}
|
|
370
370
|
}
|
|
371
371
|
//# sourceMappingURL=ObjectDetectionTask.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ObjectDetectionTask.d.ts","sourceRoot":"","sources":["../../src/task/ObjectDetectionTask.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,cAAc,EAAE,
|
|
1
|
+
{"version":3,"file":"ObjectDetectionTask.d.ts","sourceRoot":"","sources":["../../src/task/ObjectDetectionTask.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,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAyBnD,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2BJ,CAAC;AAEpC,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAcL,CAAC;AAEpC,MAAM,MAAM,wBAAwB,GAAG,UAAU,CAAC,OAAO,0BAA0B,CAAC,CAAC;AACrF,MAAM,MAAM,yBAAyB,GAAG,UAAU,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAEvF;;;GAGG;AACH,qBAAa,mBAAoB,SAAQ,YAAY,CACnD,wBAAwB,EACxB,yBAAyB,EACzB,UAAU,CACX;IACC,OAAc,IAAI,SAAyB;IAC3C,OAAc,QAAQ,SAAqB;IAC3C,OAAc,KAAK,SAAsB;IACzC,OAAc,WAAW,SACiF;IAC1G,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"}
|
|
@@ -3,7 +3,7 @@
|
|
|
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 { AiVisionTask } from "./base/AiVisionTask";
|
|
9
9
|
export declare const PoseLandmarkerInputSchema: {
|
|
@@ -431,7 +431,7 @@ export type PoseLandmarkerTaskOutput = FromSchema<typeof PoseLandmarkerOutputSch
|
|
|
431
431
|
* Detects pose landmarks in images using MediaPipe Pose Landmarker.
|
|
432
432
|
* Identifies 33 body landmarks for pose estimation and optional segmentation.
|
|
433
433
|
*/
|
|
434
|
-
export declare class PoseLandmarkerTask extends AiVisionTask<PoseLandmarkerTaskInput, PoseLandmarkerTaskOutput,
|
|
434
|
+
export declare class PoseLandmarkerTask extends AiVisionTask<PoseLandmarkerTaskInput, PoseLandmarkerTaskOutput, TaskConfig> {
|
|
435
435
|
static type: string;
|
|
436
436
|
static category: string;
|
|
437
437
|
static title: string;
|
|
@@ -480,7 +480,7 @@ export declare const poseLandmarker: (input: {
|
|
|
480
480
|
};
|
|
481
481
|
numPoses?: number | undefined;
|
|
482
482
|
outputSegmentationMasks?: boolean | undefined;
|
|
483
|
-
}, config?:
|
|
483
|
+
}, config?: TaskConfig | undefined) => Promise<{
|
|
484
484
|
poses: {
|
|
485
485
|
landmarks: {
|
|
486
486
|
presence?: number | undefined;
|
|
@@ -529,7 +529,7 @@ export declare const poseLandmarker: (input: {
|
|
|
529
529
|
}>;
|
|
530
530
|
declare module "@workglow/task-graph" {
|
|
531
531
|
interface Workflow {
|
|
532
|
-
poseLandmarker: CreateWorkflow<PoseLandmarkerTaskInput, PoseLandmarkerTaskOutput,
|
|
532
|
+
poseLandmarker: CreateWorkflow<PoseLandmarkerTaskInput, PoseLandmarkerTaskOutput, TaskConfig>;
|
|
533
533
|
}
|
|
534
534
|
}
|
|
535
535
|
//# sourceMappingURL=PoseLandmarkerTask.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PoseLandmarkerTask.d.ts","sourceRoot":"","sources":["../../src/task/PoseLandmarkerTask.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,cAAc,EAAE,
|
|
1
|
+
{"version":3,"file":"PoseLandmarkerTask.d.ts","sourceRoot":"","sources":["../../src/task/PoseLandmarkerTask.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,YAAY,EAAE,MAAM,qBAAqB,CAAC;AA0FnD,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmDH,CAAC;AAEpC,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAcJ,CAAC;AAEpC,MAAM,MAAM,uBAAuB,GAAG,UAAU,CAAC,OAAO,yBAAyB,CAAC,CAAC;AACnF,MAAM,MAAM,wBAAwB,GAAG,UAAU,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAErF;;;GAGG;AACH,qBAAa,kBAAmB,SAAQ,YAAY,CAClD,uBAAuB,EACvB,wBAAwB,EACxB,UAAU,CACX;IACC,OAAc,IAAI,SAAwB;IAC1C,OAAc,QAAQ,SAAqB;IAC3C,OAAc,KAAK,SAAqB;IACxC,OAAc,WAAW,SACyF;IAClH,OAAc,WAAW,IAAI,cAAc,CAE1C;IACD,OAAc,YAAY,IAAI,cAAc,CAE3C;CACF;AAED;;;;;GAKG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAE1B,CAAC;AAEF,OAAO,QAAQ,sBAAsB,CAAC,CAAC;IACrC,UAAU,QAAQ;QAChB,cAAc,EAAE,cAAc,CAAC,uBAAuB,EAAE,wBAAwB,EAAE,UAAU,CAAC,CAAC;KAC/F;CACF"}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Copyright 2025 Steven Roussey <sroussey@gmail.com>
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
*/
|
|
6
|
-
import { CreateWorkflow, IExecuteContext,
|
|
6
|
+
import { CreateWorkflow, IExecuteContext, TaskConfig, Task } from "@workglow/task-graph";
|
|
7
7
|
import { DataPortSchema, FromSchema } from "@workglow/util/schema";
|
|
8
8
|
export declare const QueryExpansionMethod: {
|
|
9
9
|
readonly MULTI_QUERY: "multi-query";
|
|
@@ -83,7 +83,7 @@ export type QueryExpanderTaskOutput = FromSchema<typeof outputSchema>;
|
|
|
83
83
|
* Note: HyDE and paraphrase methods require an LLM model.
|
|
84
84
|
* For now, this implements simple rule-based expansion.
|
|
85
85
|
*/
|
|
86
|
-
export declare class QueryExpanderTask extends Task<QueryExpanderTaskInput, QueryExpanderTaskOutput,
|
|
86
|
+
export declare class QueryExpanderTask extends Task<QueryExpanderTaskInput, QueryExpanderTaskOutput, TaskConfig> {
|
|
87
87
|
static type: string;
|
|
88
88
|
static category: string;
|
|
89
89
|
static title: string;
|
|
@@ -119,7 +119,7 @@ export declare const queryExpander: (input: {
|
|
|
119
119
|
model?: string | undefined;
|
|
120
120
|
numVariations?: number | undefined;
|
|
121
121
|
query: string;
|
|
122
|
-
}, config?:
|
|
122
|
+
}, config?: TaskConfig | undefined) => Promise<{
|
|
123
123
|
count: number;
|
|
124
124
|
method: string;
|
|
125
125
|
originalQuery: string;
|
|
@@ -127,7 +127,7 @@ export declare const queryExpander: (input: {
|
|
|
127
127
|
}>;
|
|
128
128
|
declare module "@workglow/task-graph" {
|
|
129
129
|
interface Workflow {
|
|
130
|
-
queryExpander: CreateWorkflow<QueryExpanderTaskInput, QueryExpanderTaskOutput,
|
|
130
|
+
queryExpander: CreateWorkflow<QueryExpanderTaskInput, QueryExpanderTaskOutput, TaskConfig>;
|
|
131
131
|
}
|
|
132
132
|
}
|
|
133
133
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QueryExpanderTask.d.ts","sourceRoot":"","sources":["../../src/task/QueryExpanderTask.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,
|
|
1
|
+
{"version":3,"file":"QueryExpanderTask.d.ts","sourceRoot":"","sources":["../../src/task/QueryExpanderTask.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,UAAU,EAAE,IAAI,EAAY,MAAM,sBAAsB,CAAC;AACnG,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAEnE,eAAO,MAAM,oBAAoB;;;;;CAKvB,CAAC;AAEX,MAAM,MAAM,oBAAoB,GAAG,CAAC,OAAO,oBAAoB,CAAC,CAAC,MAAM,OAAO,oBAAoB,CAAC,CAAC;AAEpG,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+BkB,CAAC;AAEpC,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2BiB,CAAC;AAEpC,MAAM,MAAM,sBAAsB,GAAG,UAAU,CAAC,OAAO,WAAW,CAAC,CAAC;AACpE,MAAM,MAAM,uBAAuB,GAAG,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC;AAEtE;;;;;;GAMG;AACH,qBAAa,iBAAkB,SAAQ,IAAI,CACzC,sBAAsB,EACtB,uBAAuB,EACvB,UAAU,CACX;IACC,OAAc,IAAI,SAAuB;IACzC,OAAc,QAAQ,SAAS;IAC/B,OAAc,KAAK,SAAoB;IACvC,OAAc,WAAW,SAAkD;IAC3E,OAAc,SAAS,UAAQ;IAE/B,OAAc,WAAW,IAAI,cAAc,CAE1C;IAED,OAAc,YAAY,IAAI,cAAc,CAE3C;IAEK,OAAO,CACX,KAAK,EAAE,sBAAsB,EAC7B,OAAO,EAAE,eAAe,GACvB,OAAO,CAAC,uBAAuB,CAAC,CAgClC;IAED;;OAEG;IACH,OAAO,CAAC,mBAAmB;IAyC3B;;OAEG;IACH,OAAO,CAAC,aAAa;IAkBrB;;OAEG;IACH,OAAO,CAAC,gBAAgB;IA6CxB;;;OAGG;IACH,OAAO,CAAC,mBAAmB;IAoB3B;;OAEG;IACH,OAAO,CAAC,sBAAsB;CAM/B;AAED,eAAO,MAAM,aAAa;;;;;;;;;;EAEzB,CAAC;AAEF,OAAO,QAAQ,sBAAsB,CAAC,CAAC;IACrC,UAAU,QAAQ;QAChB,aAAa,EAAE,cAAc,CAAC,sBAAsB,EAAE,uBAAuB,EAAE,UAAU,CAAC,CAAC;KAC5F;CACF"}
|