@workglow/ai-provider 0.0.126 → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (172) hide show
  1. package/dist/provider-anthropic/AnthropicProvider.d.ts +1 -1
  2. package/dist/provider-anthropic/AnthropicProvider.d.ts.map +1 -1
  3. package/dist/provider-anthropic/AnthropicQueuedProvider.d.ts +4 -4
  4. package/dist/provider-anthropic/AnthropicQueuedProvider.d.ts.map +1 -1
  5. package/dist/provider-anthropic/common/Anthropic_Client.d.ts.map +1 -1
  6. package/dist/provider-anthropic/common/Anthropic_CountTokens.d.ts.map +1 -1
  7. package/dist/provider-anthropic/common/Anthropic_JobRunFns.d.ts.map +1 -1
  8. package/dist/provider-anthropic/common/Anthropic_TextGeneration.d.ts.map +1 -1
  9. package/dist/provider-anthropic/common/Anthropic_TextRewriter.d.ts.map +1 -1
  10. package/dist/provider-anthropic/common/Anthropic_TextSummary.d.ts.map +1 -1
  11. package/dist/provider-anthropic/index.js +3 -4
  12. package/dist/provider-anthropic/index.js.map +3 -3
  13. package/dist/provider-anthropic/runtime.js +19 -291
  14. package/dist/provider-anthropic/runtime.js.map +11 -12
  15. package/dist/provider-chrome/common/WebBrowser_TextGeneration.d.ts.map +1 -1
  16. package/dist/provider-chrome/common/WebBrowser_TextLanguageDetection.d.ts.map +1 -1
  17. package/dist/provider-chrome/common/WebBrowser_TextRewriter.d.ts.map +1 -1
  18. package/dist/provider-chrome/common/WebBrowser_TextSummary.d.ts.map +1 -1
  19. package/dist/provider-chrome/common/WebBrowser_TextTranslation.d.ts.map +1 -1
  20. package/dist/provider-chrome/runtime.js +3 -97
  21. package/dist/provider-chrome/runtime.js.map +8 -8
  22. package/dist/provider-gemini/GoogleGeminiProvider.d.ts +1 -1
  23. package/dist/provider-gemini/GoogleGeminiProvider.d.ts.map +1 -1
  24. package/dist/provider-gemini/GoogleGeminiQueuedProvider.d.ts +4 -4
  25. package/dist/provider-gemini/GoogleGeminiQueuedProvider.d.ts.map +1 -1
  26. package/dist/provider-gemini/common/Gemini_CountTokens.d.ts.map +1 -1
  27. package/dist/provider-gemini/common/Gemini_JobRunFns.d.ts.map +1 -1
  28. package/dist/provider-gemini/common/Gemini_TextEmbedding.d.ts.map +1 -1
  29. package/dist/provider-gemini/common/Gemini_TextGeneration.d.ts.map +1 -1
  30. package/dist/provider-gemini/common/Gemini_TextRewriter.d.ts.map +1 -1
  31. package/dist/provider-gemini/common/Gemini_TextSummary.d.ts.map +1 -1
  32. package/dist/provider-gemini/index.js +3 -4
  33. package/dist/provider-gemini/index.js.map +3 -3
  34. package/dist/provider-gemini/runtime.js +12 -257
  35. package/dist/provider-gemini/runtime.js.map +11 -12
  36. package/dist/provider-hf-inference/HfInferenceProvider.d.ts +1 -1
  37. package/dist/provider-hf-inference/HfInferenceProvider.d.ts.map +1 -1
  38. package/dist/provider-hf-inference/HfInferenceQueuedProvider.d.ts +4 -4
  39. package/dist/provider-hf-inference/HfInferenceQueuedProvider.d.ts.map +1 -1
  40. package/dist/provider-hf-inference/common/HFI_Client.d.ts.map +1 -1
  41. package/dist/provider-hf-inference/common/HFI_JobRunFns.d.ts.map +1 -1
  42. package/dist/provider-hf-inference/common/HFI_TextEmbedding.d.ts.map +1 -1
  43. package/dist/provider-hf-inference/common/HFI_TextGeneration.d.ts.map +1 -1
  44. package/dist/provider-hf-inference/common/HFI_TextRewriter.d.ts.map +1 -1
  45. package/dist/provider-hf-inference/common/HFI_TextSummary.d.ts.map +1 -1
  46. package/dist/provider-hf-inference/index.js +3 -4
  47. package/dist/provider-hf-inference/index.js.map +3 -3
  48. package/dist/provider-hf-inference/runtime.js +13 -206
  49. package/dist/provider-hf-inference/runtime.js.map +11 -12
  50. package/dist/provider-hf-transformers/HuggingFaceTransformersProvider.d.ts +1 -1
  51. package/dist/provider-hf-transformers/HuggingFaceTransformersProvider.d.ts.map +1 -1
  52. package/dist/provider-hf-transformers/HuggingFaceTransformersQueuedProvider.d.ts +13 -3
  53. package/dist/provider-hf-transformers/HuggingFaceTransformersQueuedProvider.d.ts.map +1 -1
  54. package/dist/provider-hf-transformers/common/HFT_Constants.d.ts +4 -0
  55. package/dist/provider-hf-transformers/common/HFT_Constants.d.ts.map +1 -1
  56. package/dist/provider-hf-transformers/common/HFT_CountTokens.d.ts.map +1 -1
  57. package/dist/provider-hf-transformers/common/HFT_Download.d.ts.map +1 -1
  58. package/dist/provider-hf-transformers/common/HFT_ImageEmbedding.d.ts.map +1 -1
  59. package/dist/provider-hf-transformers/common/HFT_JobRunFns.d.ts +116 -87
  60. package/dist/provider-hf-transformers/common/HFT_JobRunFns.d.ts.map +1 -1
  61. package/dist/provider-hf-transformers/common/HFT_ModelInfo.d.ts.map +1 -1
  62. package/dist/provider-hf-transformers/common/HFT_ModelSchema.d.ts +30 -0
  63. package/dist/provider-hf-transformers/common/HFT_ModelSchema.d.ts.map +1 -1
  64. package/dist/provider-hf-transformers/common/HFT_OnnxDtypes.d.ts.map +1 -1
  65. package/dist/provider-hf-transformers/common/HFT_Pipeline.d.ts +9 -2
  66. package/dist/provider-hf-transformers/common/HFT_Pipeline.d.ts.map +1 -1
  67. package/dist/provider-hf-transformers/common/HFT_Streaming.d.ts +2 -2
  68. package/dist/provider-hf-transformers/common/HFT_Streaming.d.ts.map +1 -1
  69. package/dist/provider-hf-transformers/common/HFT_TextClassification.d.ts.map +1 -1
  70. package/dist/provider-hf-transformers/common/HFT_TextFillMask.d.ts.map +1 -1
  71. package/dist/provider-hf-transformers/common/HFT_TextGeneration.d.ts.map +1 -1
  72. package/dist/provider-hf-transformers/common/HFT_TextLanguageDetection.d.ts.map +1 -1
  73. package/dist/provider-hf-transformers/common/HFT_TextNamedEntityRecognition.d.ts.map +1 -1
  74. package/dist/provider-hf-transformers/common/HFT_TextQuestionAnswer.d.ts.map +1 -1
  75. package/dist/provider-hf-transformers/common/HFT_TextRewriter.d.ts.map +1 -1
  76. package/dist/provider-hf-transformers/common/HFT_TextSummary.d.ts.map +1 -1
  77. package/dist/provider-hf-transformers/common/HFT_TextTranslation.d.ts.map +1 -1
  78. package/dist/provider-hf-transformers/index.d.ts +0 -1
  79. package/dist/provider-hf-transformers/index.d.ts.map +1 -1
  80. package/dist/provider-hf-transformers/index.js +49 -177
  81. package/dist/provider-hf-transformers/index.js.map +8 -9
  82. package/dist/provider-hf-transformers/registerHuggingFaceTransformersWorker.d.ts.map +1 -1
  83. package/dist/provider-hf-transformers/runtime.d.ts +0 -1
  84. package/dist/provider-hf-transformers/runtime.d.ts.map +1 -1
  85. package/dist/provider-hf-transformers/runtime.js +208 -513
  86. package/dist/provider-hf-transformers/runtime.js.map +27 -29
  87. package/dist/provider-llamacpp/LlamaCppProvider.d.ts +1 -1
  88. package/dist/provider-llamacpp/LlamaCppProvider.d.ts.map +1 -1
  89. package/dist/provider-llamacpp/LlamaCppQueuedProvider.d.ts +1 -1
  90. package/dist/provider-llamacpp/LlamaCppQueuedProvider.d.ts.map +1 -1
  91. package/dist/provider-llamacpp/common/LlamaCpp_CountTokens.d.ts.map +1 -1
  92. package/dist/provider-llamacpp/common/LlamaCpp_JobRunFns.d.ts.map +1 -1
  93. package/dist/provider-llamacpp/common/LlamaCpp_ModelSchema.d.ts +15 -0
  94. package/dist/provider-llamacpp/common/LlamaCpp_ModelSchema.d.ts.map +1 -1
  95. package/dist/provider-llamacpp/common/LlamaCpp_Runtime.d.ts +10 -0
  96. package/dist/provider-llamacpp/common/LlamaCpp_Runtime.d.ts.map +1 -1
  97. package/dist/provider-llamacpp/common/LlamaCpp_StructuredGeneration.d.ts.map +1 -1
  98. package/dist/provider-llamacpp/common/LlamaCpp_TextEmbedding.d.ts.map +1 -1
  99. package/dist/provider-llamacpp/common/LlamaCpp_TextGeneration.d.ts.map +1 -1
  100. package/dist/provider-llamacpp/common/LlamaCpp_TextRewriter.d.ts.map +1 -1
  101. package/dist/provider-llamacpp/common/LlamaCpp_TextSummary.d.ts.map +1 -1
  102. package/dist/provider-llamacpp/index.js +6 -2
  103. package/dist/provider-llamacpp/index.js.map +4 -4
  104. package/dist/provider-llamacpp/runtime.js +82 -230
  105. package/dist/provider-llamacpp/runtime.js.map +13 -14
  106. package/dist/provider-ollama/OllamaProvider.d.ts +1 -1
  107. package/dist/provider-ollama/OllamaProvider.d.ts.map +1 -1
  108. package/dist/provider-ollama/OllamaQueuedProvider.d.ts +4 -4
  109. package/dist/provider-ollama/OllamaQueuedProvider.d.ts.map +1 -1
  110. package/dist/provider-ollama/common/Ollama_JobRunFns.browser.d.ts +13 -71
  111. package/dist/provider-ollama/common/Ollama_JobRunFns.browser.d.ts.map +1 -1
  112. package/dist/provider-ollama/common/Ollama_JobRunFns.d.ts +13 -71
  113. package/dist/provider-ollama/common/Ollama_JobRunFns.d.ts.map +1 -1
  114. package/dist/provider-ollama/common/Ollama_TextGeneration.d.ts.map +1 -1
  115. package/dist/provider-ollama/common/Ollama_TextRewriter.d.ts.map +1 -1
  116. package/dist/provider-ollama/common/Ollama_TextSummary.d.ts.map +1 -1
  117. package/dist/provider-ollama/index.browser.js +3 -4
  118. package/dist/provider-ollama/index.browser.js.map +3 -3
  119. package/dist/provider-ollama/index.js +3 -4
  120. package/dist/provider-ollama/index.js.map +3 -3
  121. package/dist/provider-ollama/runtime.browser.js +8 -179
  122. package/dist/provider-ollama/runtime.browser.js.map +9 -10
  123. package/dist/provider-ollama/runtime.js +8 -174
  124. package/dist/provider-ollama/runtime.js.map +9 -10
  125. package/dist/provider-openai/OpenAiProvider.d.ts +1 -1
  126. package/dist/provider-openai/OpenAiProvider.d.ts.map +1 -1
  127. package/dist/provider-openai/OpenAiQueuedProvider.d.ts +4 -4
  128. package/dist/provider-openai/OpenAiQueuedProvider.d.ts.map +1 -1
  129. package/dist/provider-openai/common/OpenAI_Client.d.ts.map +1 -1
  130. package/dist/provider-openai/common/OpenAI_CountTokens.browser.d.ts.map +1 -1
  131. package/dist/provider-openai/common/OpenAI_CountTokens.d.ts.map +1 -1
  132. package/dist/provider-openai/common/OpenAI_JobRunFns.browser.d.ts.map +1 -1
  133. package/dist/provider-openai/common/OpenAI_JobRunFns.d.ts.map +1 -1
  134. package/dist/provider-openai/common/OpenAI_TextEmbedding.d.ts.map +1 -1
  135. package/dist/provider-openai/common/OpenAI_TextGeneration.d.ts.map +1 -1
  136. package/dist/provider-openai/common/OpenAI_TextRewriter.d.ts.map +1 -1
  137. package/dist/provider-openai/common/OpenAI_TextSummary.d.ts.map +1 -1
  138. package/dist/provider-openai/index.browser.js +3 -4
  139. package/dist/provider-openai/index.browser.js.map +3 -3
  140. package/dist/provider-openai/index.js +3 -4
  141. package/dist/provider-openai/index.js.map +3 -3
  142. package/dist/provider-openai/runtime.browser.js +22 -224
  143. package/dist/provider-openai/runtime.browser.js.map +12 -13
  144. package/dist/provider-openai/runtime.js +22 -224
  145. package/dist/provider-openai/runtime.js.map +12 -13
  146. package/dist/provider-tf-mediapipe/TensorFlowMediaPipeQueuedProvider.d.ts +3 -3
  147. package/dist/provider-tf-mediapipe/TensorFlowMediaPipeQueuedProvider.d.ts.map +1 -1
  148. package/dist/provider-tf-mediapipe/common/TFMP_ImageEmbedding.d.ts.map +1 -1
  149. package/dist/provider-tf-mediapipe/common/TFMP_JobRunFns.d.ts +17 -10
  150. package/dist/provider-tf-mediapipe/common/TFMP_JobRunFns.d.ts.map +1 -1
  151. package/dist/provider-tf-mediapipe/common/TFMP_Unload.d.ts.map +1 -1
  152. package/dist/provider-tf-mediapipe/index.js +3 -3
  153. package/dist/provider-tf-mediapipe/index.js.map +3 -3
  154. package/dist/provider-tf-mediapipe/runtime.js +16 -5
  155. package/dist/provider-tf-mediapipe/runtime.js.map +5 -5
  156. package/package.json +15 -15
  157. package/dist/provider-anthropic/common/Anthropic_ToolCalling.d.ts +0 -10
  158. package/dist/provider-anthropic/common/Anthropic_ToolCalling.d.ts.map +0 -1
  159. package/dist/provider-gemini/common/Gemini_ToolCalling.d.ts +0 -10
  160. package/dist/provider-gemini/common/Gemini_ToolCalling.d.ts.map +0 -1
  161. package/dist/provider-hf-inference/common/HFI_ToolCalling.d.ts +0 -10
  162. package/dist/provider-hf-inference/common/HFI_ToolCalling.d.ts.map +0 -1
  163. package/dist/provider-hf-transformers/common/HFT_ToolCalling.d.ts +0 -10
  164. package/dist/provider-hf-transformers/common/HFT_ToolCalling.d.ts.map +0 -1
  165. package/dist/provider-hf-transformers/common/HFT_ToolMarkup.d.ts +0 -40
  166. package/dist/provider-hf-transformers/common/HFT_ToolMarkup.d.ts.map +0 -1
  167. package/dist/provider-llamacpp/common/LlamaCpp_ToolCalling.d.ts +0 -10
  168. package/dist/provider-llamacpp/common/LlamaCpp_ToolCalling.d.ts.map +0 -1
  169. package/dist/provider-ollama/common/Ollama_ToolCalling.d.ts +0 -16
  170. package/dist/provider-ollama/common/Ollama_ToolCalling.d.ts.map +0 -1
  171. package/dist/provider-openai/common/OpenAI_ToolCalling.d.ts +0 -10
  172. package/dist/provider-openai/common/OpenAI_ToolCalling.d.ts.map +0 -1
@@ -63,6 +63,8 @@ export declare const HFT_TASKS: {
63
63
  normalize?: boolean | undefined;
64
64
  pipeline: "feature-extraction";
65
65
  pooling?: "cls" | "last_token" | "mean" | undefined;
66
+ revision?: string | undefined;
67
+ seed?: number | undefined;
66
68
  use_external_data_format?: boolean | undefined;
67
69
  } | {
68
70
  device?: "cpu" | "gpu" | "metal" | "wasm" | "webgpu" | undefined;
@@ -77,6 +79,8 @@ export declare const HFT_TASKS: {
77
79
  normalize?: boolean | undefined;
78
80
  pipeline: "audio-classification" | "automatic-speech-recognition" | "background-removal" | "depth-estimation" | "document-question-answering" | "fill-mask" | "image-classification" | "image-feature-extraction" | "image-segmentation" | "image-to-image" | "image-to-text" | "object-detection" | "question-answering" | "summarization" | "text-classification" | "text-generation" | "text-to-speech" | "text2text-generation" | "token-classification" | "translation" | "zero-shot-audio-classification" | "zero-shot-classification" | "zero-shot-image-classification" | "zero-shot-object-detection";
79
81
  pooling?: "cls" | "last_token" | "mean" | undefined;
82
+ revision?: string | undefined;
83
+ seed?: number | undefined;
80
84
  use_external_data_format?: boolean | undefined;
81
85
  };
82
86
  tasks?: string[] | undefined;
@@ -134,6 +138,8 @@ export declare const HFT_TASKS: {
134
138
  normalize?: boolean | undefined;
135
139
  pipeline: "feature-extraction";
136
140
  pooling?: "cls" | "last_token" | "mean" | undefined;
141
+ revision?: string | undefined;
142
+ seed?: number | undefined;
137
143
  use_external_data_format?: boolean | undefined;
138
144
  } | {
139
145
  device?: "cpu" | "gpu" | "metal" | "wasm" | "webgpu" | undefined;
@@ -148,6 +154,8 @@ export declare const HFT_TASKS: {
148
154
  normalize?: boolean | undefined;
149
155
  pipeline: "audio-classification" | "automatic-speech-recognition" | "background-removal" | "depth-estimation" | "document-question-answering" | "fill-mask" | "image-classification" | "image-feature-extraction" | "image-segmentation" | "image-to-image" | "image-to-text" | "object-detection" | "question-answering" | "summarization" | "text-classification" | "text-generation" | "text-to-speech" | "text2text-generation" | "token-classification" | "translation" | "zero-shot-audio-classification" | "zero-shot-classification" | "zero-shot-image-classification" | "zero-shot-object-detection";
150
156
  pooling?: "cls" | "last_token" | "mean" | undefined;
157
+ revision?: string | undefined;
158
+ seed?: number | undefined;
151
159
  use_external_data_format?: boolean | undefined;
152
160
  };
153
161
  tasks?: string[] | undefined;
@@ -214,6 +222,8 @@ export declare const HFT_TASKS: {
214
222
  normalize?: boolean | undefined;
215
223
  pipeline: "feature-extraction";
216
224
  pooling?: "cls" | "last_token" | "mean" | undefined;
225
+ revision?: string | undefined;
226
+ seed?: number | undefined;
217
227
  use_external_data_format?: boolean | undefined;
218
228
  } | {
219
229
  device?: "cpu" | "gpu" | "metal" | "wasm" | "webgpu" | undefined;
@@ -228,6 +238,8 @@ export declare const HFT_TASKS: {
228
238
  normalize?: boolean | undefined;
229
239
  pipeline: "audio-classification" | "automatic-speech-recognition" | "background-removal" | "depth-estimation" | "document-question-answering" | "fill-mask" | "image-classification" | "image-feature-extraction" | "image-segmentation" | "image-to-image" | "image-to-text" | "object-detection" | "question-answering" | "summarization" | "text-classification" | "text-generation" | "text-to-speech" | "text2text-generation" | "token-classification" | "translation" | "zero-shot-audio-classification" | "zero-shot-classification" | "zero-shot-image-classification" | "zero-shot-object-detection";
230
240
  pooling?: "cls" | "last_token" | "mean" | undefined;
241
+ revision?: string | undefined;
242
+ seed?: number | undefined;
231
243
  use_external_data_format?: boolean | undefined;
232
244
  };
233
245
  tasks?: string[] | undefined;
@@ -249,9 +261,9 @@ export declare const HFT_TASKS: {
249
261
  tasks?: string[] | undefined;
250
262
  title?: string | undefined;
251
263
  };
252
- text: string | string[];
264
+ text: string;
253
265
  }, {
254
- count: number | number[];
266
+ count: number;
255
267
  }, {
256
268
  description?: string | undefined;
257
269
  metadata?: {
@@ -272,6 +284,8 @@ export declare const HFT_TASKS: {
272
284
  normalize?: boolean | undefined;
273
285
  pipeline: "feature-extraction";
274
286
  pooling?: "cls" | "last_token" | "mean" | undefined;
287
+ revision?: string | undefined;
288
+ seed?: number | undefined;
275
289
  use_external_data_format?: boolean | undefined;
276
290
  } | {
277
291
  device?: "cpu" | "gpu" | "metal" | "wasm" | "webgpu" | undefined;
@@ -286,6 +300,8 @@ export declare const HFT_TASKS: {
286
300
  normalize?: boolean | undefined;
287
301
  pipeline: "audio-classification" | "automatic-speech-recognition" | "background-removal" | "depth-estimation" | "document-question-answering" | "fill-mask" | "image-classification" | "image-feature-extraction" | "image-segmentation" | "image-to-image" | "image-to-text" | "object-detection" | "question-answering" | "summarization" | "text-classification" | "text-generation" | "text-to-speech" | "text2text-generation" | "token-classification" | "translation" | "zero-shot-audio-classification" | "zero-shot-classification" | "zero-shot-image-classification" | "zero-shot-object-detection";
288
302
  pooling?: "cls" | "last_token" | "mean" | undefined;
303
+ revision?: string | undefined;
304
+ seed?: number | undefined;
289
305
  use_external_data_format?: boolean | undefined;
290
306
  };
291
307
  tasks?: string[] | undefined;
@@ -330,6 +346,8 @@ export declare const HFT_TASKS: {
330
346
  normalize?: boolean | undefined;
331
347
  pipeline: "feature-extraction";
332
348
  pooling?: "cls" | "last_token" | "mean" | undefined;
349
+ revision?: string | undefined;
350
+ seed?: number | undefined;
333
351
  use_external_data_format?: boolean | undefined;
334
352
  } | {
335
353
  device?: "cpu" | "gpu" | "metal" | "wasm" | "webgpu" | undefined;
@@ -344,6 +362,8 @@ export declare const HFT_TASKS: {
344
362
  normalize?: boolean | undefined;
345
363
  pipeline: "audio-classification" | "automatic-speech-recognition" | "background-removal" | "depth-estimation" | "document-question-answering" | "fill-mask" | "image-classification" | "image-feature-extraction" | "image-segmentation" | "image-to-image" | "image-to-text" | "object-detection" | "question-answering" | "summarization" | "text-classification" | "text-generation" | "text-to-speech" | "text2text-generation" | "token-classification" | "translation" | "zero-shot-audio-classification" | "zero-shot-classification" | "zero-shot-image-classification" | "zero-shot-object-detection";
346
364
  pooling?: "cls" | "last_token" | "mean" | undefined;
365
+ revision?: string | undefined;
366
+ seed?: number | undefined;
347
367
  use_external_data_format?: boolean | undefined;
348
368
  };
349
369
  tasks?: string[] | undefined;
@@ -368,11 +388,11 @@ export declare const HFT_TASKS: {
368
388
  title?: string | undefined;
369
389
  };
370
390
  presencePenalty?: number | undefined;
371
- prompt: string | string[];
391
+ prompt: string;
372
392
  temperature?: number | undefined;
373
393
  topP?: number | undefined;
374
394
  }, {
375
- text: string | string[];
395
+ text: string;
376
396
  }, {
377
397
  description?: string | undefined;
378
398
  metadata?: {
@@ -393,6 +413,8 @@ export declare const HFT_TASKS: {
393
413
  normalize?: boolean | undefined;
394
414
  pipeline: "feature-extraction";
395
415
  pooling?: "cls" | "last_token" | "mean" | undefined;
416
+ revision?: string | undefined;
417
+ seed?: number | undefined;
396
418
  use_external_data_format?: boolean | undefined;
397
419
  } | {
398
420
  device?: "cpu" | "gpu" | "metal" | "wasm" | "webgpu" | undefined;
@@ -407,13 +429,15 @@ export declare const HFT_TASKS: {
407
429
  normalize?: boolean | undefined;
408
430
  pipeline: "audio-classification" | "automatic-speech-recognition" | "background-removal" | "depth-estimation" | "document-question-answering" | "fill-mask" | "image-classification" | "image-feature-extraction" | "image-segmentation" | "image-to-image" | "image-to-text" | "object-detection" | "question-answering" | "summarization" | "text-classification" | "text-generation" | "text-to-speech" | "text2text-generation" | "token-classification" | "translation" | "zero-shot-audio-classification" | "zero-shot-classification" | "zero-shot-image-classification" | "zero-shot-object-detection";
409
431
  pooling?: "cls" | "last_token" | "mean" | undefined;
432
+ revision?: string | undefined;
433
+ seed?: number | undefined;
410
434
  use_external_data_format?: boolean | undefined;
411
435
  };
412
436
  tasks?: string[] | undefined;
413
437
  title?: string | undefined;
414
438
  }>;
415
439
  readonly TextQuestionAnswerTask: import("@workglow/ai").AiProviderRunFn<{
416
- context: string | string[];
440
+ context: string;
417
441
  model: string | {
418
442
  [x: string]: unknown;
419
443
  description?: string | undefined;
@@ -429,9 +453,9 @@ export declare const HFT_TASKS: {
429
453
  tasks?: string[] | undefined;
430
454
  title?: string | undefined;
431
455
  };
432
- question: string | string[];
456
+ question: string;
433
457
  }, {
434
- text: string | string[];
458
+ text: string;
435
459
  }, {
436
460
  description?: string | undefined;
437
461
  metadata?: {
@@ -452,6 +476,8 @@ export declare const HFT_TASKS: {
452
476
  normalize?: boolean | undefined;
453
477
  pipeline: "feature-extraction";
454
478
  pooling?: "cls" | "last_token" | "mean" | undefined;
479
+ revision?: string | undefined;
480
+ seed?: number | undefined;
455
481
  use_external_data_format?: boolean | undefined;
456
482
  } | {
457
483
  device?: "cpu" | "gpu" | "metal" | "wasm" | "webgpu" | undefined;
@@ -466,6 +492,8 @@ export declare const HFT_TASKS: {
466
492
  normalize?: boolean | undefined;
467
493
  pipeline: "audio-classification" | "automatic-speech-recognition" | "background-removal" | "depth-estimation" | "document-question-answering" | "fill-mask" | "image-classification" | "image-feature-extraction" | "image-segmentation" | "image-to-image" | "image-to-text" | "object-detection" | "question-answering" | "summarization" | "text-classification" | "text-generation" | "text-to-speech" | "text2text-generation" | "token-classification" | "translation" | "zero-shot-audio-classification" | "zero-shot-classification" | "zero-shot-image-classification" | "zero-shot-object-detection";
468
494
  pooling?: "cls" | "last_token" | "mean" | undefined;
495
+ revision?: string | undefined;
496
+ seed?: number | undefined;
469
497
  use_external_data_format?: boolean | undefined;
470
498
  };
471
499
  tasks?: string[] | undefined;
@@ -488,14 +516,11 @@ export declare const HFT_TASKS: {
488
516
  tasks?: string[] | undefined;
489
517
  title?: string | undefined;
490
518
  };
491
- text: string | string[];
519
+ text: string;
492
520
  }, {
493
521
  languages: {
494
522
  language: string;
495
523
  score: number;
496
- }[][] | {
497
- language: string;
498
- score: number;
499
524
  }[];
500
525
  }, {
501
526
  description?: string | undefined;
@@ -517,6 +542,8 @@ export declare const HFT_TASKS: {
517
542
  normalize?: boolean | undefined;
518
543
  pipeline: "feature-extraction";
519
544
  pooling?: "cls" | "last_token" | "mean" | undefined;
545
+ revision?: string | undefined;
546
+ seed?: number | undefined;
520
547
  use_external_data_format?: boolean | undefined;
521
548
  } | {
522
549
  device?: "cpu" | "gpu" | "metal" | "wasm" | "webgpu" | undefined;
@@ -531,6 +558,8 @@ export declare const HFT_TASKS: {
531
558
  normalize?: boolean | undefined;
532
559
  pipeline: "audio-classification" | "automatic-speech-recognition" | "background-removal" | "depth-estimation" | "document-question-answering" | "fill-mask" | "image-classification" | "image-feature-extraction" | "image-segmentation" | "image-to-image" | "image-to-text" | "object-detection" | "question-answering" | "summarization" | "text-classification" | "text-generation" | "text-to-speech" | "text2text-generation" | "token-classification" | "translation" | "zero-shot-audio-classification" | "zero-shot-classification" | "zero-shot-image-classification" | "zero-shot-object-detection";
533
560
  pooling?: "cls" | "last_token" | "mean" | undefined;
561
+ revision?: string | undefined;
562
+ seed?: number | undefined;
534
563
  use_external_data_format?: boolean | undefined;
535
564
  };
536
565
  tasks?: string[] | undefined;
@@ -554,14 +583,11 @@ export declare const HFT_TASKS: {
554
583
  tasks?: string[] | undefined;
555
584
  title?: string | undefined;
556
585
  };
557
- text: string | string[];
586
+ text: string;
558
587
  }, {
559
588
  categories: {
560
589
  label: string;
561
590
  score: number;
562
- }[][] | {
563
- label: string;
564
- score: number;
565
591
  }[];
566
592
  }, {
567
593
  description?: string | undefined;
@@ -583,6 +609,8 @@ export declare const HFT_TASKS: {
583
609
  normalize?: boolean | undefined;
584
610
  pipeline: "feature-extraction";
585
611
  pooling?: "cls" | "last_token" | "mean" | undefined;
612
+ revision?: string | undefined;
613
+ seed?: number | undefined;
586
614
  use_external_data_format?: boolean | undefined;
587
615
  } | {
588
616
  device?: "cpu" | "gpu" | "metal" | "wasm" | "webgpu" | undefined;
@@ -597,6 +625,8 @@ export declare const HFT_TASKS: {
597
625
  normalize?: boolean | undefined;
598
626
  pipeline: "audio-classification" | "automatic-speech-recognition" | "background-removal" | "depth-estimation" | "document-question-answering" | "fill-mask" | "image-classification" | "image-feature-extraction" | "image-segmentation" | "image-to-image" | "image-to-text" | "object-detection" | "question-answering" | "summarization" | "text-classification" | "text-generation" | "text-to-speech" | "text2text-generation" | "token-classification" | "translation" | "zero-shot-audio-classification" | "zero-shot-classification" | "zero-shot-image-classification" | "zero-shot-object-detection";
599
627
  pooling?: "cls" | "last_token" | "mean" | undefined;
628
+ revision?: string | undefined;
629
+ seed?: number | undefined;
600
630
  use_external_data_format?: boolean | undefined;
601
631
  };
602
632
  tasks?: string[] | undefined;
@@ -618,16 +648,12 @@ export declare const HFT_TASKS: {
618
648
  tasks?: string[] | undefined;
619
649
  title?: string | undefined;
620
650
  };
621
- text: string | string[];
651
+ text: string;
622
652
  }, {
623
653
  predictions: {
624
654
  entity: string;
625
655
  score: number;
626
656
  sequence: string;
627
- }[][] | {
628
- entity: string;
629
- score: number;
630
- sequence: string;
631
657
  }[];
632
658
  }, {
633
659
  description?: string | undefined;
@@ -649,6 +675,8 @@ export declare const HFT_TASKS: {
649
675
  normalize?: boolean | undefined;
650
676
  pipeline: "feature-extraction";
651
677
  pooling?: "cls" | "last_token" | "mean" | undefined;
678
+ revision?: string | undefined;
679
+ seed?: number | undefined;
652
680
  use_external_data_format?: boolean | undefined;
653
681
  } | {
654
682
  device?: "cpu" | "gpu" | "metal" | "wasm" | "webgpu" | undefined;
@@ -663,6 +691,8 @@ export declare const HFT_TASKS: {
663
691
  normalize?: boolean | undefined;
664
692
  pipeline: "audio-classification" | "automatic-speech-recognition" | "background-removal" | "depth-estimation" | "document-question-answering" | "fill-mask" | "image-classification" | "image-feature-extraction" | "image-segmentation" | "image-to-image" | "image-to-text" | "object-detection" | "question-answering" | "summarization" | "text-classification" | "text-generation" | "text-to-speech" | "text2text-generation" | "token-classification" | "translation" | "zero-shot-audio-classification" | "zero-shot-classification" | "zero-shot-image-classification" | "zero-shot-object-detection";
665
693
  pooling?: "cls" | "last_token" | "mean" | undefined;
694
+ revision?: string | undefined;
695
+ seed?: number | undefined;
666
696
  use_external_data_format?: boolean | undefined;
667
697
  };
668
698
  tasks?: string[] | undefined;
@@ -685,16 +715,12 @@ export declare const HFT_TASKS: {
685
715
  tasks?: string[] | undefined;
686
716
  title?: string | undefined;
687
717
  };
688
- text: string | string[];
718
+ text: string;
689
719
  }, {
690
720
  entities: {
691
721
  entity: string;
692
722
  score: number;
693
723
  word: string;
694
- }[][] | {
695
- entity: string;
696
- score: number;
697
- word: string;
698
724
  }[];
699
725
  }, {
700
726
  description?: string | undefined;
@@ -716,6 +742,8 @@ export declare const HFT_TASKS: {
716
742
  normalize?: boolean | undefined;
717
743
  pipeline: "feature-extraction";
718
744
  pooling?: "cls" | "last_token" | "mean" | undefined;
745
+ revision?: string | undefined;
746
+ seed?: number | undefined;
719
747
  use_external_data_format?: boolean | undefined;
720
748
  } | {
721
749
  device?: "cpu" | "gpu" | "metal" | "wasm" | "webgpu" | undefined;
@@ -730,6 +758,8 @@ export declare const HFT_TASKS: {
730
758
  normalize?: boolean | undefined;
731
759
  pipeline: "audio-classification" | "automatic-speech-recognition" | "background-removal" | "depth-estimation" | "document-question-answering" | "fill-mask" | "image-classification" | "image-feature-extraction" | "image-segmentation" | "image-to-image" | "image-to-text" | "object-detection" | "question-answering" | "summarization" | "text-classification" | "text-generation" | "text-to-speech" | "text2text-generation" | "token-classification" | "translation" | "zero-shot-audio-classification" | "zero-shot-classification" | "zero-shot-image-classification" | "zero-shot-object-detection";
732
760
  pooling?: "cls" | "last_token" | "mean" | undefined;
761
+ revision?: string | undefined;
762
+ seed?: number | undefined;
733
763
  use_external_data_format?: boolean | undefined;
734
764
  };
735
765
  tasks?: string[] | undefined;
@@ -752,9 +782,9 @@ export declare const HFT_TASKS: {
752
782
  title?: string | undefined;
753
783
  };
754
784
  prompt: string;
755
- text: string | string[];
785
+ text: string;
756
786
  }, {
757
- text: string | string[];
787
+ text: string;
758
788
  }, {
759
789
  description?: string | undefined;
760
790
  metadata?: {
@@ -775,6 +805,8 @@ export declare const HFT_TASKS: {
775
805
  normalize?: boolean | undefined;
776
806
  pipeline: "feature-extraction";
777
807
  pooling?: "cls" | "last_token" | "mean" | undefined;
808
+ revision?: string | undefined;
809
+ seed?: number | undefined;
778
810
  use_external_data_format?: boolean | undefined;
779
811
  } | {
780
812
  device?: "cpu" | "gpu" | "metal" | "wasm" | "webgpu" | undefined;
@@ -789,6 +821,8 @@ export declare const HFT_TASKS: {
789
821
  normalize?: boolean | undefined;
790
822
  pipeline: "audio-classification" | "automatic-speech-recognition" | "background-removal" | "depth-estimation" | "document-question-answering" | "fill-mask" | "image-classification" | "image-feature-extraction" | "image-segmentation" | "image-to-image" | "image-to-text" | "object-detection" | "question-answering" | "summarization" | "text-classification" | "text-generation" | "text-to-speech" | "text2text-generation" | "token-classification" | "translation" | "zero-shot-audio-classification" | "zero-shot-classification" | "zero-shot-image-classification" | "zero-shot-object-detection";
791
823
  pooling?: "cls" | "last_token" | "mean" | undefined;
824
+ revision?: string | undefined;
825
+ seed?: number | undefined;
792
826
  use_external_data_format?: boolean | undefined;
793
827
  };
794
828
  tasks?: string[] | undefined;
@@ -810,9 +844,9 @@ export declare const HFT_TASKS: {
810
844
  tasks?: string[] | undefined;
811
845
  title?: string | undefined;
812
846
  };
813
- text: string | string[];
847
+ text: string;
814
848
  }, {
815
- text: string | string[];
849
+ text: string;
816
850
  }, {
817
851
  description?: string | undefined;
818
852
  metadata?: {
@@ -833,6 +867,8 @@ export declare const HFT_TASKS: {
833
867
  normalize?: boolean | undefined;
834
868
  pipeline: "feature-extraction";
835
869
  pooling?: "cls" | "last_token" | "mean" | undefined;
870
+ revision?: string | undefined;
871
+ seed?: number | undefined;
836
872
  use_external_data_format?: boolean | undefined;
837
873
  } | {
838
874
  device?: "cpu" | "gpu" | "metal" | "wasm" | "webgpu" | undefined;
@@ -847,6 +883,8 @@ export declare const HFT_TASKS: {
847
883
  normalize?: boolean | undefined;
848
884
  pipeline: "audio-classification" | "automatic-speech-recognition" | "background-removal" | "depth-estimation" | "document-question-answering" | "fill-mask" | "image-classification" | "image-feature-extraction" | "image-segmentation" | "image-to-image" | "image-to-text" | "object-detection" | "question-answering" | "summarization" | "text-classification" | "text-generation" | "text-to-speech" | "text2text-generation" | "token-classification" | "translation" | "zero-shot-audio-classification" | "zero-shot-classification" | "zero-shot-image-classification" | "zero-shot-object-detection";
849
885
  pooling?: "cls" | "last_token" | "mean" | undefined;
886
+ revision?: string | undefined;
887
+ seed?: number | undefined;
850
888
  use_external_data_format?: boolean | undefined;
851
889
  };
852
890
  tasks?: string[] | undefined;
@@ -870,10 +908,10 @@ export declare const HFT_TASKS: {
870
908
  };
871
909
  source_lang: string;
872
910
  target_lang: string;
873
- text: string | string[];
911
+ text: string;
874
912
  }, {
875
913
  target_lang: string;
876
- text: string | string[];
914
+ text: string;
877
915
  }, {
878
916
  description?: string | undefined;
879
917
  metadata?: {
@@ -894,6 +932,8 @@ export declare const HFT_TASKS: {
894
932
  normalize?: boolean | undefined;
895
933
  pipeline: "feature-extraction";
896
934
  pooling?: "cls" | "last_token" | "mean" | undefined;
935
+ revision?: string | undefined;
936
+ seed?: number | undefined;
897
937
  use_external_data_format?: boolean | undefined;
898
938
  } | {
899
939
  device?: "cpu" | "gpu" | "metal" | "wasm" | "webgpu" | undefined;
@@ -908,6 +948,8 @@ export declare const HFT_TASKS: {
908
948
  normalize?: boolean | undefined;
909
949
  pipeline: "audio-classification" | "automatic-speech-recognition" | "background-removal" | "depth-estimation" | "document-question-answering" | "fill-mask" | "image-classification" | "image-feature-extraction" | "image-segmentation" | "image-to-image" | "image-to-text" | "object-detection" | "question-answering" | "summarization" | "text-classification" | "text-generation" | "text-to-speech" | "text2text-generation" | "token-classification" | "translation" | "zero-shot-audio-classification" | "zero-shot-classification" | "zero-shot-image-classification" | "zero-shot-object-detection";
910
950
  pooling?: "cls" | "last_token" | "mean" | undefined;
951
+ revision?: string | undefined;
952
+ seed?: number | undefined;
911
953
  use_external_data_format?: boolean | undefined;
912
954
  };
913
955
  tasks?: string[] | undefined;
@@ -979,6 +1021,8 @@ export declare const HFT_TASKS: {
979
1021
  normalize?: boolean | undefined;
980
1022
  pipeline: "feature-extraction";
981
1023
  pooling?: "cls" | "last_token" | "mean" | undefined;
1024
+ revision?: string | undefined;
1025
+ seed?: number | undefined;
982
1026
  use_external_data_format?: boolean | undefined;
983
1027
  } | {
984
1028
  device?: "cpu" | "gpu" | "metal" | "wasm" | "webgpu" | undefined;
@@ -993,6 +1037,8 @@ export declare const HFT_TASKS: {
993
1037
  normalize?: boolean | undefined;
994
1038
  pipeline: "audio-classification" | "automatic-speech-recognition" | "background-removal" | "depth-estimation" | "document-question-answering" | "fill-mask" | "image-classification" | "image-feature-extraction" | "image-segmentation" | "image-to-image" | "image-to-text" | "object-detection" | "question-answering" | "summarization" | "text-classification" | "text-generation" | "text-to-speech" | "text2text-generation" | "token-classification" | "translation" | "zero-shot-audio-classification" | "zero-shot-classification" | "zero-shot-image-classification" | "zero-shot-object-detection";
995
1039
  pooling?: "cls" | "last_token" | "mean" | undefined;
1040
+ revision?: string | undefined;
1041
+ seed?: number | undefined;
996
1042
  use_external_data_format?: boolean | undefined;
997
1043
  };
998
1044
  tasks?: string[] | undefined;
@@ -1051,6 +1097,8 @@ export declare const HFT_TASKS: {
1051
1097
  normalize?: boolean | undefined;
1052
1098
  pipeline: "feature-extraction";
1053
1099
  pooling?: "cls" | "last_token" | "mean" | undefined;
1100
+ revision?: string | undefined;
1101
+ seed?: number | undefined;
1054
1102
  use_external_data_format?: boolean | undefined;
1055
1103
  } | {
1056
1104
  device?: "cpu" | "gpu" | "metal" | "wasm" | "webgpu" | undefined;
@@ -1065,6 +1113,8 @@ export declare const HFT_TASKS: {
1065
1113
  normalize?: boolean | undefined;
1066
1114
  pipeline: "audio-classification" | "automatic-speech-recognition" | "background-removal" | "depth-estimation" | "document-question-answering" | "fill-mask" | "image-classification" | "image-feature-extraction" | "image-segmentation" | "image-to-image" | "image-to-text" | "object-detection" | "question-answering" | "summarization" | "text-classification" | "text-generation" | "text-to-speech" | "text2text-generation" | "token-classification" | "translation" | "zero-shot-audio-classification" | "zero-shot-classification" | "zero-shot-image-classification" | "zero-shot-object-detection";
1067
1115
  pooling?: "cls" | "last_token" | "mean" | undefined;
1116
+ revision?: string | undefined;
1117
+ seed?: number | undefined;
1068
1118
  use_external_data_format?: boolean | undefined;
1069
1119
  };
1070
1120
  tasks?: string[] | undefined;
@@ -1122,6 +1172,8 @@ export declare const HFT_TASKS: {
1122
1172
  normalize?: boolean | undefined;
1123
1173
  pipeline: "feature-extraction";
1124
1174
  pooling?: "cls" | "last_token" | "mean" | undefined;
1175
+ revision?: string | undefined;
1176
+ seed?: number | undefined;
1125
1177
  use_external_data_format?: boolean | undefined;
1126
1178
  } | {
1127
1179
  device?: "cpu" | "gpu" | "metal" | "wasm" | "webgpu" | undefined;
@@ -1136,13 +1188,28 @@ export declare const HFT_TASKS: {
1136
1188
  normalize?: boolean | undefined;
1137
1189
  pipeline: "audio-classification" | "automatic-speech-recognition" | "background-removal" | "depth-estimation" | "document-question-answering" | "fill-mask" | "image-classification" | "image-feature-extraction" | "image-segmentation" | "image-to-image" | "image-to-text" | "object-detection" | "question-answering" | "summarization" | "text-classification" | "text-generation" | "text-to-speech" | "text2text-generation" | "token-classification" | "translation" | "zero-shot-audio-classification" | "zero-shot-classification" | "zero-shot-image-classification" | "zero-shot-object-detection";
1138
1190
  pooling?: "cls" | "last_token" | "mean" | undefined;
1191
+ revision?: string | undefined;
1192
+ seed?: number | undefined;
1139
1193
  use_external_data_format?: boolean | undefined;
1140
1194
  };
1141
1195
  tasks?: string[] | undefined;
1142
1196
  title?: string | undefined;
1143
1197
  }>;
1144
1198
  readonly ImageEmbeddingTask: import("@workglow/ai").AiProviderRunFn<{
1145
- image: string | {
1199
+ image: string | (string | {
1200
+ channels: number;
1201
+ data: {
1202
+ [x: string]: unknown;
1203
+ } | {
1204
+ channels: number;
1205
+ data: number[];
1206
+ height: number;
1207
+ rawChannels?: number | undefined;
1208
+ width: number;
1209
+ };
1210
+ height: number;
1211
+ width: number;
1212
+ })[] | {
1146
1213
  channels: number;
1147
1214
  data: {
1148
1215
  [x: string]: unknown;
@@ -1172,7 +1239,7 @@ export declare const HFT_TASKS: {
1172
1239
  title?: string | undefined;
1173
1240
  };
1174
1241
  }, {
1175
- vector: import("@workglow/util/schema").TypedArray;
1242
+ vector: import("@workglow/util/schema").TypedArray[] | import("@workglow/util/schema").TypedArray;
1176
1243
  }, {
1177
1244
  description?: string | undefined;
1178
1245
  metadata?: {
@@ -1193,6 +1260,8 @@ export declare const HFT_TASKS: {
1193
1260
  normalize?: boolean | undefined;
1194
1261
  pipeline: "feature-extraction";
1195
1262
  pooling?: "cls" | "last_token" | "mean" | undefined;
1263
+ revision?: string | undefined;
1264
+ seed?: number | undefined;
1196
1265
  use_external_data_format?: boolean | undefined;
1197
1266
  } | {
1198
1267
  device?: "cpu" | "gpu" | "metal" | "wasm" | "webgpu" | undefined;
@@ -1207,6 +1276,8 @@ export declare const HFT_TASKS: {
1207
1276
  normalize?: boolean | undefined;
1208
1277
  pipeline: "audio-classification" | "automatic-speech-recognition" | "background-removal" | "depth-estimation" | "document-question-answering" | "fill-mask" | "image-classification" | "image-feature-extraction" | "image-segmentation" | "image-to-image" | "image-to-text" | "object-detection" | "question-answering" | "summarization" | "text-classification" | "text-generation" | "text-to-speech" | "text2text-generation" | "token-classification" | "translation" | "zero-shot-audio-classification" | "zero-shot-classification" | "zero-shot-image-classification" | "zero-shot-object-detection";
1209
1278
  pooling?: "cls" | "last_token" | "mean" | undefined;
1279
+ revision?: string | undefined;
1280
+ seed?: number | undefined;
1210
1281
  use_external_data_format?: boolean | undefined;
1211
1282
  };
1212
1283
  tasks?: string[] | undefined;
@@ -1272,6 +1343,8 @@ export declare const HFT_TASKS: {
1272
1343
  normalize?: boolean | undefined;
1273
1344
  pipeline: "feature-extraction";
1274
1345
  pooling?: "cls" | "last_token" | "mean" | undefined;
1346
+ revision?: string | undefined;
1347
+ seed?: number | undefined;
1275
1348
  use_external_data_format?: boolean | undefined;
1276
1349
  } | {
1277
1350
  device?: "cpu" | "gpu" | "metal" | "wasm" | "webgpu" | undefined;
@@ -1286,6 +1359,8 @@ export declare const HFT_TASKS: {
1286
1359
  normalize?: boolean | undefined;
1287
1360
  pipeline: "audio-classification" | "automatic-speech-recognition" | "background-removal" | "depth-estimation" | "document-question-answering" | "fill-mask" | "image-classification" | "image-feature-extraction" | "image-segmentation" | "image-to-image" | "image-to-text" | "object-detection" | "question-answering" | "summarization" | "text-classification" | "text-generation" | "text-to-speech" | "text2text-generation" | "token-classification" | "translation" | "zero-shot-audio-classification" | "zero-shot-classification" | "zero-shot-image-classification" | "zero-shot-object-detection";
1288
1361
  pooling?: "cls" | "last_token" | "mean" | undefined;
1362
+ revision?: string | undefined;
1363
+ seed?: number | undefined;
1289
1364
  use_external_data_format?: boolean | undefined;
1290
1365
  };
1291
1366
  tasks?: string[] | undefined;
@@ -1363,6 +1438,8 @@ export declare const HFT_TASKS: {
1363
1438
  normalize?: boolean | undefined;
1364
1439
  pipeline: "feature-extraction";
1365
1440
  pooling?: "cls" | "last_token" | "mean" | undefined;
1441
+ revision?: string | undefined;
1442
+ seed?: number | undefined;
1366
1443
  use_external_data_format?: boolean | undefined;
1367
1444
  } | {
1368
1445
  device?: "cpu" | "gpu" | "metal" | "wasm" | "webgpu" | undefined;
@@ -1377,60 +1454,8 @@ export declare const HFT_TASKS: {
1377
1454
  normalize?: boolean | undefined;
1378
1455
  pipeline: "audio-classification" | "automatic-speech-recognition" | "background-removal" | "depth-estimation" | "document-question-answering" | "fill-mask" | "image-classification" | "image-feature-extraction" | "image-segmentation" | "image-to-image" | "image-to-text" | "object-detection" | "question-answering" | "summarization" | "text-classification" | "text-generation" | "text-to-speech" | "text2text-generation" | "token-classification" | "translation" | "zero-shot-audio-classification" | "zero-shot-classification" | "zero-shot-image-classification" | "zero-shot-object-detection";
1379
1456
  pooling?: "cls" | "last_token" | "mean" | undefined;
1380
- use_external_data_format?: boolean | undefined;
1381
- };
1382
- tasks?: string[] | undefined;
1383
- title?: string | undefined;
1384
- }>;
1385
- readonly ToolCallingTask: import("@workglow/ai").AiProviderRunFn<import("@workglow/ai").ToolCallingTaskInput, {
1386
- text: string | string[];
1387
- toolCalls: {
1388
- id: string;
1389
- input: {
1390
- [x: string]: unknown;
1391
- };
1392
- name: string;
1393
- }[] | {
1394
- id: string;
1395
- input: {
1396
- [x: string]: unknown;
1397
- };
1398
- name: string;
1399
- };
1400
- }, {
1401
- description?: string | undefined;
1402
- metadata?: {
1403
- [x: string]: unknown;
1404
- } | undefined;
1405
- model_id?: string | undefined;
1406
- provider: "HF_TRANSFORMERS_ONNX";
1407
- provider_config: {
1408
- device?: "cpu" | "gpu" | "metal" | "wasm" | "webgpu" | undefined;
1409
- dtype?: "auto" | "bnb4" | "fp16" | "fp32" | "int8" | "q4" | "q4f16" | "q8" | "uint8" | undefined;
1410
- execution_providers?: string[] | undefined;
1411
- inter_op_num_threads?: number | undefined;
1412
- intra_op_num_threads?: number | undefined;
1413
- language_style?: string | undefined;
1414
- model_path: string;
1415
- mrl?: boolean | undefined;
1416
- native_dimensions: number;
1417
- normalize?: boolean | undefined;
1418
- pipeline: "feature-extraction";
1419
- pooling?: "cls" | "last_token" | "mean" | undefined;
1420
- use_external_data_format?: boolean | undefined;
1421
- } | {
1422
- device?: "cpu" | "gpu" | "metal" | "wasm" | "webgpu" | undefined;
1423
- dtype?: "auto" | "bnb4" | "fp16" | "fp32" | "int8" | "q4" | "q4f16" | "q8" | "uint8" | undefined;
1424
- execution_providers?: string[] | undefined;
1425
- inter_op_num_threads?: number | undefined;
1426
- intra_op_num_threads?: number | undefined;
1427
- language_style?: string | undefined;
1428
- model_path: string;
1429
- mrl?: boolean | undefined;
1430
- native_dimensions?: number | undefined;
1431
- normalize?: boolean | undefined;
1432
- pipeline: "audio-classification" | "automatic-speech-recognition" | "background-removal" | "depth-estimation" | "document-question-answering" | "fill-mask" | "image-classification" | "image-feature-extraction" | "image-segmentation" | "image-to-image" | "image-to-text" | "object-detection" | "question-answering" | "summarization" | "text-classification" | "text-generation" | "text-to-speech" | "text2text-generation" | "token-classification" | "translation" | "zero-shot-audio-classification" | "zero-shot-classification" | "zero-shot-image-classification" | "zero-shot-object-detection";
1433
- pooling?: "cls" | "last_token" | "mean" | undefined;
1457
+ revision?: string | undefined;
1458
+ seed?: number | undefined;
1434
1459
  use_external_data_format?: boolean | undefined;
1435
1460
  };
1436
1461
  tasks?: string[] | undefined;
@@ -1482,6 +1507,8 @@ export declare const HFT_TASKS: {
1482
1507
  normalize?: boolean | undefined;
1483
1508
  pipeline: "feature-extraction";
1484
1509
  pooling?: "cls" | "last_token" | "mean" | undefined;
1510
+ revision?: string | undefined;
1511
+ seed?: number | undefined;
1485
1512
  use_external_data_format?: boolean | undefined;
1486
1513
  } | {
1487
1514
  device?: "cpu" | "gpu" | "metal" | "wasm" | "webgpu" | undefined;
@@ -1496,6 +1523,8 @@ export declare const HFT_TASKS: {
1496
1523
  normalize?: boolean | undefined;
1497
1524
  pipeline: "audio-classification" | "automatic-speech-recognition" | "background-removal" | "depth-estimation" | "document-question-answering" | "fill-mask" | "image-classification" | "image-feature-extraction" | "image-segmentation" | "image-to-image" | "image-to-text" | "object-detection" | "question-answering" | "summarization" | "text-classification" | "text-generation" | "text-to-speech" | "text2text-generation" | "token-classification" | "translation" | "zero-shot-audio-classification" | "zero-shot-classification" | "zero-shot-image-classification" | "zero-shot-object-detection";
1498
1525
  pooling?: "cls" | "last_token" | "mean" | undefined;
1526
+ revision?: string | undefined;
1527
+ seed?: number | undefined;
1499
1528
  use_external_data_format?: boolean | undefined;
1500
1529
  };
1501
1530
  tasks?: string[] | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"HFT_JobRunFns.d.ts","sourceRoot":"","sources":["../../../src/provider-hf-transformers/common/HFT_JobRunFns.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,uBAAuB,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAChF,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,mBAAmB,CAAC;AA6BvE;;;;GAIG;AACH,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,MAAM,CACrC,MAAM,EACN,uBAAuB,CAAC,GAAG,EAAE,GAAG,EAAE,6BAA6B,CAAC,CAGjE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"HFT_ModelInfo.d.ts","sourceRoot":"","sources":["../../../src/provider-hf-transformers/common/HFT_ModelInfo.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAE7F,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,mBAAmB,CAAC;AAIvE,eAAO,MAAM,aAAa,EAAE,eAAe,CACzC,kBAAkB,EAClB,mBAAmB,EACnB,6BAA6B,CA2E9B,CAAC"}
1
+ {"version":3,"file":"HFT_ModelInfo.d.ts","sourceRoot":"","sources":["../../../src/provider-hf-transformers/common/HFT_ModelInfo.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,KAAK,EAAE,eAAe,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAE7F,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,mBAAmB,CAAC;AAIvE,eAAO,MAAM,aAAa,EAAE,eAAe,CACzC,kBAAkB,EAClB,mBAAmB,EACnB,6BAA6B,CA2E9B,CAAC"}