@workglow/ai 0.0.85 → 0.0.87

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 (117) hide show
  1. package/README.md +165 -34
  2. package/dist/browser.js +3948 -1450
  3. package/dist/browser.js.map +50 -39
  4. package/dist/bun.js +3948 -1450
  5. package/dist/bun.js.map +50 -39
  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/model/ModelSchema.d.ts +1 -1
  13. package/dist/node.js +3948 -1450
  14. package/dist/node.js.map +50 -39
  15. package/dist/provider/AiProviderRegistry.d.ts +1 -0
  16. package/dist/provider/AiProviderRegistry.d.ts.map +1 -1
  17. package/dist/task/BackgroundRemovalTask.d.ts +121 -289
  18. package/dist/task/BackgroundRemovalTask.d.ts.map +1 -1
  19. package/dist/task/ChunkRetrievalTask.d.ts +243 -0
  20. package/dist/task/ChunkRetrievalTask.d.ts.map +1 -0
  21. package/dist/task/ChunkToVectorTask.d.ts +183 -0
  22. package/dist/task/ChunkToVectorTask.d.ts.map +1 -0
  23. package/dist/task/ChunkVectorHybridSearchTask.d.ts +160 -0
  24. package/dist/task/ChunkVectorHybridSearchTask.d.ts.map +1 -0
  25. package/dist/task/ChunkVectorSearchTask.d.ts +137 -0
  26. package/dist/task/ChunkVectorSearchTask.d.ts.map +1 -0
  27. package/dist/task/ChunkVectorUpsertTask.d.ts +120 -0
  28. package/dist/task/ChunkVectorUpsertTask.d.ts.map +1 -0
  29. package/dist/task/ContextBuilderTask.d.ts +131 -0
  30. package/dist/task/ContextBuilderTask.d.ts.map +1 -0
  31. package/dist/task/DocumentEnricherTask.d.ts +232 -0
  32. package/dist/task/DocumentEnricherTask.d.ts.map +1 -0
  33. package/dist/task/DownloadModelTask.d.ts +80 -208
  34. package/dist/task/DownloadModelTask.d.ts.map +1 -1
  35. package/dist/task/FaceDetectorTask.d.ts +117 -272
  36. package/dist/task/FaceDetectorTask.d.ts.map +1 -1
  37. package/dist/task/FaceLandmarkerTask.d.ts +117 -272
  38. package/dist/task/FaceLandmarkerTask.d.ts.map +1 -1
  39. package/dist/task/GestureRecognizerTask.d.ts +129 -284
  40. package/dist/task/GestureRecognizerTask.d.ts.map +1 -1
  41. package/dist/task/HandLandmarkerTask.d.ts +125 -280
  42. package/dist/task/HandLandmarkerTask.d.ts.map +1 -1
  43. package/dist/task/HierarchicalChunkerTask.d.ts +212 -0
  44. package/dist/task/HierarchicalChunkerTask.d.ts.map +1 -0
  45. package/dist/task/HierarchyJoinTask.d.ts +318 -0
  46. package/dist/task/HierarchyJoinTask.d.ts.map +1 -0
  47. package/dist/task/ImageClassificationTask.d.ts +117 -272
  48. package/dist/task/ImageClassificationTask.d.ts.map +1 -1
  49. package/dist/task/ImageEmbeddingTask.d.ts +125 -446
  50. package/dist/task/ImageEmbeddingTask.d.ts.map +1 -1
  51. package/dist/task/ImageSegmentationTask.d.ts +117 -272
  52. package/dist/task/ImageSegmentationTask.d.ts.map +1 -1
  53. package/dist/task/ImageToTextTask.d.ts +117 -272
  54. package/dist/task/ImageToTextTask.d.ts.map +1 -1
  55. package/dist/task/ObjectDetectionTask.d.ts +119 -274
  56. package/dist/task/ObjectDetectionTask.d.ts.map +1 -1
  57. package/dist/task/PoseLandmarkerTask.d.ts +117 -272
  58. package/dist/task/PoseLandmarkerTask.d.ts.map +1 -1
  59. package/dist/task/QueryExpanderTask.d.ts +129 -0
  60. package/dist/task/QueryExpanderTask.d.ts.map +1 -0
  61. package/dist/task/RerankerTask.d.ts +209 -0
  62. package/dist/task/RerankerTask.d.ts.map +1 -0
  63. package/dist/task/StructuralParserTask.d.ts +91 -0
  64. package/dist/task/StructuralParserTask.d.ts.map +1 -0
  65. package/dist/task/TextChunkerTask.d.ts +129 -0
  66. package/dist/task/TextChunkerTask.d.ts.map +1 -0
  67. package/dist/task/TextClassificationTask.d.ts +42 -115
  68. package/dist/task/TextClassificationTask.d.ts.map +1 -1
  69. package/dist/task/TextEmbeddingTask.d.ts +55 -277
  70. package/dist/task/TextEmbeddingTask.d.ts.map +1 -1
  71. package/dist/task/TextFillMaskTask.d.ts +42 -115
  72. package/dist/task/TextFillMaskTask.d.ts.map +1 -1
  73. package/dist/task/TextGenerationTask.d.ts +44 -128
  74. package/dist/task/TextGenerationTask.d.ts.map +1 -1
  75. package/dist/task/TextLanguageDetectionTask.d.ts +42 -115
  76. package/dist/task/TextLanguageDetectionTask.d.ts.map +1 -1
  77. package/dist/task/TextNamedEntityRecognitionTask.d.ts +42 -115
  78. package/dist/task/TextNamedEntityRecognitionTask.d.ts.map +1 -1
  79. package/dist/task/TextQuestionAnswerTask.d.ts +47 -144
  80. package/dist/task/TextQuestionAnswerTask.d.ts.map +1 -1
  81. package/dist/task/TextRewriterTask.d.ts +45 -131
  82. package/dist/task/TextRewriterTask.d.ts.map +1 -1
  83. package/dist/task/TextSummaryTask.d.ts +42 -115
  84. package/dist/task/TextSummaryTask.d.ts.map +1 -1
  85. package/dist/task/TextTranslationTask.d.ts +54 -168
  86. package/dist/task/TextTranslationTask.d.ts.map +1 -1
  87. package/dist/task/TopicSegmenterTask.d.ts +148 -0
  88. package/dist/task/TopicSegmenterTask.d.ts.map +1 -0
  89. package/dist/task/UnloadModelTask.d.ts +80 -208
  90. package/dist/task/UnloadModelTask.d.ts.map +1 -1
  91. package/dist/task/VectorQuantizeTask.d.ts +120 -0
  92. package/dist/task/VectorQuantizeTask.d.ts.map +1 -0
  93. package/dist/task/VectorSimilarityTask.d.ts +18 -253
  94. package/dist/task/VectorSimilarityTask.d.ts.map +1 -1
  95. package/dist/task/base/AiTask.d.ts +24 -22
  96. package/dist/task/base/AiTask.d.ts.map +1 -1
  97. package/dist/task/base/AiTaskSchemas.d.ts +5 -129
  98. package/dist/task/base/AiTaskSchemas.d.ts.map +1 -1
  99. package/dist/task/base/AiVisionTask.d.ts +1 -4
  100. package/dist/task/base/AiVisionTask.d.ts.map +1 -1
  101. package/dist/task/index.d.ts +54 -1
  102. package/dist/task/index.d.ts.map +1 -1
  103. package/package.json +14 -9
  104. package/dist/source/Document.d.ts +0 -56
  105. package/dist/source/Document.d.ts.map +0 -1
  106. package/dist/source/DocumentConverter.d.ts +0 -15
  107. package/dist/source/DocumentConverter.d.ts.map +0 -1
  108. package/dist/source/DocumentConverterMarkdown.d.ts +0 -13
  109. package/dist/source/DocumentConverterMarkdown.d.ts.map +0 -1
  110. package/dist/source/DocumentConverterText.d.ts +0 -13
  111. package/dist/source/DocumentConverterText.d.ts.map +0 -1
  112. package/dist/source/MasterDocument.d.ts +0 -27
  113. package/dist/source/MasterDocument.d.ts.map +0 -1
  114. package/dist/source/index.d.ts +0 -10
  115. package/dist/source/index.d.ts.map +0 -1
  116. package/dist/task/DocumentSplitterTask.d.ts +0 -58
  117. package/dist/task/DocumentSplitterTask.d.ts.map +0 -1
@@ -6,151 +6,67 @@
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 TextQuestionAnswerInputSchema: {
11
10
  readonly type: "object";
12
11
  readonly properties: {
13
12
  readonly context: {
14
- readonly "x-replicate": true;
15
- readonly format?: string | undefined;
16
- readonly oneOf: readonly [{
17
- readonly type: "string";
18
- readonly title: "Context";
19
- readonly description: "The context of the question";
20
- }, {
21
- readonly type: "array";
22
- readonly items: {
23
- readonly type: "string";
24
- readonly title: "Context";
25
- readonly description: "The context of the question";
26
- };
27
- }];
28
- readonly title: string | undefined;
29
- readonly description: string | undefined;
13
+ readonly type: "string";
14
+ readonly title: "Context";
15
+ readonly description: "The context of the question";
30
16
  };
31
17
  readonly question: {
32
- readonly "x-replicate": true;
33
- readonly format?: string | undefined;
34
- readonly oneOf: readonly [{
35
- readonly type: "string";
36
- readonly title: "Question";
37
- readonly description: "The question to answer";
38
- }, {
39
- readonly type: "array";
40
- readonly items: {
41
- readonly type: "string";
42
- readonly title: "Question";
43
- readonly description: "The question to answer";
44
- };
45
- }];
46
- readonly title: string | undefined;
47
- readonly description: string | undefined;
18
+ readonly type: "string";
19
+ readonly title: "Question";
20
+ readonly description: "The question to answer";
48
21
  };
49
22
  readonly model: {
50
- readonly "x-replicate": true;
51
- readonly format?: string | undefined;
52
23
  readonly oneOf: readonly [{
53
- readonly oneOf: readonly [{
54
- readonly title: "Model";
55
- readonly description: `The model ${string}`;
56
- } & {
57
- readonly format: import(".").TypeModelSemantic;
58
- readonly type: "string";
59
- }, {
60
- readonly type: "object";
61
- readonly properties: {
62
- readonly model_id: {
63
- readonly type: "string";
64
- };
65
- readonly tasks: {
66
- readonly type: "array";
67
- readonly items: {
68
- readonly type: "string";
69
- };
70
- readonly "x-ui-editor": "multiselect";
71
- };
72
- readonly title: {
73
- readonly type: "string";
74
- };
75
- readonly description: {
76
- readonly type: "string";
77
- readonly "x-ui-editor": "textarea";
78
- };
79
- readonly provider: {
80
- readonly type: "string";
81
- };
82
- readonly provider_config: {
83
- readonly type: "object";
84
- readonly default: {};
85
- };
86
- readonly metadata: {
87
- readonly type: "object";
88
- readonly default: {};
89
- readonly "x-ui-hidden": true;
90
- };
91
- };
92
- readonly required: readonly ["provider", "provider_config"];
93
- readonly format: "model";
94
- readonly additionalProperties: false;
95
- } & {
96
- readonly format: import(".").TypeModelSemantic;
97
- }];
24
+ readonly title: "Model";
25
+ readonly description: `The model ${string}`;
98
26
  } & {
99
27
  readonly format: import(".").TypeModelSemantic;
28
+ readonly type: "string";
100
29
  }, {
101
- readonly type: "array";
102
- readonly items: {
103
- readonly oneOf: readonly [{
104
- readonly title: "Model";
105
- readonly description: `The model ${string}`;
106
- } & {
107
- readonly format: import(".").TypeModelSemantic;
30
+ readonly type: "object";
31
+ readonly properties: {
32
+ readonly model_id: {
108
33
  readonly type: "string";
109
- }, {
110
- readonly type: "object";
111
- readonly properties: {
112
- readonly model_id: {
113
- readonly type: "string";
114
- };
115
- readonly tasks: {
116
- readonly type: "array";
117
- readonly items: {
118
- readonly type: "string";
119
- };
120
- readonly "x-ui-editor": "multiselect";
121
- };
122
- readonly title: {
123
- readonly type: "string";
124
- };
125
- readonly description: {
126
- readonly type: "string";
127
- readonly "x-ui-editor": "textarea";
128
- };
129
- readonly provider: {
130
- readonly type: "string";
131
- };
132
- readonly provider_config: {
133
- readonly type: "object";
134
- readonly default: {};
135
- };
136
- readonly metadata: {
137
- readonly type: "object";
138
- readonly default: {};
139
- readonly "x-ui-hidden": true;
140
- };
34
+ };
35
+ readonly tasks: {
36
+ readonly type: "array";
37
+ readonly items: {
38
+ readonly type: "string";
141
39
  };
142
- readonly required: readonly ["provider", "provider_config"];
143
- readonly format: "model";
144
- readonly additionalProperties: false;
145
- } & {
146
- readonly format: import(".").TypeModelSemantic;
147
- }];
148
- } & {
149
- readonly format: import(".").TypeModelSemantic;
40
+ readonly "x-ui-editor": "multiselect";
41
+ };
42
+ readonly title: {
43
+ readonly type: "string";
44
+ };
45
+ readonly description: {
46
+ readonly type: "string";
47
+ readonly "x-ui-editor": "textarea";
48
+ };
49
+ readonly provider: {
50
+ readonly type: "string";
51
+ };
52
+ readonly provider_config: {
53
+ readonly type: "object";
54
+ readonly default: {};
55
+ };
56
+ readonly metadata: {
57
+ readonly type: "object";
58
+ readonly default: {};
59
+ readonly "x-ui-hidden": true;
60
+ };
150
61
  };
62
+ readonly required: readonly ["provider", "provider_config"];
63
+ readonly format: "model";
64
+ readonly additionalProperties: true;
65
+ } & {
66
+ readonly format: import(".").TypeModelSemantic;
151
67
  }];
152
- readonly title: string | undefined;
153
- readonly description: string | undefined;
68
+ } & {
69
+ readonly format: import(".").TypeModelSemantic;
154
70
  };
155
71
  };
156
72
  readonly required: readonly ["context", "question", "model"];
@@ -160,18 +76,7 @@ export declare const TextQuestionAnswerOutputSchema: {
160
76
  readonly type: "object";
161
77
  readonly properties: {
162
78
  readonly text: {
163
- readonly oneOf: readonly [{
164
- readonly type: "string";
165
- readonly title: "Text";
166
- readonly description: "The generated text";
167
- }, {
168
- readonly type: "array";
169
- readonly items: {
170
- readonly type: "string";
171
- readonly title: "Text";
172
- readonly description: "The generated text";
173
- };
174
- }];
79
+ readonly type: "string";
175
80
  readonly title: "Text";
176
81
  readonly description: "The generated text";
177
82
  };
@@ -181,8 +86,6 @@ export declare const TextQuestionAnswerOutputSchema: {
181
86
  };
182
87
  export type TextQuestionAnswerTaskInput = FromSchema<typeof TextQuestionAnswerInputSchema>;
183
88
  export type TextQuestionAnswerTaskOutput = FromSchema<typeof TextQuestionAnswerOutputSchema>;
184
- export type TextQuestionAnswerTaskExecuteInput = DeReplicateFromSchema<typeof TextQuestionAnswerInputSchema>;
185
- export type TextQuestionAnswerTaskExecuteOutput = DeReplicateFromSchema<typeof TextQuestionAnswerOutputSchema>;
186
89
  /**
187
90
  * This is a special case of text generation that takes a context and a question
188
91
  */
@@ -201,7 +104,7 @@ export declare class TextQuestionAnswerTask extends AiTask<TextQuestionAnswerTas
201
104
  * @returns Promise resolving to the generated answer(s)
202
105
  */
203
106
  export declare const textQuestionAnswer: (input: TextQuestionAnswerTaskInput, config?: JobQueueTaskConfig) => Promise<{
204
- text: string | string[];
107
+ text: string;
205
108
  }>;
206
109
  declare module "@workglow/task-graph" {
207
110
  interface Workflow {
@@ -1 +1 @@
1
- {"version":3,"file":"TextQuestionAnswerTask.d.ts","sourceRoot":"","sources":["../../src/task/TextQuestionAnswerTask.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAA0B,MAAM,sBAAsB,CAAC;AAClG,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,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"AAAA;;;;GAIG;AAEH,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAAY,MAAM,sBAAsB,CAAC;AACpF,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAuBvC,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CASP,CAAC;AAEpC,eAAO,MAAM,8BAA8B;;;;;;;;;;;CAOR,CAAC;AAEpC,MAAM,MAAM,2BAA2B,GAAG,UAAU,CAAC,OAAO,6BAA6B,CAAC,CAAC;AAC3F,MAAM,MAAM,4BAA4B,GAAG,UAAU,CAAC,OAAO,8BAA8B,CAAC,CAAC;AAE7F;;GAEG;AACH,qBAAa,sBAAuB,SAAQ,MAAM,CAChD,2BAA2B,EAC3B,4BAA4B,EAC5B,kBAAkB,CACnB;IACC,OAAc,IAAI,SAA4B;IAC9C,OAAc,QAAQ,SAAmB;IACzC,OAAc,KAAK,SAA0B;IAC7C,OAAc,WAAW,SAAuE;WAClF,WAAW,IAAI,cAAc;WAG7B,YAAY,IAAI,cAAc;CAG7C;AAED;;;;;GAKG;AACH,eAAO,MAAM,kBAAkB,GAC7B,OAAO,2BAA2B,EAClC,SAAS,kBAAkB;;EAG5B,CAAC;AAEF,OAAO,QAAQ,sBAAsB,CAAC;IACpC,UAAU,QAAQ;QAChB,kBAAkB,EAAE,cAAc,CAChC,2BAA2B,EAC3B,4BAA4B,EAC5B,kBAAkB,CACnB,CAAC;KACH;CACF"}
@@ -6,151 +6,67 @@
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 TextRewriterInputSchema: {
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 rewrite";
30
16
  };
31
17
  readonly prompt: {
32
- readonly "x-replicate": true;
33
- readonly format?: string | undefined;
34
- readonly oneOf: readonly [{
35
- type: "string";
36
- title: string;
37
- description: string;
38
- }, {
39
- readonly type: "array";
40
- readonly items: {
41
- type: "string";
42
- title: string;
43
- description: string;
44
- };
45
- }];
46
- readonly title: string | undefined;
47
- readonly description: string | undefined;
18
+ readonly type: "string";
19
+ readonly title: "Prompt";
20
+ readonly description: "The prompt to direct the rewriting";
48
21
  };
49
22
  readonly model: {
50
- readonly "x-replicate": true;
51
- readonly format?: string | undefined;
52
23
  readonly oneOf: readonly [{
53
- readonly oneOf: readonly [{
54
- readonly title: "Model";
55
- readonly description: `The model ${string}`;
56
- } & {
57
- readonly format: import(".").TypeModelSemantic;
58
- readonly type: "string";
59
- }, {
60
- readonly type: "object";
61
- readonly properties: {
62
- readonly model_id: {
63
- readonly type: "string";
64
- };
65
- readonly tasks: {
66
- readonly type: "array";
67
- readonly items: {
68
- readonly type: "string";
69
- };
70
- readonly "x-ui-editor": "multiselect";
71
- };
72
- readonly title: {
73
- readonly type: "string";
74
- };
75
- readonly description: {
76
- readonly type: "string";
77
- readonly "x-ui-editor": "textarea";
78
- };
79
- readonly provider: {
80
- readonly type: "string";
81
- };
82
- readonly provider_config: {
83
- readonly type: "object";
84
- readonly default: {};
85
- };
86
- readonly metadata: {
87
- readonly type: "object";
88
- readonly default: {};
89
- readonly "x-ui-hidden": true;
90
- };
91
- };
92
- readonly required: readonly ["provider", "provider_config"];
93
- readonly format: "model";
94
- readonly additionalProperties: false;
95
- } & {
96
- readonly format: import(".").TypeModelSemantic;
97
- }];
24
+ readonly title: "Model";
25
+ readonly description: `The model ${string}`;
98
26
  } & {
99
27
  readonly format: import(".").TypeModelSemantic;
28
+ readonly type: "string";
100
29
  }, {
101
- readonly type: "array";
102
- readonly items: {
103
- readonly oneOf: readonly [{
104
- readonly title: "Model";
105
- readonly description: `The model ${string}`;
106
- } & {
107
- readonly format: import(".").TypeModelSemantic;
30
+ readonly type: "object";
31
+ readonly properties: {
32
+ readonly model_id: {
108
33
  readonly type: "string";
109
- }, {
110
- readonly type: "object";
111
- readonly properties: {
112
- readonly model_id: {
113
- readonly type: "string";
114
- };
115
- readonly tasks: {
116
- readonly type: "array";
117
- readonly items: {
118
- readonly type: "string";
119
- };
120
- readonly "x-ui-editor": "multiselect";
121
- };
122
- readonly title: {
123
- readonly type: "string";
124
- };
125
- readonly description: {
126
- readonly type: "string";
127
- readonly "x-ui-editor": "textarea";
128
- };
129
- readonly provider: {
130
- readonly type: "string";
131
- };
132
- readonly provider_config: {
133
- readonly type: "object";
134
- readonly default: {};
135
- };
136
- readonly metadata: {
137
- readonly type: "object";
138
- readonly default: {};
139
- readonly "x-ui-hidden": true;
140
- };
34
+ };
35
+ readonly tasks: {
36
+ readonly type: "array";
37
+ readonly items: {
38
+ readonly type: "string";
141
39
  };
142
- readonly required: readonly ["provider", "provider_config"];
143
- readonly format: "model";
144
- readonly additionalProperties: false;
145
- } & {
146
- readonly format: import(".").TypeModelSemantic;
147
- }];
148
- } & {
149
- readonly format: import(".").TypeModelSemantic;
40
+ readonly "x-ui-editor": "multiselect";
41
+ };
42
+ readonly title: {
43
+ readonly type: "string";
44
+ };
45
+ readonly description: {
46
+ readonly type: "string";
47
+ readonly "x-ui-editor": "textarea";
48
+ };
49
+ readonly provider: {
50
+ readonly type: "string";
51
+ };
52
+ readonly provider_config: {
53
+ readonly type: "object";
54
+ readonly default: {};
55
+ };
56
+ readonly metadata: {
57
+ readonly type: "object";
58
+ readonly default: {};
59
+ readonly "x-ui-hidden": true;
60
+ };
150
61
  };
62
+ readonly required: readonly ["provider", "provider_config"];
63
+ readonly format: "model";
64
+ readonly additionalProperties: true;
65
+ } & {
66
+ readonly format: import(".").TypeModelSemantic;
151
67
  }];
152
- readonly title: string | undefined;
153
- readonly description: string | undefined;
68
+ } & {
69
+ readonly format: import(".").TypeModelSemantic;
154
70
  };
155
71
  };
156
72
  readonly required: readonly ["text", "prompt", "model"];
@@ -170,8 +86,6 @@ export declare const TextRewriterOutputSchema: {
170
86
  };
171
87
  export type TextRewriterTaskInput = FromSchema<typeof TextRewriterInputSchema>;
172
88
  export type TextRewriterTaskOutput = FromSchema<typeof TextRewriterOutputSchema>;
173
- export type TextRewriterTaskExecuteInput = DeReplicateFromSchema<typeof TextRewriterInputSchema>;
174
- export type TextRewriterTaskExecuteOutput = DeReplicateFromSchema<typeof TextRewriterOutputSchema>;
175
89
  /**
176
90
  * This is a special case of text generation that takes a prompt and text to rewrite
177
91
  */
@@ -1 +1 @@
1
- {"version":3,"file":"TextRewriterTask.d.ts","sourceRoot":"","sources":["../../src/task/TextRewriterTask.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAA0B,MAAM,sBAAsB,CAAC;AAClG,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACvC,OAAO,EAAE,qBAAqB,EAAiC,MAAM,sBAAsB,CAAC;AAI5F,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiBD,CAAC;AAEpC,eAAO,MAAM,wBAAwB;;;;;;;;;;;CA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pC,MAAM,MAAM,qBAAqB,GAAG,UAAU,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAC/E,MAAM,MAAM,sBAAsB,GAAG,UAAU,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAEjF;;GAEG;AACH,qBAAa,gBAAiB,SAAQ,MAAM,CAAC,qBAAqB,EAAE,sBAAsB,CAAC;IACzF,OAAc,IAAI,SAAsB;IACxC,OAAc,QAAQ,SAAmB;IACzC,OAAc,KAAK,SAAmB;IACtC,OAAc,WAAW,SAAqE;WAChF,WAAW,IAAI,cAAc;WAG7B,YAAY,IAAI,cAAc;CAG7C;AAED;;;;;GAKG;AACH,eAAO,MAAM,YAAY,GAAI,OAAO,qBAAqB,EAAE,SAAS,kBAAkB;;EAErF,CAAC;AAEF,OAAO,QAAQ,sBAAsB,CAAC;IACpC,UAAU,QAAQ;QAChB,YAAY,EAAE,cAAc,CAAC,qBAAqB,EAAE,sBAAsB,EAAE,kBAAkB,CAAC,CAAC;KACjG;CACF"}
@@ -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 TextSummaryInputSchema: {
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 summarize";
30
16
  };
31
17
  readonly model: {
32
- readonly "x-replicate": true;
33
- readonly format?: string | undefined;
34
18
  readonly oneOf: readonly [{
35
- readonly oneOf: readonly [{
36
- readonly title: "Model";
37
- readonly description: `The model ${string}`;
38
- } & {
39
- readonly format: import(".").TypeModelSemantic;
40
- readonly type: "string";
41
- }, {
42
- readonly type: "object";
43
- readonly properties: {
44
- readonly model_id: {
45
- readonly type: "string";
46
- };
47
- readonly tasks: {
48
- readonly type: "array";
49
- readonly items: {
50
- readonly type: "string";
51
- };
52
- readonly "x-ui-editor": "multiselect";
53
- };
54
- readonly title: {
55
- readonly type: "string";
56
- };
57
- readonly description: {
58
- readonly type: "string";
59
- readonly "x-ui-editor": "textarea";
60
- };
61
- readonly provider: {
62
- readonly type: "string";
63
- };
64
- readonly provider_config: {
65
- readonly type: "object";
66
- readonly default: {};
67
- };
68
- readonly metadata: {
69
- readonly type: "object";
70
- readonly default: {};
71
- readonly "x-ui-hidden": true;
72
- };
73
- };
74
- readonly required: readonly ["provider", "provider_config"];
75
- readonly format: "model";
76
- readonly additionalProperties: false;
77
- } & {
78
- readonly format: import(".").TypeModelSemantic;
79
- }];
19
+ readonly title: "Model";
20
+ readonly description: `The model ${string}`;
80
21
  } & {
81
22
  readonly format: import(".").TypeModelSemantic;
23
+ readonly type: "string";
82
24
  }, {
83
- readonly type: "array";
84
- readonly items: {
85
- readonly oneOf: readonly [{
86
- readonly title: "Model";
87
- readonly description: `The model ${string}`;
88
- } & {
89
- readonly format: import(".").TypeModelSemantic;
25
+ readonly type: "object";
26
+ readonly properties: {
27
+ readonly model_id: {
90
28
  readonly type: "string";
91
- }, {
92
- readonly type: "object";
93
- readonly properties: {
94
- readonly model_id: {
95
- readonly type: "string";
96
- };
97
- readonly tasks: {
98
- readonly type: "array";
99
- readonly items: {
100
- readonly type: "string";
101
- };
102
- readonly "x-ui-editor": "multiselect";
103
- };
104
- readonly title: {
105
- readonly type: "string";
106
- };
107
- readonly description: {
108
- readonly type: "string";
109
- readonly "x-ui-editor": "textarea";
110
- };
111
- readonly provider: {
112
- readonly type: "string";
113
- };
114
- readonly provider_config: {
115
- readonly type: "object";
116
- readonly default: {};
117
- };
118
- readonly metadata: {
119
- readonly type: "object";
120
- readonly default: {};
121
- readonly "x-ui-hidden": true;
122
- };
29
+ };
30
+ readonly tasks: {
31
+ readonly type: "array";
32
+ readonly items: {
33
+ readonly type: "string";
123
34
  };
124
- readonly required: readonly ["provider", "provider_config"];
125
- readonly format: "model";
126
- readonly additionalProperties: false;
127
- } & {
128
- readonly format: import(".").TypeModelSemantic;
129
- }];
130
- } & {
131
- readonly format: import(".").TypeModelSemantic;
35
+ readonly "x-ui-editor": "multiselect";
36
+ };
37
+ readonly title: {
38
+ readonly type: "string";
39
+ };
40
+ readonly description: {
41
+ readonly type: "string";
42
+ readonly "x-ui-editor": "textarea";
43
+ };
44
+ readonly provider: {
45
+ readonly type: "string";
46
+ };
47
+ readonly provider_config: {
48
+ readonly type: "object";
49
+ readonly default: {};
50
+ };
51
+ readonly metadata: {
52
+ readonly type: "object";
53
+ readonly default: {};
54
+ readonly "x-ui-hidden": true;
55
+ };
132
56
  };
57
+ readonly required: readonly ["provider", "provider_config"];
58
+ readonly format: "model";
59
+ readonly additionalProperties: true;
60
+ } & {
61
+ readonly format: import(".").TypeModelSemantic;
133
62
  }];
134
- readonly title: string | undefined;
135
- readonly description: string | undefined;
63
+ } & {
64
+ readonly format: import(".").TypeModelSemantic;
136
65
  };
137
66
  };
138
67
  readonly required: readonly ["text", "model"];
@@ -152,8 +81,6 @@ export declare const TextSummaryOutputSchema: {
152
81
  };
153
82
  export type TextSummaryTaskInput = FromSchema<typeof TextSummaryInputSchema>;
154
83
  export type TextSummaryTaskOutput = FromSchema<typeof TextSummaryOutputSchema>;
155
- export type TextSummaryTaskExecuteInput = DeReplicateFromSchema<typeof TextSummaryInputSchema>;
156
- export type TextSummaryTaskExecuteOutput = DeReplicateFromSchema<typeof TextSummaryOutputSchema>;
157
84
  /**
158
85
  * This summarizes a piece of text
159
86
  */
@@ -1 +1 @@
1
- {"version":3,"file":"TextSummaryTask.d.ts","sourceRoot":"","sources":["../../src/task/TextSummaryTask.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