@workglow/ai 0.0.79 → 0.0.80

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.
Files changed (49) hide show
  1. package/README.md +3 -3
  2. package/dist/browser.js +235 -183
  3. package/dist/browser.js.map +36 -36
  4. package/dist/bun.js +235 -183
  5. package/dist/bun.js.map +36 -36
  6. package/dist/job/AiJob.d.ts +2 -1
  7. package/dist/job/AiJob.d.ts.map +1 -1
  8. package/dist/model/ModelRepository.d.ts +3 -3
  9. package/dist/model/ModelRepository.d.ts.map +1 -1
  10. package/dist/model/ModelSchema.d.ts +47 -2
  11. package/dist/model/ModelSchema.d.ts.map +1 -1
  12. package/dist/node.js +235 -183
  13. package/dist/node.js.map +36 -36
  14. package/dist/provider/AiProviderRegistry.d.ts +9 -9
  15. package/dist/provider/AiProviderRegistry.d.ts.map +1 -1
  16. package/dist/task/BackgroundRemovalTask.d.ts +4 -4
  17. package/dist/task/DocumentSplitterTask.d.ts +2 -2
  18. package/dist/task/DocumentSplitterTask.d.ts.map +1 -1
  19. package/dist/task/DownloadModelTask.d.ts +20 -20
  20. package/dist/task/FaceDetectorTask.d.ts +4 -4
  21. package/dist/task/FaceLandmarkerTask.d.ts +4 -4
  22. package/dist/task/GestureRecognizerTask.d.ts +4 -4
  23. package/dist/task/HandLandmarkerTask.d.ts +4 -4
  24. package/dist/task/ImageClassificationTask.d.ts +4 -4
  25. package/dist/task/ImageEmbeddingTask.d.ts +4 -4
  26. package/dist/task/ImageSegmentationTask.d.ts +4 -4
  27. package/dist/task/ImageToTextTask.d.ts +4 -4
  28. package/dist/task/ObjectDetectionTask.d.ts +4 -4
  29. package/dist/task/PoseLandmarkerTask.d.ts +4 -4
  30. package/dist/task/TextClassificationTask.d.ts +4 -4
  31. package/dist/task/TextEmbeddingTask.d.ts +4 -4
  32. package/dist/task/TextFillMaskTask.d.ts +4 -4
  33. package/dist/task/TextGenerationTask.d.ts +4 -4
  34. package/dist/task/TextLanguageDetectionTask.d.ts +4 -4
  35. package/dist/task/TextNamedEntityRecognitionTask.d.ts +4 -4
  36. package/dist/task/TextQuestionAnswerTask.d.ts +4 -4
  37. package/dist/task/TextRewriterTask.d.ts +4 -4
  38. package/dist/task/TextSummaryTask.d.ts +4 -4
  39. package/dist/task/TextTranslationTask.d.ts +4 -4
  40. package/dist/task/UnloadModelTask.d.ts +20 -20
  41. package/dist/task/UnloadModelTask.d.ts.map +1 -1
  42. package/dist/task/VectorSimilarityTask.d.ts +2 -2
  43. package/dist/task/VectorSimilarityTask.d.ts.map +1 -1
  44. package/dist/task/base/AiTask.d.ts +11 -3
  45. package/dist/task/base/AiTask.d.ts.map +1 -1
  46. package/dist/task/base/AiTaskSchemas.d.ts +2 -2
  47. package/dist/task/base/AiVisionTask.d.ts +3 -3
  48. package/dist/task/base/AiVisionTask.d.ts.map +1 -1
  49. package/package.json +9 -9
@@ -4,11 +4,11 @@
4
4
  * SPDX-License-Identifier: Apache-2.0
5
5
  */
6
6
  import { TaskInput, TaskOutput } from "@workglow/task-graph";
7
- import { ModelRecord } from "../model/ModelSchema";
7
+ import type { ModelConfig } from "../model/ModelSchema";
8
8
  /**
9
9
  * Type for the run function for the AiJob
10
10
  */
11
- export type AiProviderRunFn<Input extends TaskInput = TaskInput, Output extends TaskOutput = TaskOutput, Model extends ModelRecord = ModelRecord> = (input: Input, model: Model | undefined, update_progress: (progress: number, message?: string, details?: any) => void, signal: AbortSignal) => Promise<Output>;
11
+ export type AiProviderRunFn<Input extends TaskInput = TaskInput, Output extends TaskOutput = TaskOutput, Model extends ModelConfig = ModelConfig> = (input: Input, model: Model | undefined, update_progress: (progress: number, message?: string, details?: any) => void, signal: AbortSignal) => Promise<Output>;
12
12
  /**
13
13
  * Registry that manages provider-specific task execution functions and job queues.
14
14
  * Handles the registration, retrieval, and execution of task processing functions
@@ -29,17 +29,17 @@ export declare class AiProviderRegistry {
29
29
  * Bypasses the job queue system for immediate execution
30
30
  */
31
31
  getDirectRunFn<Input extends TaskInput = TaskInput, Output extends TaskOutput = TaskOutput>(modelProvider: string, taskType: string): AiProviderRunFn<Input, Output, {
32
- title: string;
33
- description: string;
34
- model_id: string;
35
- tasks: string[];
32
+ title?: string | undefined;
33
+ description?: string | undefined;
34
+ model_id?: string | undefined;
35
+ tasks?: string[] | undefined;
36
+ metadata?: {
37
+ [x: string]: unknown;
38
+ } | undefined;
36
39
  provider: string;
37
40
  providerConfig: {
38
41
  [x: string]: unknown;
39
42
  };
40
- metadata: {
41
- [x: string]: unknown;
42
- };
43
43
  }>;
44
44
  }
45
45
  export declare function getAiProviderRegistry(): AiProviderRegistry;
@@ -1 +1 @@
1
- {"version":3,"file":"AiProviderRegistry.d.ts","sourceRoot":"","sources":["../../src/provider/AiProviderRegistry.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAE7D,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAEnD;;GAEG;AACH,MAAM,MAAM,eAAe,CACzB,KAAK,SAAS,SAAS,GAAG,SAAS,EACnC,MAAM,SAAS,UAAU,GAAG,UAAU,EACtC,KAAK,SAAS,WAAW,GAAG,WAAW,IACrC,CACF,KAAK,EAAE,KAAK,EACZ,KAAK,EAAE,KAAK,GAAG,SAAS,EACxB,eAAe,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,GAAG,KAAK,IAAI,EAC5E,MAAM,EAAE,WAAW,KAChB,OAAO,CAAC,MAAM,CAAC,CAAC;AAErB;;;;GAIG;AACH,qBAAa,kBAAkB;IAC7B,aAAa,EAAE,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,eAAe,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC,CAAa;IAE/E;;;;;OAKG;IACH,aAAa,CAAC,KAAK,SAAS,SAAS,GAAG,SAA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G,CAAC,MAAM,EAAE,eAAe,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC,CAAa;IAE/E;;;;;OAKG;IACH,aAAa,CAAC,KAAK,SAAS,SAAS,GAAG,SAAS,EAAE,MAAM,SAAS,UAAU,GAAG,UAAU,EACvF,aAAa,EAAE,MAAM,EACrB,QAAQ,EAAE,MAAM,EAChB,KAAK,EAAE,eAAe,CAAC,KAAK,EAAE,MAAM,CAAC;IAQvC,qBAAqB,CACnB,KAAK,SAAS,SAAS,GAAG,SAAS,EACnC,MAAM,SAAS,UAAU,GAAG,UAAU,EACtC,aAAa,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM;IAsBzC;;;OAGG;IACH,cAAc,CAAC,KAAK,SAAS,SAAS,GAAG,SAAS,EAAE,MAAM,SAAS,UAAU,GAAG,UAAU,EACxF,aAAa,EAAE,MAAM,EACrB,QAAQ,EAAE,MAAM;;;;;;;;;;;;;CAWnB;AAID,wBAAgB,qBAAqB,uBAGpC;AACD,wBAAgB,qBAAqB,CAAC,EAAE,EAAE,kBAAkB,QAE3D"}
@@ -232,7 +232,7 @@ export declare const BackgroundRemovalInputSchema: {
232
232
  readonly default: {};
233
233
  };
234
234
  };
235
- readonly required: readonly ["model_id", "tasks", "provider", "title", "description", "providerConfig", "metadata"];
235
+ readonly required: readonly ["provider", "providerConfig"];
236
236
  readonly format: "model";
237
237
  readonly additionalProperties: false;
238
238
  } & {
@@ -279,7 +279,7 @@ export declare const BackgroundRemovalInputSchema: {
279
279
  readonly default: {};
280
280
  };
281
281
  };
282
- readonly required: readonly ["model_id", "tasks", "provider", "title", "description", "providerConfig", "metadata"];
282
+ readonly required: readonly ["provider", "providerConfig"];
283
283
  readonly format: "model";
284
284
  readonly additionalProperties: false;
285
285
  } & {
@@ -344,12 +344,12 @@ export declare class BackgroundRemovalTask extends AiVisionTask<BackgroundRemova
344
344
  * @param input The input parameters for background removal (image and model)
345
345
  * @returns Promise resolving to the image with transparent background
346
346
  */
347
- export declare const BackgroundRemoval: (input: BackgroundRemovalTaskInput, config?: JobQueueTaskConfig) => Promise<{
347
+ export declare const backgroundRemoval: (input: BackgroundRemovalTaskInput, config?: JobQueueTaskConfig) => Promise<{
348
348
  image: string | string[];
349
349
  }>;
350
350
  declare module "@workglow/task-graph" {
351
351
  interface Workflow {
352
- BackgroundRemoval: CreateWorkflow<BackgroundRemovalTaskInput, BackgroundRemovalTaskOutput, JobQueueTaskConfig>;
352
+ backgroundRemoval: CreateWorkflow<BackgroundRemovalTaskInput, BackgroundRemovalTaskOutput, JobQueueTaskConfig>;
353
353
  }
354
354
  }
355
355
  //# sourceMappingURL=BackgroundRemovalTask.d.ts.map
@@ -46,12 +46,12 @@ export declare class DocumentSplitterTask extends Task<DocumentSplitterTaskInput
46
46
  flattenFragmentsToTexts(item: DocumentFragment | Document): string[];
47
47
  executeReactive(): Promise<DocumentSplitterTaskOutput>;
48
48
  }
49
- export declare const DocumentSplitter: (input: DocumentSplitterTaskInput) => Promise<{
49
+ export declare const documentSplitter: (input: DocumentSplitterTaskInput) => Promise<{
50
50
  texts: string[];
51
51
  }>;
52
52
  declare module "@workglow/task-graph" {
53
53
  interface Workflow {
54
- DocumentSplitter: CreateWorkflow<DocumentSplitterTaskInput, DocumentSplitterTaskOutput, JobQueueTaskConfig>;
54
+ documentSplitter: CreateWorkflow<DocumentSplitterTaskInput, DocumentSplitterTaskOutput, JobQueueTaskConfig>;
55
55
  }
56
56
  }
57
57
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"DocumentSplitterTask.d.ts","sourceRoot":"","sources":["../../src/task/DocumentSplitterTask.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EACH,cAAc,EACd,kBAAkB,EAClB,IAAI,EAGP,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC5D,OAAO,EAAE,QAAQ,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CA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CAAC;AAEpC,MAAM,MAAM,yBAAyB,GAAG,UAAU,CAAC,OAAO,WAAW,CAAC,CAAC;AACvE,MAAM,MAAM,0BAA0B,GAAG,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC;AAEzE,qBAAa,oBAAqB,SAAQ,IAAI,CAC5C,yBAAyB,EACzB,0BAA0B,EAC1B,kBAAkB,CACnB;IACC,OAAc,IAAI,SAA0B;IAC5C,OAAc,QAAQ,SAAc;IACpC,OAAc,KAAK,SAAuB;IAC1C,OAAc,WAAW,SAAsD;WACjE,WAAW,IAAI,cAAc;WAG7B,YAAY,IAAI,cAAc;IAI5C,uBAAuB,CAAC,IAAI,EAAE,gBAAgB,GAAG,QAAQ,GAAG,MAAM,EAAE;IAY9D,eAAe,IAAI,OAAO,CAAC,0BAA0B,CAAC;CAG7D;AAID,eAAO,MAAM,gBAAgB,GAAI,OAAO,yBAAyB;;EAEhE,CAAC;AAEF,OAAO,QAAQ,sBAAsB,CAAC;IACpC,UAAU,QAAQ;QAChB,gBAAgB,EAAE,cAAc,CAC9B,yBAAyB,EACzB,0BAA0B,EAC1B,kBAAkB,CACnB,CAAC;KACH;CACF"}
@@ -50,7 +50,7 @@ declare const DownloadModelInputSchema: {
50
50
  readonly default: {};
51
51
  };
52
52
  };
53
- readonly required: readonly ["model_id", "tasks", "provider", "title", "description", "providerConfig", "metadata"];
53
+ readonly required: readonly ["provider", "providerConfig"];
54
54
  readonly format: "model";
55
55
  readonly additionalProperties: false;
56
56
  } & {
@@ -97,7 +97,7 @@ declare const DownloadModelInputSchema: {
97
97
  readonly default: {};
98
98
  };
99
99
  };
100
- readonly required: readonly ["model_id", "tasks", "provider", "title", "description", "providerConfig", "metadata"];
100
+ readonly required: readonly ["provider", "providerConfig"];
101
101
  readonly format: "model";
102
102
  readonly additionalProperties: false;
103
103
  } & {
@@ -157,7 +157,7 @@ declare const DownloadModelOutputSchema: {
157
157
  readonly default: {};
158
158
  };
159
159
  };
160
- readonly required: readonly ["model_id", "tasks", "provider", "title", "description", "providerConfig", "metadata"];
160
+ readonly required: readonly ["provider", "providerConfig"];
161
161
  readonly format: "model";
162
162
  readonly additionalProperties: false;
163
163
  } & {
@@ -204,7 +204,7 @@ declare const DownloadModelOutputSchema: {
204
204
  readonly default: {};
205
205
  };
206
206
  };
207
- readonly required: readonly ["model_id", "tasks", "provider", "title", "description", "providerConfig", "metadata"];
207
+ readonly required: readonly ["provider", "providerConfig"];
208
208
  readonly format: "model";
209
209
  readonly additionalProperties: false;
210
210
  } & {
@@ -262,36 +262,36 @@ export declare class DownloadModelTask extends AiTask<DownloadModelTaskRunInput,
262
262
  * @param input - Input containing model(s) to download
263
263
  * @returns Promise resolving to the downloaded model(s)
264
264
  */
265
- export declare const DownloadModel: (input: DownloadModelTaskRunInput, config?: JobQueueTaskConfig) => Promise<{
265
+ export declare const downloadModel: (input: DownloadModelTaskRunInput, config?: JobQueueTaskConfig) => Promise<{
266
266
  model: string | {
267
- title: string;
268
- description: string;
269
- model_id: string;
270
- tasks: string[];
267
+ title?: string | undefined;
268
+ description?: string | undefined;
269
+ model_id?: string | undefined;
270
+ tasks?: string[] | undefined;
271
+ metadata?: {
272
+ [x: string]: unknown;
273
+ } | undefined;
271
274
  provider: string;
272
275
  providerConfig: {
273
276
  [x: string]: unknown;
274
277
  };
275
- metadata: {
276
- [x: string]: unknown;
277
- };
278
278
  } | (string | {
279
- title: string;
280
- description: string;
281
- model_id: string;
282
- tasks: string[];
279
+ title?: string | undefined;
280
+ description?: string | undefined;
281
+ model_id?: string | undefined;
282
+ tasks?: string[] | undefined;
283
+ metadata?: {
284
+ [x: string]: unknown;
285
+ } | undefined;
283
286
  provider: string;
284
287
  providerConfig: {
285
288
  [x: string]: unknown;
286
289
  };
287
- metadata: {
288
- [x: string]: unknown;
289
- };
290
290
  })[];
291
291
  }>;
292
292
  declare module "@workglow/task-graph" {
293
293
  interface Workflow {
294
- DownloadModel: CreateWorkflow<DownloadModelTaskRunInput, DownloadModelTaskRunOutput, JobQueueTaskConfig>;
294
+ downloadModel: CreateWorkflow<DownloadModelTaskRunInput, DownloadModelTaskRunOutput, JobQueueTaskConfig>;
295
295
  }
296
296
  }
297
297
  export {};
@@ -232,7 +232,7 @@ export declare const FaceDetectorInputSchema: {
232
232
  readonly default: {};
233
233
  };
234
234
  };
235
- readonly required: readonly ["model_id", "tasks", "provider", "title", "description", "providerConfig", "metadata"];
235
+ readonly required: readonly ["provider", "providerConfig"];
236
236
  readonly format: "model";
237
237
  readonly additionalProperties: false;
238
238
  } & {
@@ -279,7 +279,7 @@ export declare const FaceDetectorInputSchema: {
279
279
  readonly default: {};
280
280
  };
281
281
  };
282
- readonly required: readonly ["model_id", "tasks", "provider", "title", "description", "providerConfig", "metadata"];
282
+ readonly required: readonly ["provider", "providerConfig"];
283
283
  readonly format: "model";
284
284
  readonly additionalProperties: false;
285
285
  } & {
@@ -487,7 +487,7 @@ export declare class FaceDetectorTask extends AiVisionTask<FaceDetectorTaskInput
487
487
  * @param input The input parameters for face detection (image, model, and optional configuration)
488
488
  * @returns Promise resolving to the detected faces with bounding boxes and keypoints
489
489
  */
490
- export declare const FaceDetector: (input: FaceDetectorTaskInput, config?: JobQueueTaskConfig) => Promise<{
490
+ export declare const faceDetector: (input: FaceDetectorTaskInput, config?: JobQueueTaskConfig) => Promise<{
491
491
  faces: {
492
492
  score: number;
493
493
  box: {
@@ -518,7 +518,7 @@ export declare const FaceDetector: (input: FaceDetectorTaskInput, config?: JobQu
518
518
  }>;
519
519
  declare module "@workglow/task-graph" {
520
520
  interface Workflow {
521
- FaceDetector: CreateWorkflow<FaceDetectorTaskInput, FaceDetectorTaskOutput, JobQueueTaskConfig>;
521
+ faceDetector: CreateWorkflow<FaceDetectorTaskInput, FaceDetectorTaskOutput, JobQueueTaskConfig>;
522
522
  }
523
523
  }
524
524
  //# sourceMappingURL=FaceDetectorTask.d.ts.map
@@ -232,7 +232,7 @@ export declare const FaceLandmarkerInputSchema: {
232
232
  readonly default: {};
233
233
  };
234
234
  };
235
- readonly required: readonly ["model_id", "tasks", "provider", "title", "description", "providerConfig", "metadata"];
235
+ readonly required: readonly ["provider", "providerConfig"];
236
236
  readonly format: "model";
237
237
  readonly additionalProperties: false;
238
238
  } & {
@@ -279,7 +279,7 @@ export declare const FaceLandmarkerInputSchema: {
279
279
  readonly default: {};
280
280
  };
281
281
  };
282
- readonly required: readonly ["model_id", "tasks", "provider", "title", "description", "providerConfig", "metadata"];
282
+ readonly required: readonly ["provider", "providerConfig"];
283
283
  readonly format: "model";
284
284
  readonly additionalProperties: false;
285
285
  } & {
@@ -520,7 +520,7 @@ export declare class FaceLandmarkerTask extends AiVisionTask<FaceLandmarkerTaskI
520
520
  * @param input The input parameters for face landmark detection (image, model, and optional configuration)
521
521
  * @returns Promise resolving to the detected facial landmarks, blendshapes, and transformation matrices
522
522
  */
523
- export declare const FaceLandmarker: (input: FaceLandmarkerTaskInput, config?: JobQueueTaskConfig) => Promise<{
523
+ export declare const faceLandmarker: (input: FaceLandmarkerTaskInput, config?: JobQueueTaskConfig) => Promise<{
524
524
  faces: {
525
525
  blendshapes?: {
526
526
  score: number;
@@ -547,7 +547,7 @@ export declare const FaceLandmarker: (input: FaceLandmarkerTaskInput, config?: J
547
547
  }>;
548
548
  declare module "@workglow/task-graph" {
549
549
  interface Workflow {
550
- FaceLandmarker: CreateWorkflow<FaceLandmarkerTaskInput, FaceLandmarkerTaskOutput, JobQueueTaskConfig>;
550
+ faceLandmarker: CreateWorkflow<FaceLandmarkerTaskInput, FaceLandmarkerTaskOutput, JobQueueTaskConfig>;
551
551
  }
552
552
  }
553
553
  //# sourceMappingURL=FaceLandmarkerTask.d.ts.map
@@ -232,7 +232,7 @@ export declare const GestureRecognizerInputSchema: {
232
232
  readonly default: {};
233
233
  };
234
234
  };
235
- readonly required: readonly ["model_id", "tasks", "provider", "title", "description", "providerConfig", "metadata"];
235
+ readonly required: readonly ["provider", "providerConfig"];
236
236
  readonly format: "model";
237
237
  readonly additionalProperties: false;
238
238
  } & {
@@ -279,7 +279,7 @@ export declare const GestureRecognizerInputSchema: {
279
279
  readonly default: {};
280
280
  };
281
281
  };
282
- readonly required: readonly ["model_id", "tasks", "provider", "title", "description", "providerConfig", "metadata"];
282
+ readonly required: readonly ["provider", "providerConfig"];
283
283
  readonly format: "model";
284
284
  readonly additionalProperties: false;
285
285
  } & {
@@ -584,7 +584,7 @@ export declare class GestureRecognizerTask extends AiVisionTask<GestureRecognize
584
584
  * @param input The input parameters for gesture recognition (image, model, and optional configuration)
585
585
  * @returns Promise resolving to the detected gestures with landmarks and handedness
586
586
  */
587
- export declare const GestureRecognizer: (input: GestureRecognizerTaskInput, config?: JobQueueTaskConfig) => Promise<{
587
+ export declare const gestureRecognizer: (input: GestureRecognizerTaskInput, config?: JobQueueTaskConfig) => Promise<{
588
588
  hands: {
589
589
  landmarks: {
590
590
  x: number;
@@ -627,7 +627,7 @@ export declare const GestureRecognizer: (input: GestureRecognizerTaskInput, conf
627
627
  }>;
628
628
  declare module "@workglow/task-graph" {
629
629
  interface Workflow {
630
- GestureRecognizer: CreateWorkflow<GestureRecognizerTaskInput, GestureRecognizerTaskOutput, JobQueueTaskConfig>;
630
+ gestureRecognizer: CreateWorkflow<GestureRecognizerTaskInput, GestureRecognizerTaskOutput, JobQueueTaskConfig>;
631
631
  }
632
632
  }
633
633
  //# sourceMappingURL=GestureRecognizerTask.d.ts.map
@@ -232,7 +232,7 @@ export declare const HandLandmarkerInputSchema: {
232
232
  readonly default: {};
233
233
  };
234
234
  };
235
- readonly required: readonly ["model_id", "tasks", "provider", "title", "description", "providerConfig", "metadata"];
235
+ readonly required: readonly ["provider", "providerConfig"];
236
236
  readonly format: "model";
237
237
  readonly additionalProperties: false;
238
238
  } & {
@@ -279,7 +279,7 @@ export declare const HandLandmarkerInputSchema: {
279
279
  readonly default: {};
280
280
  };
281
281
  };
282
- readonly required: readonly ["model_id", "tasks", "provider", "title", "description", "providerConfig", "metadata"];
282
+ readonly required: readonly ["provider", "providerConfig"];
283
283
  readonly format: "model";
284
284
  readonly additionalProperties: false;
285
285
  } & {
@@ -539,7 +539,7 @@ export declare class HandLandmarkerTask extends AiVisionTask<HandLandmarkerTaskI
539
539
  * @param input The input parameters for hand landmark detection (image, model, and optional configuration)
540
540
  * @returns Promise resolving to the detected hand landmarks and handedness
541
541
  */
542
- export declare const HandLandmarker: (input: HandLandmarkerTaskInput, config?: JobQueueTaskConfig) => Promise<{
542
+ export declare const handLandmarker: (input: HandLandmarkerTaskInput, config?: JobQueueTaskConfig) => Promise<{
543
543
  hands: {
544
544
  landmarks: {
545
545
  x: number;
@@ -574,7 +574,7 @@ export declare const HandLandmarker: (input: HandLandmarkerTaskInput, config?: J
574
574
  }>;
575
575
  declare module "@workglow/task-graph" {
576
576
  interface Workflow {
577
- HandLandmarker: CreateWorkflow<HandLandmarkerTaskInput, HandLandmarkerTaskOutput, JobQueueTaskConfig>;
577
+ handLandmarker: CreateWorkflow<HandLandmarkerTaskInput, HandLandmarkerTaskOutput, JobQueueTaskConfig>;
578
578
  }
579
579
  }
580
580
  //# sourceMappingURL=HandLandmarkerTask.d.ts.map
@@ -232,7 +232,7 @@ export declare const ImageClassificationInputSchema: {
232
232
  readonly default: {};
233
233
  };
234
234
  };
235
- readonly required: readonly ["model_id", "tasks", "provider", "title", "description", "providerConfig", "metadata"];
235
+ readonly required: readonly ["provider", "providerConfig"];
236
236
  readonly format: "model";
237
237
  readonly additionalProperties: false;
238
238
  } & {
@@ -279,7 +279,7 @@ export declare const ImageClassificationInputSchema: {
279
279
  readonly default: {};
280
280
  };
281
281
  };
282
- readonly required: readonly ["model_id", "tasks", "provider", "title", "description", "providerConfig", "metadata"];
282
+ readonly required: readonly ["provider", "providerConfig"];
283
283
  readonly format: "model";
284
284
  readonly additionalProperties: false;
285
285
  } & {
@@ -397,7 +397,7 @@ export declare class ImageClassificationTask extends AiVisionTask<ImageClassific
397
397
  * @param input The input parameters for image classification (image, model, and optional categories)
398
398
  * @returns Promise resolving to the classification categories with scores
399
399
  */
400
- export declare const ImageClassification: (input: ImageClassificationTaskInput, config?: JobQueueTaskConfig) => Promise<{
400
+ export declare const imageClassification: (input: ImageClassificationTaskInput, config?: JobQueueTaskConfig) => Promise<{
401
401
  categories: {
402
402
  score: number;
403
403
  label: string;
@@ -408,7 +408,7 @@ export declare const ImageClassification: (input: ImageClassificationTaskInput,
408
408
  }>;
409
409
  declare module "@workglow/task-graph" {
410
410
  interface Workflow {
411
- ImageClassification: CreateWorkflow<ImageClassificationTaskInput, ImageClassificationTaskOutput, JobQueueTaskConfig>;
411
+ imageClassification: CreateWorkflow<ImageClassificationTaskInput, ImageClassificationTaskOutput, JobQueueTaskConfig>;
412
412
  }
413
413
  }
414
414
  //# sourceMappingURL=ImageClassificationTask.d.ts.map
@@ -232,7 +232,7 @@ export declare const ImageEmbeddingInputSchema: {
232
232
  readonly default: {};
233
233
  };
234
234
  };
235
- readonly required: readonly ["model_id", "tasks", "provider", "title", "description", "providerConfig", "metadata"];
235
+ readonly required: readonly ["provider", "providerConfig"];
236
236
  readonly format: "model";
237
237
  readonly additionalProperties: false;
238
238
  } & {
@@ -279,7 +279,7 @@ export declare const ImageEmbeddingInputSchema: {
279
279
  readonly default: {};
280
280
  };
281
281
  };
282
- readonly required: readonly ["model_id", "tasks", "provider", "title", "description", "providerConfig", "metadata"];
282
+ readonly required: readonly ["provider", "providerConfig"];
283
283
  readonly format: "model";
284
284
  readonly additionalProperties: false;
285
285
  } & {
@@ -496,12 +496,12 @@ export declare class ImageEmbeddingTask extends AiVisionTask<ImageEmbeddingTaskI
496
496
  * @param input The input parameters for image embedding (image and model)
497
497
  * @returns Promise resolving to the image embedding vector
498
498
  */
499
- export declare const ImageEmbedding: (input: ImageEmbeddingTaskInput, config?: JobQueueTaskConfig) => Promise<{
499
+ export declare const imageEmbedding: (input: ImageEmbeddingTaskInput, config?: JobQueueTaskConfig) => Promise<{
500
500
  vector: number[] | number[][];
501
501
  }>;
502
502
  declare module "@workglow/task-graph" {
503
503
  interface Workflow {
504
- ImageEmbedding: CreateWorkflow<ImageEmbeddingTaskInput, ImageEmbeddingTaskOutput, JobQueueTaskConfig>;
504
+ imageEmbedding: CreateWorkflow<ImageEmbeddingTaskInput, ImageEmbeddingTaskOutput, JobQueueTaskConfig>;
505
505
  }
506
506
  }
507
507
  //# sourceMappingURL=ImageEmbeddingTask.d.ts.map
@@ -232,7 +232,7 @@ export declare const ImageSegmentationInputSchema: {
232
232
  readonly default: {};
233
233
  };
234
234
  };
235
- readonly required: readonly ["model_id", "tasks", "provider", "title", "description", "providerConfig", "metadata"];
235
+ readonly required: readonly ["provider", "providerConfig"];
236
236
  readonly format: "model";
237
237
  readonly additionalProperties: false;
238
238
  } & {
@@ -279,7 +279,7 @@ export declare const ImageSegmentationInputSchema: {
279
279
  readonly default: {};
280
280
  };
281
281
  };
282
- readonly required: readonly ["model_id", "tasks", "provider", "title", "description", "providerConfig", "metadata"];
282
+ readonly required: readonly ["provider", "providerConfig"];
283
283
  readonly format: "model";
284
284
  readonly additionalProperties: false;
285
285
  } & {
@@ -404,7 +404,7 @@ export declare class ImageSegmentationTask extends AiVisionTask<ImageSegmentatio
404
404
  * @param input The input parameters for image segmentation (image and model)
405
405
  * @returns Promise resolving to the segmentation masks with labels and scores
406
406
  */
407
- export declare const ImageSegmentation: (input: ImageSegmentationTaskInput, config?: JobQueueTaskConfig) => Promise<{
407
+ export declare const imageSegmentation: (input: ImageSegmentationTaskInput, config?: JobQueueTaskConfig) => Promise<{
408
408
  masks: {
409
409
  score: number;
410
410
  label: string;
@@ -421,7 +421,7 @@ export declare const ImageSegmentation: (input: ImageSegmentationTaskInput, conf
421
421
  }>;
422
422
  declare module "@workglow/task-graph" {
423
423
  interface Workflow {
424
- ImageSegmentation: CreateWorkflow<ImageSegmentationTaskInput, ImageSegmentationTaskOutput, JobQueueTaskConfig>;
424
+ imageSegmentation: CreateWorkflow<ImageSegmentationTaskInput, ImageSegmentationTaskOutput, JobQueueTaskConfig>;
425
425
  }
426
426
  }
427
427
  //# sourceMappingURL=ImageSegmentationTask.d.ts.map
@@ -232,7 +232,7 @@ export declare const ImageToTextInputSchema: {
232
232
  readonly default: {};
233
233
  };
234
234
  };
235
- readonly required: readonly ["model_id", "tasks", "provider", "title", "description", "providerConfig", "metadata"];
235
+ readonly required: readonly ["provider", "providerConfig"];
236
236
  readonly format: "model";
237
237
  readonly additionalProperties: false;
238
238
  } & {
@@ -279,7 +279,7 @@ export declare const ImageToTextInputSchema: {
279
279
  readonly default: {};
280
280
  };
281
281
  };
282
- readonly required: readonly ["model_id", "tasks", "provider", "title", "description", "providerConfig", "metadata"];
282
+ readonly required: readonly ["provider", "providerConfig"];
283
283
  readonly format: "model";
284
284
  readonly additionalProperties: false;
285
285
  } & {
@@ -348,12 +348,12 @@ export declare class ImageToTextTask extends AiVisionTask<ImageToTextTaskInput,
348
348
  * @param input The input parameters for image to text (image and model)
349
349
  * @returns Promise resolving to the generated text description
350
350
  */
351
- export declare const ImageToText: (input: ImageToTextTaskInput, config?: JobQueueTaskConfig) => Promise<{
351
+ export declare const imageToText: (input: ImageToTextTaskInput, config?: JobQueueTaskConfig) => Promise<{
352
352
  text: string | string[];
353
353
  }>;
354
354
  declare module "@workglow/task-graph" {
355
355
  interface Workflow {
356
- ImageToText: CreateWorkflow<ImageToTextTaskInput, ImageToTextTaskOutput, JobQueueTaskConfig>;
356
+ imageToText: CreateWorkflow<ImageToTextTaskInput, ImageToTextTaskOutput, JobQueueTaskConfig>;
357
357
  }
358
358
  }
359
359
  //# sourceMappingURL=ImageToTextTask.d.ts.map
@@ -232,7 +232,7 @@ export declare const ObjectDetectionInputSchema: {
232
232
  readonly default: {};
233
233
  };
234
234
  };
235
- readonly required: readonly ["model_id", "tasks", "provider", "title", "description", "providerConfig", "metadata"];
235
+ readonly required: readonly ["provider", "providerConfig"];
236
236
  readonly format: "model";
237
237
  readonly additionalProperties: false;
238
238
  } & {
@@ -279,7 +279,7 @@ export declare const ObjectDetectionInputSchema: {
279
279
  readonly default: {};
280
280
  };
281
281
  };
282
- readonly required: readonly ["model_id", "tasks", "provider", "title", "description", "providerConfig", "metadata"];
282
+ readonly required: readonly ["provider", "providerConfig"];
283
283
  readonly format: "model";
284
284
  readonly additionalProperties: false;
285
285
  } & {
@@ -451,7 +451,7 @@ export declare class ObjectDetectionTask extends AiVisionTask<ObjectDetectionTas
451
451
  * @param input The input parameters for object detection (image, model, and optional labels)
452
452
  * @returns Promise resolving to the detected objects with labels, scores, and bounding boxes
453
453
  */
454
- export declare const ObjectDetection: (input: ObjectDetectionTaskInput, config?: JobQueueTaskConfig) => Promise<{
454
+ export declare const objectDetection: (input: ObjectDetectionTaskInput, config?: JobQueueTaskConfig) => Promise<{
455
455
  detections: {
456
456
  score: number;
457
457
  label: string;
@@ -474,7 +474,7 @@ export declare const ObjectDetection: (input: ObjectDetectionTaskInput, config?:
474
474
  }>;
475
475
  declare module "@workglow/task-graph" {
476
476
  interface Workflow {
477
- ObjectDetection: CreateWorkflow<ObjectDetectionTaskInput, ObjectDetectionTaskOutput, JobQueueTaskConfig>;
477
+ objectDetection: CreateWorkflow<ObjectDetectionTaskInput, ObjectDetectionTaskOutput, JobQueueTaskConfig>;
478
478
  }
479
479
  }
480
480
  //# sourceMappingURL=ObjectDetectionTask.d.ts.map
@@ -232,7 +232,7 @@ export declare const PoseLandmarkerInputSchema: {
232
232
  readonly default: {};
233
233
  };
234
234
  };
235
- readonly required: readonly ["model_id", "tasks", "provider", "title", "description", "providerConfig", "metadata"];
235
+ readonly required: readonly ["provider", "providerConfig"];
236
236
  readonly format: "model";
237
237
  readonly additionalProperties: false;
238
238
  } & {
@@ -279,7 +279,7 @@ export declare const PoseLandmarkerInputSchema: {
279
279
  readonly default: {};
280
280
  };
281
281
  };
282
- readonly required: readonly ["model_id", "tasks", "provider", "title", "description", "providerConfig", "metadata"];
282
+ readonly required: readonly ["provider", "providerConfig"];
283
283
  readonly format: "model";
284
284
  readonly additionalProperties: false;
285
285
  } & {
@@ -586,7 +586,7 @@ export declare class PoseLandmarkerTask extends AiVisionTask<PoseLandmarkerTaskI
586
586
  * @param input The input parameters for pose landmark detection (image, model, and optional configuration)
587
587
  * @returns Promise resolving to the detected pose landmarks and optional segmentation masks
588
588
  */
589
- export declare const PoseLandmarker: (input: PoseLandmarkerTaskInput, config?: JobQueueTaskConfig) => Promise<{
589
+ export declare const poseLandmarker: (input: PoseLandmarkerTaskInput, config?: JobQueueTaskConfig) => Promise<{
590
590
  poses: {
591
591
  segmentationMask?: {
592
592
  data: {
@@ -635,7 +635,7 @@ export declare const PoseLandmarker: (input: PoseLandmarkerTaskInput, config?: J
635
635
  }>;
636
636
  declare module "@workglow/task-graph" {
637
637
  interface Workflow {
638
- PoseLandmarker: CreateWorkflow<PoseLandmarkerTaskInput, PoseLandmarkerTaskOutput, JobQueueTaskConfig>;
638
+ poseLandmarker: CreateWorkflow<PoseLandmarkerTaskInput, PoseLandmarkerTaskOutput, JobQueueTaskConfig>;
639
639
  }
640
640
  }
641
641
  //# sourceMappingURL=PoseLandmarkerTask.d.ts.map
@@ -86,7 +86,7 @@ export declare const TextClassificationInputSchema: {
86
86
  readonly default: {};
87
87
  };
88
88
  };
89
- readonly required: readonly ["model_id", "tasks", "provider", "title", "description", "providerConfig", "metadata"];
89
+ readonly required: readonly ["provider", "providerConfig"];
90
90
  readonly format: "model";
91
91
  readonly additionalProperties: false;
92
92
  } & {
@@ -133,7 +133,7 @@ export declare const TextClassificationInputSchema: {
133
133
  readonly default: {};
134
134
  };
135
135
  };
136
- readonly required: readonly ["model_id", "tasks", "provider", "title", "description", "providerConfig", "metadata"];
136
+ readonly required: readonly ["provider", "providerConfig"];
137
137
  readonly format: "model";
138
138
  readonly additionalProperties: false;
139
139
  } & {
@@ -201,7 +201,7 @@ export declare class TextClassificationTask extends AiTask<TextClassificationTas
201
201
  * @param input The input parameters for text classification (text and model)
202
202
  * @returns Promise resolving to the classification categories with scores
203
203
  */
204
- export declare const TextClassification: (input: TextClassificationTaskInput, config?: JobQueueTaskConfig) => Promise<{
204
+ export declare const textClassification: (input: TextClassificationTaskInput, config?: JobQueueTaskConfig) => Promise<{
205
205
  categories: {
206
206
  score: number;
207
207
  label: string;
@@ -209,7 +209,7 @@ export declare const TextClassification: (input: TextClassificationTaskInput, co
209
209
  }>;
210
210
  declare module "@workglow/task-graph" {
211
211
  interface Workflow {
212
- TextClassification: CreateWorkflow<TextClassificationTaskInput, TextClassificationTaskOutput, JobQueueTaskConfig>;
212
+ textClassification: CreateWorkflow<TextClassificationTaskInput, TextClassificationTaskOutput, JobQueueTaskConfig>;
213
213
  }
214
214
  }
215
215
  //# sourceMappingURL=TextClassificationTask.d.ts.map
@@ -68,7 +68,7 @@ export declare const TextEmbeddingInputSchema: {
68
68
  readonly default: {};
69
69
  };
70
70
  };
71
- readonly required: readonly ["model_id", "tasks", "provider", "title", "description", "providerConfig", "metadata"];
71
+ readonly required: readonly ["provider", "providerConfig"];
72
72
  readonly format: "model";
73
73
  readonly additionalProperties: false;
74
74
  } & {
@@ -115,7 +115,7 @@ export declare const TextEmbeddingInputSchema: {
115
115
  readonly default: {};
116
116
  };
117
117
  };
118
- readonly required: readonly ["model_id", "tasks", "provider", "title", "description", "providerConfig", "metadata"];
118
+ readonly required: readonly ["provider", "providerConfig"];
119
119
  readonly format: "model";
120
120
  readonly additionalProperties: false;
121
121
  } & {
@@ -337,12 +337,12 @@ export declare class TextEmbeddingTask extends AiTask<TextEmbeddingTaskInput, Te
337
337
  * @param input - Input containing text(s) and model(s) for embedding
338
338
  * @returns Promise resolving to the generated embeddings
339
339
  */
340
- export declare const TextEmbedding: (input: TextEmbeddingTaskInput, config?: JobQueueTaskConfig) => Promise<{
340
+ export declare const textEmbedding: (input: TextEmbeddingTaskInput, config?: JobQueueTaskConfig) => Promise<{
341
341
  vector: import(".").TypedArray | import(".").TypedArray[];
342
342
  }>;
343
343
  declare module "@workglow/task-graph" {
344
344
  interface Workflow {
345
- TextEmbedding: CreateWorkflow<TextEmbeddingTaskInput, TextEmbeddingTaskOutput, JobQueueTaskConfig>;
345
+ textEmbedding: CreateWorkflow<TextEmbeddingTaskInput, TextEmbeddingTaskOutput, JobQueueTaskConfig>;
346
346
  }
347
347
  }
348
348
  //# sourceMappingURL=TextEmbeddingTask.d.ts.map