@workglow/ai 0.0.85 → 0.0.86

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 (114) hide show
  1. package/README.md +165 -34
  2. package/dist/browser.js +3947 -1449
  3. package/dist/browser.js.map +49 -38
  4. package/dist/bun.js +3947 -1449
  5. package/dist/bun.js.map +49 -38
  6. package/dist/common.d.ts +0 -3
  7. package/dist/common.d.ts.map +1 -1
  8. package/dist/model/ModelRegistry.d.ts +2 -2
  9. package/dist/model/ModelRegistry.d.ts.map +1 -1
  10. package/dist/model/ModelRepository.d.ts +3 -3
  11. package/dist/model/ModelRepository.d.ts.map +1 -1
  12. package/dist/node.js +3947 -1449
  13. package/dist/node.js.map +49 -38
  14. package/dist/task/BackgroundRemovalTask.d.ts +121 -289
  15. package/dist/task/BackgroundRemovalTask.d.ts.map +1 -1
  16. package/dist/task/ChunkRetrievalTask.d.ts +243 -0
  17. package/dist/task/ChunkRetrievalTask.d.ts.map +1 -0
  18. package/dist/task/ChunkToVectorTask.d.ts +183 -0
  19. package/dist/task/ChunkToVectorTask.d.ts.map +1 -0
  20. package/dist/task/ChunkVectorHybridSearchTask.d.ts +160 -0
  21. package/dist/task/ChunkVectorHybridSearchTask.d.ts.map +1 -0
  22. package/dist/task/ChunkVectorSearchTask.d.ts +137 -0
  23. package/dist/task/ChunkVectorSearchTask.d.ts.map +1 -0
  24. package/dist/task/ChunkVectorUpsertTask.d.ts +120 -0
  25. package/dist/task/ChunkVectorUpsertTask.d.ts.map +1 -0
  26. package/dist/task/ContextBuilderTask.d.ts +131 -0
  27. package/dist/task/ContextBuilderTask.d.ts.map +1 -0
  28. package/dist/task/DocumentEnricherTask.d.ts +232 -0
  29. package/dist/task/DocumentEnricherTask.d.ts.map +1 -0
  30. package/dist/task/DownloadModelTask.d.ts +79 -208
  31. package/dist/task/DownloadModelTask.d.ts.map +1 -1
  32. package/dist/task/FaceDetectorTask.d.ts +117 -272
  33. package/dist/task/FaceDetectorTask.d.ts.map +1 -1
  34. package/dist/task/FaceLandmarkerTask.d.ts +117 -272
  35. package/dist/task/FaceLandmarkerTask.d.ts.map +1 -1
  36. package/dist/task/GestureRecognizerTask.d.ts +129 -284
  37. package/dist/task/GestureRecognizerTask.d.ts.map +1 -1
  38. package/dist/task/HandLandmarkerTask.d.ts +125 -280
  39. package/dist/task/HandLandmarkerTask.d.ts.map +1 -1
  40. package/dist/task/HierarchicalChunkerTask.d.ts +212 -0
  41. package/dist/task/HierarchicalChunkerTask.d.ts.map +1 -0
  42. package/dist/task/HierarchyJoinTask.d.ts +318 -0
  43. package/dist/task/HierarchyJoinTask.d.ts.map +1 -0
  44. package/dist/task/ImageClassificationTask.d.ts +117 -272
  45. package/dist/task/ImageClassificationTask.d.ts.map +1 -1
  46. package/dist/task/ImageEmbeddingTask.d.ts +125 -446
  47. package/dist/task/ImageEmbeddingTask.d.ts.map +1 -1
  48. package/dist/task/ImageSegmentationTask.d.ts +117 -272
  49. package/dist/task/ImageSegmentationTask.d.ts.map +1 -1
  50. package/dist/task/ImageToTextTask.d.ts +117 -272
  51. package/dist/task/ImageToTextTask.d.ts.map +1 -1
  52. package/dist/task/ObjectDetectionTask.d.ts +119 -274
  53. package/dist/task/ObjectDetectionTask.d.ts.map +1 -1
  54. package/dist/task/PoseLandmarkerTask.d.ts +117 -272
  55. package/dist/task/PoseLandmarkerTask.d.ts.map +1 -1
  56. package/dist/task/QueryExpanderTask.d.ts +129 -0
  57. package/dist/task/QueryExpanderTask.d.ts.map +1 -0
  58. package/dist/task/RerankerTask.d.ts +209 -0
  59. package/dist/task/RerankerTask.d.ts.map +1 -0
  60. package/dist/task/StructuralParserTask.d.ts +91 -0
  61. package/dist/task/StructuralParserTask.d.ts.map +1 -0
  62. package/dist/task/TextChunkerTask.d.ts +129 -0
  63. package/dist/task/TextChunkerTask.d.ts.map +1 -0
  64. package/dist/task/TextClassificationTask.d.ts +42 -115
  65. package/dist/task/TextClassificationTask.d.ts.map +1 -1
  66. package/dist/task/TextEmbeddingTask.d.ts +55 -277
  67. package/dist/task/TextEmbeddingTask.d.ts.map +1 -1
  68. package/dist/task/TextFillMaskTask.d.ts +42 -115
  69. package/dist/task/TextFillMaskTask.d.ts.map +1 -1
  70. package/dist/task/TextGenerationTask.d.ts +44 -128
  71. package/dist/task/TextGenerationTask.d.ts.map +1 -1
  72. package/dist/task/TextLanguageDetectionTask.d.ts +42 -115
  73. package/dist/task/TextLanguageDetectionTask.d.ts.map +1 -1
  74. package/dist/task/TextNamedEntityRecognitionTask.d.ts +42 -115
  75. package/dist/task/TextNamedEntityRecognitionTask.d.ts.map +1 -1
  76. package/dist/task/TextQuestionAnswerTask.d.ts +47 -144
  77. package/dist/task/TextQuestionAnswerTask.d.ts.map +1 -1
  78. package/dist/task/TextRewriterTask.d.ts +45 -131
  79. package/dist/task/TextRewriterTask.d.ts.map +1 -1
  80. package/dist/task/TextSummaryTask.d.ts +42 -115
  81. package/dist/task/TextSummaryTask.d.ts.map +1 -1
  82. package/dist/task/TextTranslationTask.d.ts +54 -168
  83. package/dist/task/TextTranslationTask.d.ts.map +1 -1
  84. package/dist/task/TopicSegmenterTask.d.ts +148 -0
  85. package/dist/task/TopicSegmenterTask.d.ts.map +1 -0
  86. package/dist/task/UnloadModelTask.d.ts +79 -208
  87. package/dist/task/UnloadModelTask.d.ts.map +1 -1
  88. package/dist/task/VectorQuantizeTask.d.ts +120 -0
  89. package/dist/task/VectorQuantizeTask.d.ts.map +1 -0
  90. package/dist/task/VectorSimilarityTask.d.ts +18 -253
  91. package/dist/task/VectorSimilarityTask.d.ts.map +1 -1
  92. package/dist/task/base/AiTask.d.ts +24 -22
  93. package/dist/task/base/AiTask.d.ts.map +1 -1
  94. package/dist/task/base/AiTaskSchemas.d.ts +3 -127
  95. package/dist/task/base/AiTaskSchemas.d.ts.map +1 -1
  96. package/dist/task/base/AiVisionTask.d.ts +1 -4
  97. package/dist/task/base/AiVisionTask.d.ts.map +1 -1
  98. package/dist/task/index.d.ts +54 -1
  99. package/dist/task/index.d.ts.map +1 -1
  100. package/package.json +14 -9
  101. package/dist/source/Document.d.ts +0 -56
  102. package/dist/source/Document.d.ts.map +0 -1
  103. package/dist/source/DocumentConverter.d.ts +0 -15
  104. package/dist/source/DocumentConverter.d.ts.map +0 -1
  105. package/dist/source/DocumentConverterMarkdown.d.ts +0 -13
  106. package/dist/source/DocumentConverterMarkdown.d.ts.map +0 -1
  107. package/dist/source/DocumentConverterText.d.ts +0 -13
  108. package/dist/source/DocumentConverterText.d.ts.map +0 -1
  109. package/dist/source/MasterDocument.d.ts +0 -27
  110. package/dist/source/MasterDocument.d.ts.map +0 -1
  111. package/dist/source/index.d.ts +0 -10
  112. package/dist/source/index.d.ts.map +0 -1
  113. package/dist/task/DocumentSplitterTask.d.ts +0 -58
  114. package/dist/task/DocumentSplitterTask.d.ts.map +0 -1
@@ -6,133 +6,62 @@
6
6
  import { CreateWorkflow, JobQueueTaskConfig } from "@workglow/task-graph";
7
7
  import { DataPortSchema, FromSchema } from "@workglow/util";
8
8
  import { AiTask } from "./base/AiTask";
9
- import { DeReplicateFromSchema } from "./base/AiTaskSchemas";
10
9
  export declare const TextGenerationInputSchema: {
11
10
  readonly type: "object";
12
11
  readonly properties: {
13
12
  readonly model: {
14
- readonly "x-replicate": true;
15
- readonly format?: string | undefined;
16
13
  readonly oneOf: readonly [{
17
- readonly oneOf: readonly [{
18
- readonly title: "Model";
19
- readonly description: `The model ${string}`;
20
- } & {
21
- readonly format: import(".").TypeModelSemantic;
22
- readonly type: "string";
23
- }, {
24
- readonly type: "object";
25
- readonly properties: {
26
- readonly model_id: {
27
- readonly type: "string";
28
- };
29
- readonly tasks: {
30
- readonly type: "array";
31
- readonly items: {
32
- readonly type: "string";
33
- };
34
- readonly "x-ui-editor": "multiselect";
35
- };
36
- readonly title: {
37
- readonly type: "string";
38
- };
39
- readonly description: {
40
- readonly type: "string";
41
- readonly "x-ui-editor": "textarea";
42
- };
43
- readonly provider: {
44
- readonly type: "string";
45
- };
46
- readonly provider_config: {
47
- readonly type: "object";
48
- readonly default: {};
49
- };
50
- readonly metadata: {
51
- readonly type: "object";
52
- readonly default: {};
53
- readonly "x-ui-hidden": true;
54
- };
55
- };
56
- readonly required: readonly ["provider", "provider_config"];
57
- readonly format: "model";
58
- readonly additionalProperties: false;
59
- } & {
60
- readonly format: import(".").TypeModelSemantic;
61
- }];
14
+ readonly title: "Model";
15
+ readonly description: `The model ${string}`;
62
16
  } & {
63
17
  readonly format: import(".").TypeModelSemantic;
18
+ readonly type: "string";
64
19
  }, {
65
- readonly type: "array";
66
- readonly items: {
67
- readonly oneOf: readonly [{
68
- readonly title: "Model";
69
- readonly description: `The model ${string}`;
70
- } & {
71
- readonly format: import(".").TypeModelSemantic;
20
+ readonly type: "object";
21
+ readonly properties: {
22
+ readonly model_id: {
72
23
  readonly type: "string";
73
- }, {
74
- readonly type: "object";
75
- readonly properties: {
76
- readonly model_id: {
77
- readonly type: "string";
78
- };
79
- readonly tasks: {
80
- readonly type: "array";
81
- readonly items: {
82
- readonly type: "string";
83
- };
84
- readonly "x-ui-editor": "multiselect";
85
- };
86
- readonly title: {
87
- readonly type: "string";
88
- };
89
- readonly description: {
90
- readonly type: "string";
91
- readonly "x-ui-editor": "textarea";
92
- };
93
- readonly provider: {
94
- readonly type: "string";
95
- };
96
- readonly provider_config: {
97
- readonly type: "object";
98
- readonly default: {};
99
- };
100
- readonly metadata: {
101
- readonly type: "object";
102
- readonly default: {};
103
- readonly "x-ui-hidden": true;
104
- };
24
+ };
25
+ readonly tasks: {
26
+ readonly type: "array";
27
+ readonly items: {
28
+ readonly type: "string";
105
29
  };
106
- readonly required: readonly ["provider", "provider_config"];
107
- readonly format: "model";
108
- readonly additionalProperties: false;
109
- } & {
110
- readonly format: import(".").TypeModelSemantic;
111
- }];
112
- } & {
113
- readonly format: import(".").TypeModelSemantic;
30
+ readonly "x-ui-editor": "multiselect";
31
+ };
32
+ readonly title: {
33
+ readonly type: "string";
34
+ };
35
+ readonly description: {
36
+ readonly type: "string";
37
+ readonly "x-ui-editor": "textarea";
38
+ };
39
+ readonly provider: {
40
+ readonly type: "string";
41
+ };
42
+ readonly provider_config: {
43
+ readonly type: "object";
44
+ readonly default: {};
45
+ };
46
+ readonly metadata: {
47
+ readonly type: "object";
48
+ readonly default: {};
49
+ readonly "x-ui-hidden": true;
50
+ };
114
51
  };
52
+ readonly required: readonly ["provider", "provider_config"];
53
+ readonly format: "model";
54
+ readonly additionalProperties: false;
55
+ } & {
56
+ readonly format: import(".").TypeModelSemantic;
115
57
  }];
116
- readonly title: string | undefined;
117
- readonly description: string | undefined;
58
+ } & {
59
+ readonly format: import(".").TypeModelSemantic;
118
60
  };
119
61
  readonly prompt: {
120
- readonly "x-replicate": true;
121
- readonly format?: string | undefined;
122
- readonly oneOf: readonly [{
123
- type: "string";
124
- title: string;
125
- description: string;
126
- }, {
127
- readonly type: "array";
128
- readonly items: {
129
- type: "string";
130
- title: string;
131
- description: string;
132
- };
133
- }];
134
- readonly title: string | undefined;
135
- readonly description: string | undefined;
62
+ readonly type: "string";
63
+ readonly title: "Prompt";
64
+ readonly description: "The prompt to generate text from";
136
65
  };
137
66
  readonly maxTokens: {
138
67
  readonly type: "number";
@@ -182,18 +111,7 @@ export declare const TextGenerationOutputSchema: {
182
111
  readonly type: "object";
183
112
  readonly properties: {
184
113
  readonly text: {
185
- readonly oneOf: readonly [{
186
- readonly type: "string";
187
- readonly title: "Text";
188
- readonly description: "The generated text";
189
- }, {
190
- readonly type: "array";
191
- readonly items: {
192
- readonly type: "string";
193
- readonly title: "Text";
194
- readonly description: "The generated text";
195
- };
196
- }];
114
+ readonly type: "string";
197
115
  readonly title: "Text";
198
116
  readonly description: "The generated text";
199
117
  };
@@ -203,8 +121,6 @@ export declare const TextGenerationOutputSchema: {
203
121
  };
204
122
  export type TextGenerationTaskInput = FromSchema<typeof TextGenerationInputSchema>;
205
123
  export type TextGenerationTaskOutput = FromSchema<typeof TextGenerationOutputSchema>;
206
- export type TextGenerationTaskExecuteInput = DeReplicateFromSchema<typeof TextGenerationInputSchema>;
207
- export type TextGenerationTaskExecuteOutput = DeReplicateFromSchema<typeof TextGenerationOutputSchema>;
208
124
  export declare class TextGenerationTask extends AiTask<TextGenerationTaskInput, TextGenerationTaskOutput, JobQueueTaskConfig> {
209
125
  static type: string;
210
126
  static category: string;
@@ -217,7 +133,7 @@ export declare class TextGenerationTask extends AiTask<TextGenerationTaskInput,
217
133
  * Task for generating text using a language model
218
134
  */
219
135
  export declare const textGeneration: (input: TextGenerationTaskInput, config?: JobQueueTaskConfig) => Promise<{
220
- text: string | string[];
136
+ text: string;
221
137
  }>;
222
138
  declare module "@workglow/task-graph" {
223
139
  interface Workflow {
@@ -1 +1 @@
1
- {"version":3,"file":"TextGenerationTask.d.ts","sourceRoot":"","sources":["../../src/task/TextGenerationTask.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAA0B,MAAM,sBAAsB,CAAC;AAClG,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACvC,OAAO,EAAE,qBAAqB,EAAiC,MAAM,sBAAsB,CAAC;AAU5F,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoDH,CAAC;AAEpC,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;CAWJ,CAAC;AAEpC,MAAM,MAAM,uBAAuB,GAAG,UAAU,CAAC,OAAO,yBAAyB,CAAC,CAAC;AACnF,MAAM,MAAM,wBAAwB,GAAG,UAAU,CAAC,OA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wBAAwB,GAAG,UAAU,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAErF,qBAAa,kBAAmB,SAAQ,MAAM,CAC5C,uBAAuB,EACvB,wBAAwB,EACxB,kBAAkB,CACnB;IACC,OAAc,IAAI,SAAwB;IAC1C,OAAc,QAAQ,SAAmB;IACzC,OAAc,KAAK,SAAqB;IACxC,OAAc,WAAW,SAC2D;WACtE,WAAW,IAAI,cAAc;WAG7B,YAAY,IAAI,cAAc;CAG7C;AAED;;GAEG;AACH,eAAO,MAAM,cAAc,GAAI,OAAO,uBAAuB,EAAE,SAAS,kBAAkB;;EAEzF,CAAC;AAEF,OAAO,QAAQ,sBAAsB,CAAC;IACpC,UAAU,QAAQ;QAChB,cAAc,EAAE,cAAc,CAC5B,uBAAuB,EACvB,wBAAwB,EACxB,kBAAkB,CACnB,CAAC;KACH;CACF"}
@@ -6,27 +6,13 @@
6
6
  import { CreateWorkflow, JobQueueTaskConfig } from "@workglow/task-graph";
7
7
  import { DataPortSchema, FromSchema } from "@workglow/util";
8
8
  import { AiTask } from "./base/AiTask";
9
- import { DeReplicateFromSchema } from "./base/AiTaskSchemas";
10
9
  export declare const TextLanguageDetectionInputSchema: {
11
10
  readonly type: "object";
12
11
  readonly properties: {
13
12
  readonly text: {
14
- readonly "x-replicate": true;
15
- readonly format?: string | undefined;
16
- readonly oneOf: readonly [{
17
- type: "string";
18
- title: string;
19
- description: string;
20
- }, {
21
- readonly type: "array";
22
- readonly items: {
23
- type: "string";
24
- title: string;
25
- description: string;
26
- };
27
- }];
28
- readonly title: string | undefined;
29
- readonly description: string | undefined;
13
+ readonly type: "string";
14
+ readonly title: "Text";
15
+ readonly description: "The text to detect the language of";
30
16
  };
31
17
  readonly maxLanguages: {
32
18
  readonly type: "number";
@@ -37,110 +23,53 @@ export declare const TextLanguageDetectionInputSchema: {
37
23
  readonly description: "The maximum number of languages to return";
38
24
  };
39
25
  readonly model: {
40
- readonly "x-replicate": true;
41
- readonly format?: string | undefined;
42
26
  readonly oneOf: readonly [{
43
- readonly oneOf: readonly [{
44
- readonly title: "Model";
45
- readonly description: `The model ${string}`;
46
- } & {
47
- readonly format: import(".").TypeModelSemantic;
48
- readonly type: "string";
49
- }, {
50
- readonly type: "object";
51
- readonly properties: {
52
- readonly model_id: {
53
- readonly type: "string";
54
- };
55
- readonly tasks: {
56
- readonly type: "array";
57
- readonly items: {
58
- readonly type: "string";
59
- };
60
- readonly "x-ui-editor": "multiselect";
61
- };
62
- readonly title: {
63
- readonly type: "string";
64
- };
65
- readonly description: {
66
- readonly type: "string";
67
- readonly "x-ui-editor": "textarea";
68
- };
69
- readonly provider: {
70
- readonly type: "string";
71
- };
72
- readonly provider_config: {
73
- readonly type: "object";
74
- readonly default: {};
75
- };
76
- readonly metadata: {
77
- readonly type: "object";
78
- readonly default: {};
79
- readonly "x-ui-hidden": true;
80
- };
81
- };
82
- readonly required: readonly ["provider", "provider_config"];
83
- readonly format: "model";
84
- readonly additionalProperties: false;
85
- } & {
86
- readonly format: import(".").TypeModelSemantic;
87
- }];
27
+ readonly title: "Model";
28
+ readonly description: `The model ${string}`;
88
29
  } & {
89
30
  readonly format: import(".").TypeModelSemantic;
31
+ readonly type: "string";
90
32
  }, {
91
- readonly type: "array";
92
- readonly items: {
93
- readonly oneOf: readonly [{
94
- readonly title: "Model";
95
- readonly description: `The model ${string}`;
96
- } & {
97
- readonly format: import(".").TypeModelSemantic;
33
+ readonly type: "object";
34
+ readonly properties: {
35
+ readonly model_id: {
98
36
  readonly type: "string";
99
- }, {
100
- readonly type: "object";
101
- readonly properties: {
102
- readonly model_id: {
103
- readonly type: "string";
104
- };
105
- readonly tasks: {
106
- readonly type: "array";
107
- readonly items: {
108
- readonly type: "string";
109
- };
110
- readonly "x-ui-editor": "multiselect";
111
- };
112
- readonly title: {
113
- readonly type: "string";
114
- };
115
- readonly description: {
116
- readonly type: "string";
117
- readonly "x-ui-editor": "textarea";
118
- };
119
- readonly provider: {
120
- readonly type: "string";
121
- };
122
- readonly provider_config: {
123
- readonly type: "object";
124
- readonly default: {};
125
- };
126
- readonly metadata: {
127
- readonly type: "object";
128
- readonly default: {};
129
- readonly "x-ui-hidden": true;
130
- };
37
+ };
38
+ readonly tasks: {
39
+ readonly type: "array";
40
+ readonly items: {
41
+ readonly type: "string";
131
42
  };
132
- readonly required: readonly ["provider", "provider_config"];
133
- readonly format: "model";
134
- readonly additionalProperties: false;
135
- } & {
136
- readonly format: import(".").TypeModelSemantic;
137
- }];
138
- } & {
139
- readonly format: import(".").TypeModelSemantic;
43
+ readonly "x-ui-editor": "multiselect";
44
+ };
45
+ readonly title: {
46
+ readonly type: "string";
47
+ };
48
+ readonly description: {
49
+ readonly type: "string";
50
+ readonly "x-ui-editor": "textarea";
51
+ };
52
+ readonly provider: {
53
+ readonly type: "string";
54
+ };
55
+ readonly provider_config: {
56
+ readonly type: "object";
57
+ readonly default: {};
58
+ };
59
+ readonly metadata: {
60
+ readonly type: "object";
61
+ readonly default: {};
62
+ readonly "x-ui-hidden": true;
63
+ };
140
64
  };
65
+ readonly required: readonly ["provider", "provider_config"];
66
+ readonly format: "model";
67
+ readonly additionalProperties: false;
68
+ } & {
69
+ readonly format: import(".").TypeModelSemantic;
141
70
  }];
142
- readonly title: string | undefined;
143
- readonly description: string | undefined;
71
+ } & {
72
+ readonly format: import(".").TypeModelSemantic;
144
73
  };
145
74
  };
146
75
  readonly required: readonly ["text", "model"];
@@ -177,8 +106,6 @@ export declare const TextLanguageDetectionOutputSchema: {
177
106
  };
178
107
  export type TextLanguageDetectionTaskInput = FromSchema<typeof TextLanguageDetectionInputSchema>;
179
108
  export type TextLanguageDetectionTaskOutput = FromSchema<typeof TextLanguageDetectionOutputSchema>;
180
- export type TextLanguageDetectionTaskExecuteInput = DeReplicateFromSchema<typeof TextLanguageDetectionInputSchema>;
181
- export type TextLanguageDetectionTaskExecuteOutput = DeReplicateFromSchema<typeof TextLanguageDetectionOutputSchema>;
182
109
  /**
183
110
  * Detects the language of text using language models
184
111
  */
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ACnC,8BAA8B,EAC9B,+BAA+B,EAC/B,kBAAkB,CACnB,CAAC;KACH;CACF"}
@@ -6,27 +6,13 @@
6
6
  import { CreateWorkflow, JobQueueTaskConfig } from "@workglow/task-graph";
7
7
  import { DataPortSchema, FromSchema } from "@workglow/util";
8
8
  import { AiTask } from "./base/AiTask";
9
- import { DeReplicateFromSchema } from "./base/AiTaskSchemas";
10
9
  export declare const TextNamedEntityRecognitionInputSchema: {
11
10
  readonly type: "object";
12
11
  readonly properties: {
13
12
  readonly text: {
14
- readonly "x-replicate": true;
15
- readonly format?: string | undefined;
16
- readonly oneOf: readonly [{
17
- type: "string";
18
- title: string;
19
- description: string;
20
- }, {
21
- readonly type: "array";
22
- readonly items: {
23
- type: "string";
24
- title: string;
25
- description: string;
26
- };
27
- }];
28
- readonly title: string | undefined;
29
- readonly description: string | undefined;
13
+ readonly type: "string";
14
+ readonly title: "Text";
15
+ readonly description: "The text to extract named entities from";
30
16
  };
31
17
  readonly blockList: {
32
18
  readonly type: "array";
@@ -39,110 +25,53 @@ export declare const TextNamedEntityRecognitionInputSchema: {
39
25
  readonly "x-ui-group-open": false;
40
26
  };
41
27
  readonly model: {
42
- readonly "x-replicate": true;
43
- readonly format?: string | undefined;
44
28
  readonly oneOf: readonly [{
45
- readonly oneOf: readonly [{
46
- readonly title: "Model";
47
- readonly description: `The model ${string}`;
48
- } & {
49
- readonly format: import(".").TypeModelSemantic;
50
- readonly type: "string";
51
- }, {
52
- readonly type: "object";
53
- readonly properties: {
54
- readonly model_id: {
55
- readonly type: "string";
56
- };
57
- readonly tasks: {
58
- readonly type: "array";
59
- readonly items: {
60
- readonly type: "string";
61
- };
62
- readonly "x-ui-editor": "multiselect";
63
- };
64
- readonly title: {
65
- readonly type: "string";
66
- };
67
- readonly description: {
68
- readonly type: "string";
69
- readonly "x-ui-editor": "textarea";
70
- };
71
- readonly provider: {
72
- readonly type: "string";
73
- };
74
- readonly provider_config: {
75
- readonly type: "object";
76
- readonly default: {};
77
- };
78
- readonly metadata: {
79
- readonly type: "object";
80
- readonly default: {};
81
- readonly "x-ui-hidden": true;
82
- };
83
- };
84
- readonly required: readonly ["provider", "provider_config"];
85
- readonly format: "model";
86
- readonly additionalProperties: false;
87
- } & {
88
- readonly format: import(".").TypeModelSemantic;
89
- }];
29
+ readonly title: "Model";
30
+ readonly description: `The model ${string}`;
90
31
  } & {
91
32
  readonly format: import(".").TypeModelSemantic;
33
+ readonly type: "string";
92
34
  }, {
93
- readonly type: "array";
94
- readonly items: {
95
- readonly oneOf: readonly [{
96
- readonly title: "Model";
97
- readonly description: `The model ${string}`;
98
- } & {
99
- readonly format: import(".").TypeModelSemantic;
35
+ readonly type: "object";
36
+ readonly properties: {
37
+ readonly model_id: {
100
38
  readonly type: "string";
101
- }, {
102
- readonly type: "object";
103
- readonly properties: {
104
- readonly model_id: {
105
- readonly type: "string";
106
- };
107
- readonly tasks: {
108
- readonly type: "array";
109
- readonly items: {
110
- readonly type: "string";
111
- };
112
- readonly "x-ui-editor": "multiselect";
113
- };
114
- readonly title: {
115
- readonly type: "string";
116
- };
117
- readonly description: {
118
- readonly type: "string";
119
- readonly "x-ui-editor": "textarea";
120
- };
121
- readonly provider: {
122
- readonly type: "string";
123
- };
124
- readonly provider_config: {
125
- readonly type: "object";
126
- readonly default: {};
127
- };
128
- readonly metadata: {
129
- readonly type: "object";
130
- readonly default: {};
131
- readonly "x-ui-hidden": true;
132
- };
39
+ };
40
+ readonly tasks: {
41
+ readonly type: "array";
42
+ readonly items: {
43
+ readonly type: "string";
133
44
  };
134
- readonly required: readonly ["provider", "provider_config"];
135
- readonly format: "model";
136
- readonly additionalProperties: false;
137
- } & {
138
- readonly format: import(".").TypeModelSemantic;
139
- }];
140
- } & {
141
- readonly format: import(".").TypeModelSemantic;
45
+ readonly "x-ui-editor": "multiselect";
46
+ };
47
+ readonly title: {
48
+ readonly type: "string";
49
+ };
50
+ readonly description: {
51
+ readonly type: "string";
52
+ readonly "x-ui-editor": "textarea";
53
+ };
54
+ readonly provider: {
55
+ readonly type: "string";
56
+ };
57
+ readonly provider_config: {
58
+ readonly type: "object";
59
+ readonly default: {};
60
+ };
61
+ readonly metadata: {
62
+ readonly type: "object";
63
+ readonly default: {};
64
+ readonly "x-ui-hidden": true;
65
+ };
142
66
  };
67
+ readonly required: readonly ["provider", "provider_config"];
68
+ readonly format: "model";
69
+ readonly additionalProperties: false;
70
+ } & {
71
+ readonly format: import(".").TypeModelSemantic;
143
72
  }];
144
- readonly title: string | undefined;
145
- readonly description: string | undefined;
73
+ } & {
74
+ readonly format: import(".").TypeModelSemantic;
146
75
  };
147
76
  };
148
77
  readonly required: readonly ["text", "model"];
@@ -184,8 +113,6 @@ export declare const TextNamedEntityRecognitionOutputSchema: {
184
113
  };
185
114
  export type TextNamedEntityRecognitionTaskInput = FromSchema<typeof TextNamedEntityRecognitionInputSchema>;
186
115
  export type TextNamedEntityRecognitionTaskOutput = FromSchema<typeof TextNamedEntityRecognitionOutputSchema>;
187
- export type TextNamedEntityRecognitionTaskExecuteInput = DeReplicateFromSchema<typeof TextNamedEntityRecognitionInputSchema>;
188
- export type TextNamedEntityRecognitionTaskExecuteOutput = DeReplicateFromSchema<typeof TextNamedEntityRecognitionOutputSchema>;
189
116
  /**
190
117
  * Extracts named entities from text using language models
191
118
  */
@@ -1 +1 @@
1
- {"version":3,"file":"TextNamedEntityRecognitionTask.d.ts","sourceRoot":"","sources":["../../src/task/TextNamedEntityRecognitionTask.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAA0B,MAAM,sBAAsB,CAAC;AAClG,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACvC,OAAO,EAAE,qBAAqB,EAAiC,MAAM,sBAAsB,CAAC;AAI5F,eAAO,MAAM,qCAAqC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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,MAAM,gBAAgB,CAAC;AAC5D,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;WAClD,WAAW,IAAI,cAAc;WAG7B,YAAY,IAAI,cAAc;CAG7C;AAED;;;;;GAKG;AACH,eAAO,MAAM,0BAA0B,GACrC,OAAO,mCAAmC,EAC1C,SAAS,kBAAkB;;;;;;EAK5B,CAAC;AAEF,OAAO,QAAQ,sBAAsB,CAAC;IACpC,UAAU,QAAQ;QAChB,0BAA0B,EAAE,cAAc,CACxC,mCAAmC,EACnC,oCAAoC,EACpC,kBAAkB,CACnB,CAAC;KACH;CACF"}