@workglow/ai-provider 0.0.121 → 0.0.122

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 (541) hide show
  1. package/README.md +30 -67
  2. package/dist/common/HfModelSearch.d.ts +32 -0
  3. package/dist/common/HfModelSearch.d.ts.map +1 -0
  4. package/dist/common/PipelineTaskMapping.d.ts +12 -0
  5. package/dist/common/PipelineTaskMapping.d.ts.map +1 -0
  6. package/dist/{anthropic → provider-anthropic}/AnthropicProvider.d.ts +2 -14
  7. package/dist/provider-anthropic/AnthropicProvider.d.ts.map +1 -0
  8. package/dist/provider-anthropic/AnthropicQueuedProvider.d.ts +16 -0
  9. package/dist/provider-anthropic/AnthropicQueuedProvider.d.ts.map +1 -0
  10. package/dist/provider-anthropic/common/Anthropic_Client.d.ts +13 -0
  11. package/dist/provider-anthropic/common/Anthropic_Client.d.ts.map +1 -0
  12. package/dist/provider-anthropic/common/Anthropic_Constants.d.ts.map +1 -0
  13. package/dist/provider-anthropic/common/Anthropic_CountTokens.d.ts +10 -0
  14. package/dist/provider-anthropic/common/Anthropic_CountTokens.d.ts.map +1 -0
  15. package/dist/provider-anthropic/common/Anthropic_JobRunFns.d.ts +12 -0
  16. package/dist/provider-anthropic/common/Anthropic_JobRunFns.d.ts.map +1 -0
  17. package/dist/provider-anthropic/common/Anthropic_ModelInfo.d.ts +9 -0
  18. package/dist/provider-anthropic/common/Anthropic_ModelInfo.d.ts.map +1 -0
  19. package/dist/{anthropic → provider-anthropic}/common/Anthropic_ModelSchema.d.ts +31 -31
  20. package/dist/provider-anthropic/common/Anthropic_ModelSchema.d.ts.map +1 -0
  21. package/dist/provider-anthropic/common/Anthropic_ModelSearch.d.ts +8 -0
  22. package/dist/provider-anthropic/common/Anthropic_ModelSearch.d.ts.map +1 -0
  23. package/dist/provider-anthropic/common/Anthropic_StructuredGeneration.d.ts +10 -0
  24. package/dist/provider-anthropic/common/Anthropic_StructuredGeneration.d.ts.map +1 -0
  25. package/dist/provider-anthropic/common/Anthropic_TextGeneration.d.ts +10 -0
  26. package/dist/provider-anthropic/common/Anthropic_TextGeneration.d.ts.map +1 -0
  27. package/dist/provider-anthropic/common/Anthropic_TextRewriter.d.ts +10 -0
  28. package/dist/provider-anthropic/common/Anthropic_TextRewriter.d.ts.map +1 -0
  29. package/dist/provider-anthropic/common/Anthropic_TextSummary.d.ts +10 -0
  30. package/dist/provider-anthropic/common/Anthropic_TextSummary.d.ts.map +1 -0
  31. package/dist/provider-anthropic/common/Anthropic_ToolCalling.d.ts +10 -0
  32. package/dist/provider-anthropic/common/Anthropic_ToolCalling.d.ts.map +1 -0
  33. package/dist/{anthropic → provider-anthropic}/index.d.ts +1 -3
  34. package/dist/provider-anthropic/index.d.ts.map +1 -0
  35. package/dist/{index-60ev6k93.js → provider-anthropic/index.js} +43 -11
  36. package/dist/provider-anthropic/index.js.map +13 -0
  37. package/dist/provider-anthropic/registerAnthropic.d.ts +10 -0
  38. package/dist/provider-anthropic/registerAnthropic.d.ts.map +1 -0
  39. package/dist/provider-anthropic/registerAnthropicInline.d.ts +8 -0
  40. package/dist/provider-anthropic/registerAnthropicInline.d.ts.map +1 -0
  41. package/dist/provider-anthropic/registerAnthropicWorker.d.ts +7 -0
  42. package/dist/provider-anthropic/registerAnthropicWorker.d.ts.map +1 -0
  43. package/dist/provider-anthropic/runtime.d.ts +16 -0
  44. package/dist/provider-anthropic/runtime.d.ts.map +1 -0
  45. package/dist/{anthropic/index.js → provider-anthropic/runtime.js} +291 -177
  46. package/dist/provider-anthropic/runtime.js.map +24 -0
  47. package/dist/{web-browser → provider-chrome}/WebBrowserProvider.d.ts +2 -15
  48. package/dist/provider-chrome/WebBrowserProvider.d.ts.map +1 -0
  49. package/dist/provider-chrome/WebBrowserQueuedProvider.d.ts +16 -0
  50. package/dist/provider-chrome/WebBrowserQueuedProvider.d.ts.map +1 -0
  51. package/dist/provider-chrome/common/WebBrowser_ChromeHelpers.d.ts +31 -0
  52. package/dist/provider-chrome/common/WebBrowser_ChromeHelpers.d.ts.map +1 -0
  53. package/dist/provider-chrome/common/WebBrowser_Constants.d.ts.map +1 -0
  54. package/dist/provider-chrome/common/WebBrowser_JobRunFns.d.ts +10 -0
  55. package/dist/provider-chrome/common/WebBrowser_JobRunFns.d.ts.map +1 -0
  56. package/dist/provider-chrome/common/WebBrowser_ModelInfo.d.ts +9 -0
  57. package/dist/provider-chrome/common/WebBrowser_ModelInfo.d.ts.map +1 -0
  58. package/dist/{web-browser → provider-chrome}/common/WebBrowser_ModelSchema.d.ts +31 -31
  59. package/dist/provider-chrome/common/WebBrowser_ModelSchema.d.ts.map +1 -0
  60. package/dist/provider-chrome/common/WebBrowser_ModelSearch.d.ts +8 -0
  61. package/dist/provider-chrome/common/WebBrowser_ModelSearch.d.ts.map +1 -0
  62. package/dist/provider-chrome/common/WebBrowser_TextGeneration.d.ts +10 -0
  63. package/dist/provider-chrome/common/WebBrowser_TextGeneration.d.ts.map +1 -0
  64. package/dist/provider-chrome/common/WebBrowser_TextLanguageDetection.d.ts +9 -0
  65. package/dist/provider-chrome/common/WebBrowser_TextLanguageDetection.d.ts.map +1 -0
  66. package/dist/provider-chrome/common/WebBrowser_TextRewriter.d.ts +10 -0
  67. package/dist/provider-chrome/common/WebBrowser_TextRewriter.d.ts.map +1 -0
  68. package/dist/provider-chrome/common/WebBrowser_TextSummary.d.ts +10 -0
  69. package/dist/provider-chrome/common/WebBrowser_TextSummary.d.ts.map +1 -0
  70. package/dist/provider-chrome/common/WebBrowser_TextTranslation.d.ts +10 -0
  71. package/dist/provider-chrome/common/WebBrowser_TextTranslation.d.ts.map +1 -0
  72. package/dist/{web-browser → provider-chrome}/index.d.ts +1 -3
  73. package/dist/provider-chrome/index.d.ts.map +1 -0
  74. package/dist/provider-chrome/index.js +132 -0
  75. package/dist/provider-chrome/index.js.map +13 -0
  76. package/dist/provider-chrome/registerWebBrowser.d.ts +10 -0
  77. package/dist/provider-chrome/registerWebBrowser.d.ts.map +1 -0
  78. package/dist/provider-chrome/registerWebBrowserInline.d.ts +8 -0
  79. package/dist/provider-chrome/registerWebBrowserInline.d.ts.map +1 -0
  80. package/dist/provider-chrome/registerWebBrowserWorker.d.ts +7 -0
  81. package/dist/provider-chrome/registerWebBrowserWorker.d.ts.map +1 -0
  82. package/dist/provider-chrome/runtime.d.ts +14 -0
  83. package/dist/provider-chrome/runtime.d.ts.map +1 -0
  84. package/dist/{web-browser/index.js → provider-chrome/runtime.js} +260 -235
  85. package/dist/provider-chrome/runtime.js.map +23 -0
  86. package/dist/{google-gemini → provider-gemini}/GoogleGeminiProvider.d.ts +2 -15
  87. package/dist/provider-gemini/GoogleGeminiProvider.d.ts.map +1 -0
  88. package/dist/provider-gemini/GoogleGeminiQueuedProvider.d.ts +16 -0
  89. package/dist/provider-gemini/GoogleGeminiQueuedProvider.d.ts.map +1 -0
  90. package/dist/provider-gemini/common/Gemini_Client.d.ts +10 -0
  91. package/dist/provider-gemini/common/Gemini_Client.d.ts.map +1 -0
  92. package/dist/provider-gemini/common/Gemini_Constants.d.ts.map +1 -0
  93. package/dist/provider-gemini/common/Gemini_CountTokens.d.ts +10 -0
  94. package/dist/provider-gemini/common/Gemini_CountTokens.d.ts.map +1 -0
  95. package/dist/provider-gemini/common/Gemini_JobRunFns.d.ts +13 -0
  96. package/dist/provider-gemini/common/Gemini_JobRunFns.d.ts.map +1 -0
  97. package/dist/provider-gemini/common/Gemini_ModelInfo.d.ts +9 -0
  98. package/dist/provider-gemini/common/Gemini_ModelInfo.d.ts.map +1 -0
  99. package/dist/{google-gemini → provider-gemini}/common/Gemini_ModelSchema.d.ts +31 -31
  100. package/dist/provider-gemini/common/Gemini_ModelSchema.d.ts.map +1 -0
  101. package/dist/provider-gemini/common/Gemini_ModelSearch.d.ts +8 -0
  102. package/dist/provider-gemini/common/Gemini_ModelSearch.d.ts.map +1 -0
  103. package/dist/provider-gemini/common/Gemini_Schema.d.ts +11 -0
  104. package/dist/provider-gemini/common/Gemini_Schema.d.ts.map +1 -0
  105. package/dist/provider-gemini/common/Gemini_StructuredGeneration.d.ts +10 -0
  106. package/dist/provider-gemini/common/Gemini_StructuredGeneration.d.ts.map +1 -0
  107. package/dist/provider-gemini/common/Gemini_TextEmbedding.d.ts +9 -0
  108. package/dist/provider-gemini/common/Gemini_TextEmbedding.d.ts.map +1 -0
  109. package/dist/provider-gemini/common/Gemini_TextGeneration.d.ts +10 -0
  110. package/dist/provider-gemini/common/Gemini_TextGeneration.d.ts.map +1 -0
  111. package/dist/provider-gemini/common/Gemini_TextRewriter.d.ts +10 -0
  112. package/dist/provider-gemini/common/Gemini_TextRewriter.d.ts.map +1 -0
  113. package/dist/provider-gemini/common/Gemini_TextSummary.d.ts +10 -0
  114. package/dist/provider-gemini/common/Gemini_TextSummary.d.ts.map +1 -0
  115. package/dist/provider-gemini/common/Gemini_ToolCalling.d.ts +10 -0
  116. package/dist/provider-gemini/common/Gemini_ToolCalling.d.ts.map +1 -0
  117. package/dist/{google-gemini → provider-gemini}/index.d.ts +1 -3
  118. package/dist/provider-gemini/index.d.ts.map +1 -0
  119. package/dist/{index-8651nz8y.js → provider-gemini/index.js} +43 -11
  120. package/dist/provider-gemini/index.js.map +13 -0
  121. package/dist/provider-gemini/registerGemini.d.ts +10 -0
  122. package/dist/provider-gemini/registerGemini.d.ts.map +1 -0
  123. package/dist/provider-gemini/registerGeminiInline.d.ts +8 -0
  124. package/dist/provider-gemini/registerGeminiInline.d.ts.map +1 -0
  125. package/dist/{anthropic/Anthropic_Worker.d.ts → provider-gemini/registerGeminiWorker.d.ts} +2 -2
  126. package/dist/provider-gemini/registerGeminiWorker.d.ts.map +1 -0
  127. package/dist/provider-gemini/runtime.d.ts +16 -0
  128. package/dist/provider-gemini/runtime.d.ts.map +1 -0
  129. package/dist/{google-gemini/index.js → provider-gemini/runtime.js} +281 -173
  130. package/dist/provider-gemini/runtime.js.map +26 -0
  131. package/dist/provider-hf-inference/HfInferenceProvider.d.ts +2 -19
  132. package/dist/provider-hf-inference/HfInferenceProvider.d.ts.map +1 -1
  133. package/dist/provider-hf-inference/HfInferenceQueuedProvider.d.ts +16 -0
  134. package/dist/provider-hf-inference/HfInferenceQueuedProvider.d.ts.map +1 -0
  135. package/dist/provider-hf-inference/common/HFI_Client.d.ts +12 -0
  136. package/dist/provider-hf-inference/common/HFI_Client.d.ts.map +1 -0
  137. package/dist/provider-hf-inference/common/HFI_JobRunFns.d.ts +2 -11
  138. package/dist/provider-hf-inference/common/HFI_JobRunFns.d.ts.map +1 -1
  139. package/dist/provider-hf-inference/common/HFI_ModelInfo.d.ts +9 -0
  140. package/dist/provider-hf-inference/common/HFI_ModelInfo.d.ts.map +1 -0
  141. package/dist/provider-hf-inference/common/HFI_ModelSchema.d.ts +31 -31
  142. package/dist/provider-hf-inference/common/HFI_ModelSchema.d.ts.map +1 -1
  143. package/dist/provider-hf-inference/common/HFI_ModelSearch.d.ts +8 -0
  144. package/dist/provider-hf-inference/common/HFI_ModelSearch.d.ts.map +1 -0
  145. package/dist/provider-hf-inference/common/HFI_TextEmbedding.d.ts +9 -0
  146. package/dist/provider-hf-inference/common/HFI_TextEmbedding.d.ts.map +1 -0
  147. package/dist/provider-hf-inference/common/HFI_TextGeneration.d.ts +10 -0
  148. package/dist/provider-hf-inference/common/HFI_TextGeneration.d.ts.map +1 -0
  149. package/dist/provider-hf-inference/common/HFI_TextRewriter.d.ts +10 -0
  150. package/dist/provider-hf-inference/common/HFI_TextRewriter.d.ts.map +1 -0
  151. package/dist/provider-hf-inference/common/HFI_TextSummary.d.ts +10 -0
  152. package/dist/provider-hf-inference/common/HFI_TextSummary.d.ts.map +1 -0
  153. package/dist/provider-hf-inference/common/HFI_ToolCalling.d.ts +10 -0
  154. package/dist/provider-hf-inference/common/HFI_ToolCalling.d.ts.map +1 -0
  155. package/dist/provider-hf-inference/index.d.ts +1 -3
  156. package/dist/provider-hf-inference/index.d.ts.map +1 -1
  157. package/dist/provider-hf-inference/index.js +98 -411
  158. package/dist/provider-hf-inference/index.js.map +7 -5
  159. package/dist/provider-hf-inference/registerHfInference.d.ts +10 -0
  160. package/dist/provider-hf-inference/registerHfInference.d.ts.map +1 -0
  161. package/dist/provider-hf-inference/registerHfInferenceInline.d.ts +8 -0
  162. package/dist/provider-hf-inference/registerHfInferenceInline.d.ts.map +1 -0
  163. package/dist/provider-hf-inference/registerHfInferenceWorker.d.ts +7 -0
  164. package/dist/provider-hf-inference/registerHfInferenceWorker.d.ts.map +1 -0
  165. package/dist/provider-hf-inference/runtime.d.ts +16 -0
  166. package/dist/provider-hf-inference/runtime.d.ts.map +1 -0
  167. package/dist/provider-hf-inference/runtime.js +592 -0
  168. package/dist/provider-hf-inference/runtime.js.map +25 -0
  169. package/dist/{hf-transformers → provider-hf-transformers}/HuggingFaceTransformersProvider.d.ts +2 -21
  170. package/dist/provider-hf-transformers/HuggingFaceTransformersProvider.d.ts.map +1 -0
  171. package/dist/provider-hf-transformers/HuggingFaceTransformersQueuedProvider.d.ts +16 -0
  172. package/dist/provider-hf-transformers/HuggingFaceTransformersQueuedProvider.d.ts.map +1 -0
  173. package/dist/provider-hf-transformers/common/HFT_BackgroundRemoval.d.ts +12 -0
  174. package/dist/provider-hf-transformers/common/HFT_BackgroundRemoval.d.ts.map +1 -0
  175. package/dist/{hf-transformers → provider-hf-transformers}/common/HFT_Constants.d.ts +25 -23
  176. package/dist/provider-hf-transformers/common/HFT_Constants.d.ts.map +1 -0
  177. package/dist/provider-hf-transformers/common/HFT_CountTokens.d.ts +10 -0
  178. package/dist/provider-hf-transformers/common/HFT_CountTokens.d.ts.map +1 -0
  179. package/dist/provider-hf-transformers/common/HFT_Download.d.ts +13 -0
  180. package/dist/provider-hf-transformers/common/HFT_Download.d.ts.map +1 -0
  181. package/dist/provider-hf-transformers/common/HFT_ImageClassification.d.ts +13 -0
  182. package/dist/provider-hf-transformers/common/HFT_ImageClassification.d.ts.map +1 -0
  183. package/dist/provider-hf-transformers/common/HFT_ImageEmbedding.d.ts +12 -0
  184. package/dist/provider-hf-transformers/common/HFT_ImageEmbedding.d.ts.map +1 -0
  185. package/dist/provider-hf-transformers/common/HFT_ImageHelpers.d.ts +11 -0
  186. package/dist/provider-hf-transformers/common/HFT_ImageHelpers.d.ts.map +1 -0
  187. package/dist/provider-hf-transformers/common/HFT_ImageSegmentation.d.ts +12 -0
  188. package/dist/provider-hf-transformers/common/HFT_ImageSegmentation.d.ts.map +1 -0
  189. package/dist/provider-hf-transformers/common/HFT_ImageToText.d.ts +12 -0
  190. package/dist/provider-hf-transformers/common/HFT_ImageToText.d.ts.map +1 -0
  191. package/dist/provider-hf-transformers/common/HFT_InlineLifecycle.d.ts +7 -0
  192. package/dist/provider-hf-transformers/common/HFT_InlineLifecycle.d.ts.map +1 -0
  193. package/dist/{hf-transformers → provider-hf-transformers}/common/HFT_JobRunFns.d.ts +673 -789
  194. package/dist/provider-hf-transformers/common/HFT_JobRunFns.d.ts.map +1 -0
  195. package/dist/provider-hf-transformers/common/HFT_ModelInfo.d.ts +9 -0
  196. package/dist/provider-hf-transformers/common/HFT_ModelInfo.d.ts.map +1 -0
  197. package/dist/{hf-transformers → provider-hf-transformers}/common/HFT_ModelSchema.d.ts +37 -37
  198. package/dist/provider-hf-transformers/common/HFT_ModelSchema.d.ts.map +1 -0
  199. package/dist/provider-hf-transformers/common/HFT_ModelSearch.d.ts +8 -0
  200. package/dist/provider-hf-transformers/common/HFT_ModelSearch.d.ts.map +1 -0
  201. package/dist/provider-hf-transformers/common/HFT_ObjectDetection.d.ts +13 -0
  202. package/dist/provider-hf-transformers/common/HFT_ObjectDetection.d.ts.map +1 -0
  203. package/dist/provider-hf-transformers/common/HFT_OnnxDtypes.d.ts +23 -0
  204. package/dist/provider-hf-transformers/common/HFT_OnnxDtypes.d.ts.map +1 -0
  205. package/dist/provider-hf-transformers/common/HFT_Pipeline.d.ts +32 -0
  206. package/dist/provider-hf-transformers/common/HFT_Pipeline.d.ts.map +1 -0
  207. package/dist/provider-hf-transformers/common/HFT_Streaming.d.ts +24 -0
  208. package/dist/provider-hf-transformers/common/HFT_Streaming.d.ts.map +1 -0
  209. package/dist/provider-hf-transformers/common/HFT_StructuredGeneration.d.ts +10 -0
  210. package/dist/provider-hf-transformers/common/HFT_StructuredGeneration.d.ts.map +1 -0
  211. package/dist/provider-hf-transformers/common/HFT_TextClassification.d.ts +9 -0
  212. package/dist/provider-hf-transformers/common/HFT_TextClassification.d.ts.map +1 -0
  213. package/dist/provider-hf-transformers/common/HFT_TextEmbedding.d.ts +13 -0
  214. package/dist/provider-hf-transformers/common/HFT_TextEmbedding.d.ts.map +1 -0
  215. package/dist/provider-hf-transformers/common/HFT_TextFillMask.d.ts +9 -0
  216. package/dist/provider-hf-transformers/common/HFT_TextFillMask.d.ts.map +1 -0
  217. package/dist/provider-hf-transformers/common/HFT_TextGeneration.d.ts +14 -0
  218. package/dist/provider-hf-transformers/common/HFT_TextGeneration.d.ts.map +1 -0
  219. package/dist/provider-hf-transformers/common/HFT_TextLanguageDetection.d.ts +9 -0
  220. package/dist/provider-hf-transformers/common/HFT_TextLanguageDetection.d.ts.map +1 -0
  221. package/dist/provider-hf-transformers/common/HFT_TextNamedEntityRecognition.d.ts +9 -0
  222. package/dist/provider-hf-transformers/common/HFT_TextNamedEntityRecognition.d.ts.map +1 -0
  223. package/dist/provider-hf-transformers/common/HFT_TextOutput.d.ts +8 -0
  224. package/dist/provider-hf-transformers/common/HFT_TextOutput.d.ts.map +1 -0
  225. package/dist/provider-hf-transformers/common/HFT_TextQuestionAnswer.d.ts +14 -0
  226. package/dist/provider-hf-transformers/common/HFT_TextQuestionAnswer.d.ts.map +1 -0
  227. package/dist/provider-hf-transformers/common/HFT_TextRewriter.d.ts +14 -0
  228. package/dist/provider-hf-transformers/common/HFT_TextRewriter.d.ts.map +1 -0
  229. package/dist/provider-hf-transformers/common/HFT_TextSummary.d.ts +14 -0
  230. package/dist/provider-hf-transformers/common/HFT_TextSummary.d.ts.map +1 -0
  231. package/dist/provider-hf-transformers/common/HFT_TextTranslation.d.ts +14 -0
  232. package/dist/provider-hf-transformers/common/HFT_TextTranslation.d.ts.map +1 -0
  233. package/dist/provider-hf-transformers/common/HFT_ToolCalling.d.ts +10 -0
  234. package/dist/provider-hf-transformers/common/HFT_ToolCalling.d.ts.map +1 -0
  235. package/dist/provider-hf-transformers/common/HFT_ToolMarkup.d.ts +40 -0
  236. package/dist/provider-hf-transformers/common/HFT_ToolMarkup.d.ts.map +1 -0
  237. package/dist/provider-hf-transformers/common/HFT_Unload.d.ts +13 -0
  238. package/dist/provider-hf-transformers/common/HFT_Unload.d.ts.map +1 -0
  239. package/dist/{hf-transformers → provider-hf-transformers}/index.d.ts +4 -2
  240. package/dist/provider-hf-transformers/index.d.ts.map +1 -0
  241. package/dist/provider-hf-transformers/index.js +513 -0
  242. package/dist/provider-hf-transformers/index.js.map +16 -0
  243. package/dist/provider-hf-transformers/registerHuggingFaceTransformers.d.ts +14 -0
  244. package/dist/provider-hf-transformers/registerHuggingFaceTransformers.d.ts.map +1 -0
  245. package/dist/provider-hf-transformers/registerHuggingFaceTransformersInline.d.ts +15 -0
  246. package/dist/provider-hf-transformers/registerHuggingFaceTransformersInline.d.ts.map +1 -0
  247. package/dist/provider-hf-transformers/registerHuggingFaceTransformersWorker.d.ts +7 -0
  248. package/dist/provider-hf-transformers/registerHuggingFaceTransformersWorker.d.ts.map +1 -0
  249. package/dist/provider-hf-transformers/runtime.d.ts +21 -0
  250. package/dist/provider-hf-transformers/runtime.d.ts.map +1 -0
  251. package/dist/{index-j4g81r4k.js → provider-hf-transformers/runtime.js} +1561 -927
  252. package/dist/provider-hf-transformers/runtime.js.map +49 -0
  253. package/dist/provider-llamacpp/LlamaCppProvider.d.ts +2 -15
  254. package/dist/provider-llamacpp/LlamaCppProvider.d.ts.map +1 -1
  255. package/dist/provider-llamacpp/LlamaCppQueuedProvider.d.ts +16 -0
  256. package/dist/provider-llamacpp/LlamaCppQueuedProvider.d.ts.map +1 -0
  257. package/dist/provider-llamacpp/common/LlamaCpp_CountTokens.d.ts +10 -0
  258. package/dist/provider-llamacpp/common/LlamaCpp_CountTokens.d.ts.map +1 -0
  259. package/dist/provider-llamacpp/common/LlamaCpp_Download.d.ts +9 -0
  260. package/dist/provider-llamacpp/common/LlamaCpp_Download.d.ts.map +1 -0
  261. package/dist/provider-llamacpp/common/LlamaCpp_JobRunFns.d.ts +2 -18
  262. package/dist/provider-llamacpp/common/LlamaCpp_JobRunFns.d.ts.map +1 -1
  263. package/dist/provider-llamacpp/common/LlamaCpp_ModelInfo.d.ts +9 -0
  264. package/dist/provider-llamacpp/common/LlamaCpp_ModelInfo.d.ts.map +1 -0
  265. package/dist/provider-llamacpp/common/LlamaCpp_ModelSchema.d.ts +31 -31
  266. package/dist/provider-llamacpp/common/LlamaCpp_ModelSchema.d.ts.map +1 -1
  267. package/dist/provider-llamacpp/common/LlamaCpp_ModelSearch.d.ts +8 -0
  268. package/dist/provider-llamacpp/common/LlamaCpp_ModelSearch.d.ts.map +1 -0
  269. package/dist/provider-llamacpp/common/LlamaCpp_Runtime.d.ts +31 -0
  270. package/dist/provider-llamacpp/common/LlamaCpp_Runtime.d.ts.map +1 -0
  271. package/dist/provider-llamacpp/common/LlamaCpp_StructuredGeneration.d.ts +10 -0
  272. package/dist/provider-llamacpp/common/LlamaCpp_StructuredGeneration.d.ts.map +1 -0
  273. package/dist/provider-llamacpp/common/LlamaCpp_TextEmbedding.d.ts +9 -0
  274. package/dist/provider-llamacpp/common/LlamaCpp_TextEmbedding.d.ts.map +1 -0
  275. package/dist/provider-llamacpp/common/LlamaCpp_TextGeneration.d.ts +10 -0
  276. package/dist/provider-llamacpp/common/LlamaCpp_TextGeneration.d.ts.map +1 -0
  277. package/dist/provider-llamacpp/common/LlamaCpp_TextRewriter.d.ts +10 -0
  278. package/dist/provider-llamacpp/common/LlamaCpp_TextRewriter.d.ts.map +1 -0
  279. package/dist/provider-llamacpp/common/LlamaCpp_TextSummary.d.ts +10 -0
  280. package/dist/provider-llamacpp/common/LlamaCpp_TextSummary.d.ts.map +1 -0
  281. package/dist/provider-llamacpp/common/LlamaCpp_ToolCalling.d.ts +10 -0
  282. package/dist/provider-llamacpp/common/LlamaCpp_ToolCalling.d.ts.map +1 -0
  283. package/dist/provider-llamacpp/common/LlamaCpp_Unload.d.ts +9 -0
  284. package/dist/provider-llamacpp/common/LlamaCpp_Unload.d.ts.map +1 -0
  285. package/dist/provider-llamacpp/index.d.ts +1 -3
  286. package/dist/provider-llamacpp/index.d.ts.map +1 -1
  287. package/dist/provider-llamacpp/index.js +121 -725
  288. package/dist/provider-llamacpp/index.js.map +7 -5
  289. package/dist/provider-llamacpp/registerLlamaCpp.d.ts +10 -0
  290. package/dist/provider-llamacpp/registerLlamaCpp.d.ts.map +1 -0
  291. package/dist/provider-llamacpp/registerLlamaCppInline.d.ts +8 -0
  292. package/dist/provider-llamacpp/registerLlamaCppInline.d.ts.map +1 -0
  293. package/dist/provider-llamacpp/registerLlamaCppWorker.d.ts +7 -0
  294. package/dist/provider-llamacpp/registerLlamaCppWorker.d.ts.map +1 -0
  295. package/dist/provider-llamacpp/runtime.d.ts +16 -0
  296. package/dist/provider-llamacpp/runtime.d.ts.map +1 -0
  297. package/dist/provider-llamacpp/runtime.js +929 -0
  298. package/dist/provider-llamacpp/runtime.js.map +29 -0
  299. package/dist/provider-ollama/OllamaProvider.d.ts +2 -15
  300. package/dist/provider-ollama/OllamaProvider.d.ts.map +1 -1
  301. package/dist/provider-ollama/OllamaQueuedProvider.d.ts +16 -0
  302. package/dist/provider-ollama/OllamaQueuedProvider.d.ts.map +1 -0
  303. package/dist/provider-ollama/common/Ollama_Client.browser.d.ts +13 -0
  304. package/dist/provider-ollama/common/Ollama_Client.browser.d.ts.map +1 -0
  305. package/dist/provider-ollama/common/Ollama_Client.d.ts +13 -0
  306. package/dist/provider-ollama/common/Ollama_Client.d.ts.map +1 -0
  307. package/dist/provider-ollama/common/Ollama_JobRunFns.browser.d.ts +362 -11
  308. package/dist/provider-ollama/common/Ollama_JobRunFns.browser.d.ts.map +1 -1
  309. package/dist/provider-ollama/common/Ollama_JobRunFns.d.ts +361 -11
  310. package/dist/provider-ollama/common/Ollama_JobRunFns.d.ts.map +1 -1
  311. package/dist/provider-ollama/common/Ollama_ModelInfo.d.ts +11 -0
  312. package/dist/provider-ollama/common/Ollama_ModelInfo.d.ts.map +1 -0
  313. package/dist/provider-ollama/common/Ollama_ModelSchema.d.ts +30 -30
  314. package/dist/provider-ollama/common/Ollama_ModelSchema.d.ts.map +1 -1
  315. package/dist/provider-ollama/common/Ollama_ModelSearch.d.ts +11 -0
  316. package/dist/provider-ollama/common/Ollama_ModelSearch.d.ts.map +1 -0
  317. package/dist/provider-ollama/common/Ollama_ModelUtil.d.ts +8 -0
  318. package/dist/provider-ollama/common/Ollama_ModelUtil.d.ts.map +1 -0
  319. package/dist/provider-ollama/common/Ollama_TextEmbedding.d.ts +11 -0
  320. package/dist/provider-ollama/common/Ollama_TextEmbedding.d.ts.map +1 -0
  321. package/dist/provider-ollama/common/Ollama_TextGeneration.d.ts +12 -0
  322. package/dist/provider-ollama/common/Ollama_TextGeneration.d.ts.map +1 -0
  323. package/dist/provider-ollama/common/Ollama_TextRewriter.d.ts +12 -0
  324. package/dist/provider-ollama/common/Ollama_TextRewriter.d.ts.map +1 -0
  325. package/dist/provider-ollama/common/Ollama_TextSummary.d.ts +12 -0
  326. package/dist/provider-ollama/common/Ollama_TextSummary.d.ts.map +1 -0
  327. package/dist/provider-ollama/common/Ollama_ToolCalling.d.ts +16 -0
  328. package/dist/provider-ollama/common/Ollama_ToolCalling.d.ts.map +1 -0
  329. package/dist/provider-ollama/index.browser.d.ts +1 -3
  330. package/dist/provider-ollama/index.browser.d.ts.map +1 -1
  331. package/dist/provider-ollama/index.browser.js +18 -396
  332. package/dist/provider-ollama/index.browser.js.map +6 -7
  333. package/dist/provider-ollama/index.d.ts +1 -3
  334. package/dist/provider-ollama/index.d.ts.map +1 -1
  335. package/dist/provider-ollama/index.js +93 -382
  336. package/dist/provider-ollama/index.js.map +7 -5
  337. package/dist/provider-ollama/registerOllama.d.ts +10 -0
  338. package/dist/provider-ollama/registerOllama.d.ts.map +1 -0
  339. package/dist/provider-ollama/registerOllamaInline.browser.d.ts +8 -0
  340. package/dist/provider-ollama/registerOllamaInline.browser.d.ts.map +1 -0
  341. package/dist/provider-ollama/registerOllamaInline.d.ts +8 -0
  342. package/dist/provider-ollama/registerOllamaInline.d.ts.map +1 -0
  343. package/dist/provider-ollama/registerOllamaWorker.browser.d.ts +7 -0
  344. package/dist/provider-ollama/registerOllamaWorker.browser.d.ts.map +1 -0
  345. package/dist/{google-gemini/Gemini_Worker.d.ts → provider-ollama/registerOllamaWorker.d.ts} +2 -2
  346. package/dist/provider-ollama/registerOllamaWorker.d.ts.map +1 -0
  347. package/dist/provider-ollama/runtime.browser.d.ts +16 -0
  348. package/dist/provider-ollama/runtime.browser.d.ts.map +1 -0
  349. package/dist/provider-ollama/runtime.browser.js +528 -0
  350. package/dist/provider-ollama/runtime.browser.js.map +24 -0
  351. package/dist/provider-ollama/runtime.d.ts +16 -0
  352. package/dist/provider-ollama/runtime.d.ts.map +1 -0
  353. package/dist/provider-ollama/runtime.js +538 -0
  354. package/dist/provider-ollama/runtime.js.map +24 -0
  355. package/dist/provider-openai/OpenAiProvider.d.ts +2 -19
  356. package/dist/provider-openai/OpenAiProvider.d.ts.map +1 -1
  357. package/dist/provider-openai/OpenAiQueuedProvider.d.ts +16 -0
  358. package/dist/provider-openai/OpenAiQueuedProvider.d.ts.map +1 -0
  359. package/dist/provider-openai/common/OpenAI_Client.d.ts +10 -0
  360. package/dist/provider-openai/common/OpenAI_Client.d.ts.map +1 -0
  361. package/dist/provider-openai/common/OpenAI_CountTokens.d.ts +10 -0
  362. package/dist/provider-openai/common/OpenAI_CountTokens.d.ts.map +1 -0
  363. package/dist/provider-openai/common/OpenAI_JobRunFns.d.ts +2 -15
  364. package/dist/provider-openai/common/OpenAI_JobRunFns.d.ts.map +1 -1
  365. package/dist/provider-openai/common/OpenAI_ModelInfo.d.ts +9 -0
  366. package/dist/provider-openai/common/OpenAI_ModelInfo.d.ts.map +1 -0
  367. package/dist/provider-openai/common/OpenAI_ModelSchema.d.ts +31 -31
  368. package/dist/provider-openai/common/OpenAI_ModelSchema.d.ts.map +1 -1
  369. package/dist/provider-openai/common/OpenAI_ModelSearch.d.ts +8 -0
  370. package/dist/provider-openai/common/OpenAI_ModelSearch.d.ts.map +1 -0
  371. package/dist/provider-openai/common/OpenAI_StructuredGeneration.d.ts +10 -0
  372. package/dist/provider-openai/common/OpenAI_StructuredGeneration.d.ts.map +1 -0
  373. package/dist/provider-openai/common/OpenAI_TextEmbedding.d.ts +9 -0
  374. package/dist/provider-openai/common/OpenAI_TextEmbedding.d.ts.map +1 -0
  375. package/dist/provider-openai/common/OpenAI_TextGeneration.d.ts +10 -0
  376. package/dist/provider-openai/common/OpenAI_TextGeneration.d.ts.map +1 -0
  377. package/dist/provider-openai/common/OpenAI_TextRewriter.d.ts +10 -0
  378. package/dist/provider-openai/common/OpenAI_TextRewriter.d.ts.map +1 -0
  379. package/dist/provider-openai/common/OpenAI_TextSummary.d.ts +10 -0
  380. package/dist/provider-openai/common/OpenAI_TextSummary.d.ts.map +1 -0
  381. package/dist/provider-openai/common/OpenAI_ToolCalling.d.ts +10 -0
  382. package/dist/provider-openai/common/OpenAI_ToolCalling.d.ts.map +1 -0
  383. package/dist/provider-openai/index.d.ts +1 -3
  384. package/dist/provider-openai/index.d.ts.map +1 -1
  385. package/dist/provider-openai/index.js +108 -519
  386. package/dist/provider-openai/index.js.map +7 -5
  387. package/dist/provider-openai/registerOpenAi.d.ts +10 -0
  388. package/dist/provider-openai/registerOpenAi.d.ts.map +1 -0
  389. package/dist/provider-openai/registerOpenAiInline.d.ts +8 -0
  390. package/dist/provider-openai/registerOpenAiInline.d.ts.map +1 -0
  391. package/dist/{ggml/model/GgmlLocalModel.d.ts → provider-openai/registerOpenAiWorker.d.ts} +2 -2
  392. package/dist/provider-openai/registerOpenAiWorker.d.ts.map +1 -0
  393. package/dist/provider-openai/runtime.d.ts +16 -0
  394. package/dist/provider-openai/runtime.d.ts.map +1 -0
  395. package/dist/provider-openai/runtime.js +662 -0
  396. package/dist/provider-openai/runtime.js.map +25 -0
  397. package/dist/provider-tf-mediapipe/TensorFlowMediaPipeProvider.d.ts +24 -0
  398. package/dist/provider-tf-mediapipe/TensorFlowMediaPipeProvider.d.ts.map +1 -0
  399. package/dist/provider-tf-mediapipe/TensorFlowMediaPipeQueuedProvider.d.ts +16 -0
  400. package/dist/provider-tf-mediapipe/TensorFlowMediaPipeQueuedProvider.d.ts.map +1 -0
  401. package/dist/provider-tf-mediapipe/common/TFMP_Client.d.ts +8 -0
  402. package/dist/provider-tf-mediapipe/common/TFMP_Client.d.ts.map +1 -0
  403. package/dist/{tf-mediapipe → provider-tf-mediapipe}/common/TFMP_Constants.d.ts +1 -0
  404. package/dist/provider-tf-mediapipe/common/TFMP_Constants.d.ts.map +1 -0
  405. package/dist/provider-tf-mediapipe/common/TFMP_Download.d.ts +9 -0
  406. package/dist/provider-tf-mediapipe/common/TFMP_Download.d.ts.map +1 -0
  407. package/dist/provider-tf-mediapipe/common/TFMP_FaceDetector.d.ts +9 -0
  408. package/dist/provider-tf-mediapipe/common/TFMP_FaceDetector.d.ts.map +1 -0
  409. package/dist/provider-tf-mediapipe/common/TFMP_FaceLandmarker.d.ts +9 -0
  410. package/dist/provider-tf-mediapipe/common/TFMP_FaceLandmarker.d.ts.map +1 -0
  411. package/dist/provider-tf-mediapipe/common/TFMP_GestureRecognizer.d.ts +9 -0
  412. package/dist/provider-tf-mediapipe/common/TFMP_GestureRecognizer.d.ts.map +1 -0
  413. package/dist/provider-tf-mediapipe/common/TFMP_HandLandmarker.d.ts +9 -0
  414. package/dist/provider-tf-mediapipe/common/TFMP_HandLandmarker.d.ts.map +1 -0
  415. package/dist/provider-tf-mediapipe/common/TFMP_ImageClassification.d.ts +9 -0
  416. package/dist/provider-tf-mediapipe/common/TFMP_ImageClassification.d.ts.map +1 -0
  417. package/dist/provider-tf-mediapipe/common/TFMP_ImageEmbedding.d.ts +9 -0
  418. package/dist/provider-tf-mediapipe/common/TFMP_ImageEmbedding.d.ts.map +1 -0
  419. package/dist/provider-tf-mediapipe/common/TFMP_ImageSegmentation.d.ts +9 -0
  420. package/dist/provider-tf-mediapipe/common/TFMP_ImageSegmentation.d.ts.map +1 -0
  421. package/dist/{tf-mediapipe → provider-tf-mediapipe}/common/TFMP_JobRunFns.d.ts +340 -408
  422. package/dist/provider-tf-mediapipe/common/TFMP_JobRunFns.d.ts.map +1 -0
  423. package/dist/provider-tf-mediapipe/common/TFMP_ModelInfo.d.ts +9 -0
  424. package/dist/provider-tf-mediapipe/common/TFMP_ModelInfo.d.ts.map +1 -0
  425. package/dist/{tf-mediapipe → provider-tf-mediapipe}/common/TFMP_ModelSchema.d.ts +40 -37
  426. package/dist/provider-tf-mediapipe/common/TFMP_ModelSchema.d.ts.map +1 -0
  427. package/dist/provider-tf-mediapipe/common/TFMP_ModelSearch.d.ts +9 -0
  428. package/dist/provider-tf-mediapipe/common/TFMP_ModelSearch.d.ts.map +1 -0
  429. package/dist/provider-tf-mediapipe/common/TFMP_ObjectDetection.d.ts +9 -0
  430. package/dist/provider-tf-mediapipe/common/TFMP_ObjectDetection.d.ts.map +1 -0
  431. package/dist/provider-tf-mediapipe/common/TFMP_PoseLandmarker.d.ts +9 -0
  432. package/dist/provider-tf-mediapipe/common/TFMP_PoseLandmarker.d.ts.map +1 -0
  433. package/dist/provider-tf-mediapipe/common/TFMP_Runtime.d.ts +43 -0
  434. package/dist/provider-tf-mediapipe/common/TFMP_Runtime.d.ts.map +1 -0
  435. package/dist/provider-tf-mediapipe/common/TFMP_TextClassification.d.ts +9 -0
  436. package/dist/provider-tf-mediapipe/common/TFMP_TextClassification.d.ts.map +1 -0
  437. package/dist/provider-tf-mediapipe/common/TFMP_TextEmbedding.d.ts +9 -0
  438. package/dist/provider-tf-mediapipe/common/TFMP_TextEmbedding.d.ts.map +1 -0
  439. package/dist/provider-tf-mediapipe/common/TFMP_TextLanguageDetection.d.ts +9 -0
  440. package/dist/provider-tf-mediapipe/common/TFMP_TextLanguageDetection.d.ts.map +1 -0
  441. package/dist/provider-tf-mediapipe/common/TFMP_Unload.d.ts +9 -0
  442. package/dist/provider-tf-mediapipe/common/TFMP_Unload.d.ts.map +1 -0
  443. package/dist/{tf-mediapipe → provider-tf-mediapipe}/index.d.ts +1 -3
  444. package/dist/provider-tf-mediapipe/index.d.ts.map +1 -0
  445. package/dist/provider-tf-mediapipe/index.js +129 -0
  446. package/dist/provider-tf-mediapipe/index.js.map +13 -0
  447. package/dist/provider-tf-mediapipe/registerTensorFlowMediaPipe.d.ts +10 -0
  448. package/dist/provider-tf-mediapipe/registerTensorFlowMediaPipe.d.ts.map +1 -0
  449. package/dist/provider-tf-mediapipe/registerTensorFlowMediaPipeInline.d.ts +8 -0
  450. package/dist/provider-tf-mediapipe/registerTensorFlowMediaPipeInline.d.ts.map +1 -0
  451. package/dist/provider-tf-mediapipe/registerTensorFlowMediaPipeWorker.d.ts +7 -0
  452. package/dist/provider-tf-mediapipe/registerTensorFlowMediaPipeWorker.d.ts.map +1 -0
  453. package/dist/provider-tf-mediapipe/runtime.d.ts +16 -0
  454. package/dist/provider-tf-mediapipe/runtime.d.ts.map +1 -0
  455. package/dist/{tf-mediapipe/index.js → provider-tf-mediapipe/runtime.js} +417 -380
  456. package/dist/provider-tf-mediapipe/runtime.js.map +33 -0
  457. package/package.json +66 -40
  458. package/dist/HFT_JobRunFns-8hcpea4c.js +0 -80
  459. package/dist/HFT_JobRunFns-8hcpea4c.js.map +0 -9
  460. package/dist/anthropic/AnthropicProvider.d.ts.map +0 -1
  461. package/dist/anthropic/Anthropic_Worker.d.ts.map +0 -1
  462. package/dist/anthropic/common/Anthropic_Constants.d.ts.map +0 -1
  463. package/dist/anthropic/common/Anthropic_JobRunFns.d.ts +0 -24
  464. package/dist/anthropic/common/Anthropic_JobRunFns.d.ts.map +0 -1
  465. package/dist/anthropic/common/Anthropic_ModelSchema.d.ts.map +0 -1
  466. package/dist/anthropic/index.d.ts.map +0 -1
  467. package/dist/anthropic/index.js.map +0 -11
  468. package/dist/ggml/model/GgmlLocalModel.d.ts.map +0 -1
  469. package/dist/google-gemini/Gemini_Worker.d.ts.map +0 -1
  470. package/dist/google-gemini/GoogleGeminiProvider.d.ts.map +0 -1
  471. package/dist/google-gemini/common/Gemini_Constants.d.ts.map +0 -1
  472. package/dist/google-gemini/common/Gemini_JobRunFns.d.ts +0 -25
  473. package/dist/google-gemini/common/Gemini_JobRunFns.d.ts.map +0 -1
  474. package/dist/google-gemini/common/Gemini_ModelSchema.d.ts.map +0 -1
  475. package/dist/google-gemini/index.d.ts.map +0 -1
  476. package/dist/google-gemini/index.js.map +0 -11
  477. package/dist/hf-transformers/HFT_Worker.d.ts +0 -7
  478. package/dist/hf-transformers/HFT_Worker.d.ts.map +0 -1
  479. package/dist/hf-transformers/HuggingFaceTransformersProvider.d.ts.map +0 -1
  480. package/dist/hf-transformers/common/HFT_Constants.d.ts.map +0 -1
  481. package/dist/hf-transformers/common/HFT_JobRunFns.d.ts.map +0 -1
  482. package/dist/hf-transformers/common/HFT_ModelSchema.d.ts.map +0 -1
  483. package/dist/hf-transformers/index.d.ts.map +0 -1
  484. package/dist/hf-transformers/index.js +0 -116
  485. package/dist/hf-transformers/index.js.map +0 -10
  486. package/dist/index-60ev6k93.js.map +0 -12
  487. package/dist/index-6j5pq722.js +0 -11
  488. package/dist/index-6j5pq722.js.map +0 -9
  489. package/dist/index-8651nz8y.js.map +0 -12
  490. package/dist/index-j4g81r4k.js.map +0 -10
  491. package/dist/index-pkd79j8b.js +0 -58
  492. package/dist/index-pkd79j8b.js.map +0 -10
  493. package/dist/index-q2t627d5.js +0 -88
  494. package/dist/index-q2t627d5.js.map +0 -12
  495. package/dist/index-tp5s7355.js +0 -77
  496. package/dist/index-tp5s7355.js.map +0 -12
  497. package/dist/index-v72vr07f.js +0 -81
  498. package/dist/index-v72vr07f.js.map +0 -12
  499. package/dist/index-wr57rwyx.js +0 -104
  500. package/dist/index-wr57rwyx.js.map +0 -12
  501. package/dist/index-zqq3kw0n.js +0 -171
  502. package/dist/index-zqq3kw0n.js.map +0 -11
  503. package/dist/index.browser-6j5pq722.js +0 -11
  504. package/dist/index.browser-6j5pq722.js.map +0 -9
  505. package/dist/index.d.ts +0 -33
  506. package/dist/index.d.ts.map +0 -1
  507. package/dist/index.js +0 -316
  508. package/dist/index.js.map +0 -15
  509. package/dist/provider-hf-inference/HFI_Worker.d.ts +0 -7
  510. package/dist/provider-hf-inference/HFI_Worker.d.ts.map +0 -1
  511. package/dist/provider-llamacpp/LlamaCpp_Worker.d.ts +0 -7
  512. package/dist/provider-llamacpp/LlamaCpp_Worker.d.ts.map +0 -1
  513. package/dist/provider-ollama/Ollama_Worker.browser.d.ts +0 -7
  514. package/dist/provider-ollama/Ollama_Worker.browser.d.ts.map +0 -1
  515. package/dist/provider-ollama/Ollama_Worker.d.ts +0 -7
  516. package/dist/provider-ollama/Ollama_Worker.d.ts.map +0 -1
  517. package/dist/provider-openai/OpenAI_Worker.d.ts +0 -7
  518. package/dist/provider-openai/OpenAI_Worker.d.ts.map +0 -1
  519. package/dist/tf-mediapipe/TFMP_Worker.d.ts +0 -7
  520. package/dist/tf-mediapipe/TFMP_Worker.d.ts.map +0 -1
  521. package/dist/tf-mediapipe/TensorFlowMediaPipeProvider.d.ts +0 -41
  522. package/dist/tf-mediapipe/TensorFlowMediaPipeProvider.d.ts.map +0 -1
  523. package/dist/tf-mediapipe/common/TFMP_Constants.d.ts.map +0 -1
  524. package/dist/tf-mediapipe/common/TFMP_JobRunFns.d.ts.map +0 -1
  525. package/dist/tf-mediapipe/common/TFMP_ModelSchema.d.ts.map +0 -1
  526. package/dist/tf-mediapipe/index.d.ts.map +0 -1
  527. package/dist/tf-mediapipe/index.js.map +0 -14
  528. package/dist/types.d.ts +0 -7
  529. package/dist/types.d.ts.map +0 -1
  530. package/dist/web-browser/WebBrowserProvider.d.ts.map +0 -1
  531. package/dist/web-browser/WebBrowser_Worker.d.ts +0 -7
  532. package/dist/web-browser/WebBrowser_Worker.d.ts.map +0 -1
  533. package/dist/web-browser/common/WebBrowser_Constants.d.ts.map +0 -1
  534. package/dist/web-browser/common/WebBrowser_JobRunFns.d.ts +0 -20
  535. package/dist/web-browser/common/WebBrowser_JobRunFns.d.ts.map +0 -1
  536. package/dist/web-browser/common/WebBrowser_ModelSchema.d.ts.map +0 -1
  537. package/dist/web-browser/index.d.ts.map +0 -1
  538. package/dist/web-browser/index.js.map +0 -14
  539. /package/dist/{anthropic → provider-anthropic}/common/Anthropic_Constants.d.ts +0 -0
  540. /package/dist/{web-browser → provider-chrome}/common/WebBrowser_Constants.d.ts +0 -0
  541. /package/dist/{google-gemini → provider-gemini}/common/Gemini_Constants.d.ts +0 -0
@@ -3,1627 +3,1511 @@
3
3
  * Copyright 2025 Steven Roussey <sroussey@gmail.com>
4
4
  * SPDX-License-Identifier: Apache-2.0
5
5
  */
6
- import type { AiProviderReactiveRunFn, AiProviderRunFn, AiProviderStreamFn, BackgroundRemovalTaskInput, BackgroundRemovalTaskOutput, CountTokensTaskInput, CountTokensTaskOutput, DownloadModelTaskRunInput, DownloadModelTaskRunOutput, ImageClassificationTaskInput, ImageClassificationTaskOutput, ImageEmbeddingTaskInput, ImageEmbeddingTaskOutput, ImageSegmentationTaskInput, ImageSegmentationTaskOutput, ImageToTextTaskInput, ImageToTextTaskOutput, ModelInfoTaskInput, ModelInfoTaskOutput, ObjectDetectionTaskInput, ObjectDetectionTaskOutput, StructuredGenerationTaskInput, StructuredGenerationTaskOutput, TextClassificationTaskInput, TextClassificationTaskOutput, TextEmbeddingTaskInput, TextEmbeddingTaskOutput, TextFillMaskTaskInput, TextFillMaskTaskOutput, TextGenerationTaskInput, TextGenerationTaskOutput, TextLanguageDetectionTaskInput, TextLanguageDetectionTaskOutput, TextNamedEntityRecognitionTaskInput, TextNamedEntityRecognitionTaskOutput, TextQuestionAnswerTaskInput, TextQuestionAnswerTaskOutput, TextRewriterTaskInput, TextRewriterTaskOutput, TextSummaryTaskInput, TextSummaryTaskOutput, TextTranslationTaskInput, TextTranslationTaskOutput, ToolCallingTaskInput, ToolCallingTaskOutput, ToolCalls, UnloadModelTaskRunInput, UnloadModelTaskRunOutput } from "@workglow/ai";
7
- import { TypedArray } from "@workglow/util";
8
- import { HfTransformersOnnxModelConfig } from "./HFT_ModelSchema";
9
- /**
10
- * Clear all cached pipelines
11
- */
12
- export declare function clearPipelineCache(): void;
13
- /**
14
- * Core implementation for downloading and caching a Hugging Face Transformers model.
15
- * This is shared between inline and worker implementations.
16
- */
17
- export declare const HFT_Download: AiProviderRunFn<DownloadModelTaskRunInput, DownloadModelTaskRunOutput, HfTransformersOnnxModelConfig>;
18
- /**
19
- * Core implementation for unloading a Hugging Face Transformers model.
20
- * This is shared between inline and worker implementations.
21
- */
22
- export declare const HFT_Unload: AiProviderRunFn<UnloadModelTaskRunInput, UnloadModelTaskRunOutput, HfTransformersOnnxModelConfig>;
23
- /**
24
- * Core implementation for text embedding using Hugging Face Transformers.
25
- * This is shared between inline and worker implementations.
26
- */
27
- export declare const HFT_TextEmbedding: AiProviderRunFn<TextEmbeddingTaskInput, TextEmbeddingTaskOutput, HfTransformersOnnxModelConfig>;
28
- export declare const HFT_TextClassification: AiProviderRunFn<TextClassificationTaskInput, TextClassificationTaskOutput, HfTransformersOnnxModelConfig>;
29
- export declare const HFT_TextLanguageDetection: AiProviderRunFn<TextLanguageDetectionTaskInput, TextLanguageDetectionTaskOutput, HfTransformersOnnxModelConfig>;
30
- export declare const HFT_TextNamedEntityRecognition: AiProviderRunFn<TextNamedEntityRecognitionTaskInput, TextNamedEntityRecognitionTaskOutput, HfTransformersOnnxModelConfig>;
31
- export declare const HFT_TextFillMask: AiProviderRunFn<TextFillMaskTaskInput, TextFillMaskTaskOutput, HfTransformersOnnxModelConfig>;
32
- /**
33
- * Core implementation for text generation using Hugging Face Transformers.
34
- * This is shared between inline and worker implementations.
35
- */
36
- export declare const HFT_TextGeneration: AiProviderRunFn<TextGenerationTaskInput, TextGenerationTaskOutput, HfTransformersOnnxModelConfig>;
37
- /**
38
- * Core implementation for text translation using Hugging Face Transformers.
39
- * This is shared between inline and worker implementations.
40
- */
41
- export declare const HFT_TextTranslation: AiProviderRunFn<TextTranslationTaskInput, TextTranslationTaskOutput, HfTransformersOnnxModelConfig>;
42
- /**
43
- * Core implementation for text rewriting using Hugging Face Transformers.
44
- * This is shared between inline and worker implementations.
45
- */
46
- export declare const HFT_TextRewriter: AiProviderRunFn<TextRewriterTaskInput, TextRewriterTaskOutput, HfTransformersOnnxModelConfig>;
47
- /**
48
- * Core implementation for text summarization using Hugging Face Transformers.
49
- * This is shared between inline and worker implementations.
50
- */
51
- export declare const HFT_TextSummary: AiProviderRunFn<TextSummaryTaskInput, TextSummaryTaskOutput, HfTransformersOnnxModelConfig>;
52
- /**
53
- * Core implementation for question answering using Hugging Face Transformers.
54
- * This is shared between inline and worker implementations.
55
- */
56
- export declare const HFT_TextQuestionAnswer: AiProviderRunFn<TextQuestionAnswerTaskInput, TextQuestionAnswerTaskOutput, HfTransformersOnnxModelConfig>;
57
- /**
58
- * Core implementation for image segmentation using Hugging Face Transformers.
59
- */
60
- export declare const HFT_ImageSegmentation: AiProviderRunFn<ImageSegmentationTaskInput, ImageSegmentationTaskOutput, HfTransformersOnnxModelConfig>;
61
- /**
62
- * Core implementation for image to text using Hugging Face Transformers.
63
- */
64
- export declare const HFT_ImageToText: AiProviderRunFn<ImageToTextTaskInput, ImageToTextTaskOutput, HfTransformersOnnxModelConfig>;
65
- /**
66
- * Core implementation for background removal using Hugging Face Transformers.
67
- */
68
- export declare const HFT_BackgroundRemoval: AiProviderRunFn<BackgroundRemovalTaskInput, BackgroundRemovalTaskOutput, HfTransformersOnnxModelConfig>;
69
- /**
70
- * Core implementation for image embedding using Hugging Face Transformers.
71
- */
72
- export declare const HFT_ImageEmbedding: AiProviderRunFn<ImageEmbeddingTaskInput, ImageEmbeddingTaskOutput, HfTransformersOnnxModelConfig>;
73
- /**
74
- * Core implementation for image classification using Hugging Face Transformers.
75
- * Auto-selects between regular and zero-shot classification.
76
- */
77
- export declare const HFT_ImageClassification: AiProviderRunFn<ImageClassificationTaskInput, ImageClassificationTaskOutput, HfTransformersOnnxModelConfig>;
78
- /**
79
- * Core implementation for object detection using Hugging Face Transformers.
80
- * Auto-selects between regular and zero-shot detection.
81
- */
82
- export declare const HFT_ObjectDetection: AiProviderRunFn<ObjectDetectionTaskInput, ObjectDetectionTaskOutput, HfTransformersOnnxModelConfig>;
83
- /**
84
- * State machine that filters `<tool_call>…</tool_call>` markup out of a
85
- * stream of text-delta tokens. Tokens that are clearly outside markup are
86
- * flushed immediately; tokens that *might* be the start of a tag are held
87
- * in a lookahead buffer until they can be disambiguated.
88
- *
89
- * This only handles the XML-tag pattern (Pattern 1 in parseToolCallsFromText).
90
- * Bare-JSON tool calls (Pattern 2) cannot be reliably detected token-by-token
91
- * and are still cleaned up via the post-hoc `parseToolCallsFromText` pass on
92
- * the finish event.
93
- */
94
- export declare function createToolCallMarkupFilter(emit: (text: string) => void): {
95
- feed: (token: string) => void;
96
- flush: () => void;
97
- };
98
- export declare const HFT_TextGeneration_Stream: AiProviderStreamFn<TextGenerationTaskInput, TextGenerationTaskOutput, HfTransformersOnnxModelConfig>;
99
- export declare const HFT_TextRewriter_Stream: AiProviderStreamFn<TextRewriterTaskInput, TextRewriterTaskOutput, HfTransformersOnnxModelConfig>;
100
- export declare const HFT_TextSummary_Stream: AiProviderStreamFn<TextSummaryTaskInput, TextSummaryTaskOutput, HfTransformersOnnxModelConfig>;
101
- export declare const HFT_TextQuestionAnswer_Stream: AiProviderStreamFn<TextQuestionAnswerTaskInput, TextQuestionAnswerTaskOutput, HfTransformersOnnxModelConfig>;
102
- export declare const HFT_TextTranslation_Stream: AiProviderStreamFn<TextTranslationTaskInput, TextTranslationTaskOutput, HfTransformersOnnxModelConfig>;
103
- export declare const HFT_CountTokens: AiProviderRunFn<CountTokensTaskInput, CountTokensTaskOutput, HfTransformersOnnxModelConfig>;
104
- export declare const HFT_CountTokens_Reactive: AiProviderReactiveRunFn<CountTokensTaskInput, CountTokensTaskOutput, HfTransformersOnnxModelConfig>;
105
- /**
106
- * Parse tool calls from model-generated text.
107
- *
108
- * Many instruct models (Qwen, Llama, Hermes, etc.) emit tool calls in one of
109
- * these formats:
110
- *
111
- * 1. `<tool_call>{"name":"fn","arguments":{...}}</tool_call>` (Qwen/Hermes)
112
- * 2. Plain JSON objects with a "name" + "arguments" key
113
- * 3. `{"function":{"name":"fn","arguments":{...}}}`
114
- *
115
- * This function extracts all such tool calls from the raw response text
116
- * and returns both the cleaned text (with tool-call markup removed) and
117
- * the parsed ToolCall array.
118
- */
119
- export declare function parseToolCallsFromText(responseText: string): {
120
- text: string;
121
- toolCalls: ToolCalls;
122
- };
123
- export declare const HFT_ToolCalling: AiProviderRunFn<ToolCallingTaskInput, ToolCallingTaskOutput, HfTransformersOnnxModelConfig>;
124
- export declare const HFT_ToolCalling_Stream: AiProviderStreamFn<ToolCallingTaskInput, ToolCallingTaskOutput, HfTransformersOnnxModelConfig>;
125
- export declare const HFT_ModelInfo: AiProviderRunFn<ModelInfoTaskInput, ModelInfoTaskOutput, HfTransformersOnnxModelConfig>;
126
- export declare const HFT_StructuredGeneration: AiProviderRunFn<StructuredGenerationTaskInput, StructuredGenerationTaskOutput, HfTransformersOnnxModelConfig>;
127
- export declare const HFT_StructuredGeneration_Stream: AiProviderStreamFn<StructuredGenerationTaskInput, StructuredGenerationTaskOutput, HfTransformersOnnxModelConfig>;
6
+ import type { AiProviderReactiveRunFn, AiProviderStreamFn } from "@workglow/ai";
7
+ import type { HfTransformersOnnxModelConfig } from "./HFT_ModelSchema";
128
8
  /**
129
9
  * All HuggingFace Transformers task run functions, keyed by task type name.
130
- * Pass this to `new HuggingFaceTransformersProvider(HFT_TASKS, HFT_STREAM_TASKS, HFT_REACTIVE_TASKS)` when the
10
+ * Used by `@workglow/ai-provider/hf-transformers/runtime` (inline + worker registration) and custom worker scripts when the
131
11
  * actual run function implementations are needed (inline mode, worker server).
132
12
  */
133
13
  export declare const HFT_TASKS: {
134
- readonly DownloadModelTask: AiProviderRunFn<{
14
+ readonly DownloadModelTask: import("@workglow/ai").AiProviderRunFn<{
135
15
  model: string | {
136
16
  [x: string]: unknown;
137
- title?: string | undefined;
138
17
  description?: string | undefined;
139
- model_id?: string | undefined;
140
- tasks?: string[] | undefined;
141
18
  metadata?: {
142
19
  [x: string]: unknown;
143
20
  } | undefined;
21
+ model_id?: string | undefined;
144
22
  provider: string;
145
23
  provider_config: {
146
24
  [x: string]: unknown;
147
25
  credential_key?: string | undefined;
148
26
  };
27
+ tasks?: string[] | undefined;
28
+ title?: string | undefined;
149
29
  };
150
30
  }, {
151
31
  model: string | {
152
32
  [x: string]: unknown;
153
- title?: string | undefined;
154
33
  description?: string | undefined;
155
- model_id?: string | undefined;
156
- tasks?: string[] | undefined;
157
34
  metadata?: {
158
35
  [x: string]: unknown;
159
36
  } | undefined;
37
+ model_id?: string | undefined;
160
38
  provider: string;
161
39
  provider_config: {
162
40
  [x: string]: unknown;
163
41
  credential_key?: string | undefined;
164
42
  };
43
+ tasks?: string[] | undefined;
44
+ title?: string | undefined;
165
45
  };
166
46
  }, {
167
- title?: string | undefined;
168
47
  description?: string | undefined;
169
- model_id?: string | undefined;
170
- tasks?: string[] | undefined;
171
48
  metadata?: {
172
49
  [x: string]: unknown;
173
50
  } | undefined;
51
+ model_id?: string | undefined;
174
52
  provider: "HF_TRANSFORMERS_ONNX";
175
53
  provider_config: {
176
- normalize?: boolean | undefined;
177
- dtype?: "auto" | "fp32" | "fp16" | "q8" | "int8" | "uint8" | "q4" | "bnb4" | "q4f16" | undefined;
178
- device?: "cpu" | "gpu" | "webgpu" | "wasm" | "metal" | undefined;
54
+ device?: "cpu" | "gpu" | "metal" | "wasm" | "webgpu" | undefined;
55
+ dtype?: "auto" | "bnb4" | "fp16" | "fp32" | "int8" | "q4" | "q4f16" | "q8" | "uint8" | undefined;
179
56
  execution_providers?: string[] | undefined;
180
- intra_op_num_threads?: number | undefined;
181
57
  inter_op_num_threads?: number | undefined;
182
- use_external_data_format?: boolean | undefined;
183
- pooling?: "mean" | "last_token" | "cls" | undefined;
58
+ intra_op_num_threads?: number | undefined;
184
59
  language_style?: string | undefined;
185
- mrl?: boolean | undefined;
186
- pipeline: "feature-extraction";
187
60
  model_path: string;
61
+ mrl?: boolean | undefined;
188
62
  native_dimensions: number;
189
- } | {
190
63
  normalize?: boolean | undefined;
191
- dtype?: "auto" | "fp32" | "fp16" | "q8" | "int8" | "uint8" | "q4" | "bnb4" | "q4f16" | undefined;
192
- device?: "cpu" | "gpu" | "webgpu" | "wasm" | "metal" | undefined;
64
+ pipeline: "feature-extraction";
65
+ pooling?: "cls" | "last_token" | "mean" | undefined;
66
+ use_external_data_format?: boolean | undefined;
67
+ } | {
68
+ device?: "cpu" | "gpu" | "metal" | "wasm" | "webgpu" | undefined;
69
+ dtype?: "auto" | "bnb4" | "fp16" | "fp32" | "int8" | "q4" | "q4f16" | "q8" | "uint8" | undefined;
193
70
  execution_providers?: string[] | undefined;
194
- intra_op_num_threads?: number | undefined;
195
71
  inter_op_num_threads?: number | undefined;
196
- use_external_data_format?: boolean | undefined;
197
- native_dimensions?: number | undefined;
198
- pooling?: "mean" | "last_token" | "cls" | undefined;
72
+ intra_op_num_threads?: number | undefined;
199
73
  language_style?: string | undefined;
200
- mrl?: boolean | undefined;
201
- pipeline: "fill-mask" | "token-classification" | "text-generation" | "text2text-generation" | "text-classification" | "summarization" | "translation" | "zero-shot-classification" | "question-answering" | "background-removal" | "image-segmentation" | "depth-estimation" | "image-classification" | "image-to-image" | "object-detection" | "image-feature-extraction" | "audio-classification" | "automatic-speech-recognition" | "text-to-speech" | "document-question-answering" | "image-to-text" | "zero-shot-audio-classification" | "zero-shot-image-classification" | "zero-shot-object-detection";
202
74
  model_path: string;
75
+ mrl?: boolean | undefined;
76
+ native_dimensions?: number | undefined;
77
+ normalize?: boolean | undefined;
78
+ 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
+ pooling?: "cls" | "last_token" | "mean" | undefined;
80
+ use_external_data_format?: boolean | undefined;
203
81
  };
82
+ tasks?: string[] | undefined;
83
+ title?: string | undefined;
204
84
  }>;
205
- readonly UnloadModelTask: AiProviderRunFn<{
85
+ readonly UnloadModelTask: import("@workglow/ai").AiProviderRunFn<{
206
86
  model: string | {
207
87
  [x: string]: unknown;
208
- title?: string | undefined;
209
88
  description?: string | undefined;
210
- model_id?: string | undefined;
211
- tasks?: string[] | undefined;
212
89
  metadata?: {
213
90
  [x: string]: unknown;
214
91
  } | undefined;
92
+ model_id?: string | undefined;
215
93
  provider: string;
216
94
  provider_config: {
217
95
  [x: string]: unknown;
218
96
  credential_key?: string | undefined;
219
97
  };
98
+ tasks?: string[] | undefined;
99
+ title?: string | undefined;
220
100
  };
221
101
  }, {
222
102
  model: string | {
223
103
  [x: string]: unknown;
224
- title?: string | undefined;
225
104
  description?: string | undefined;
226
- model_id?: string | undefined;
227
- tasks?: string[] | undefined;
228
105
  metadata?: {
229
106
  [x: string]: unknown;
230
107
  } | undefined;
108
+ model_id?: string | undefined;
231
109
  provider: string;
232
110
  provider_config: {
233
111
  [x: string]: unknown;
234
112
  credential_key?: string | undefined;
235
113
  };
114
+ tasks?: string[] | undefined;
115
+ title?: string | undefined;
236
116
  };
237
117
  }, {
238
- title?: string | undefined;
239
118
  description?: string | undefined;
240
- model_id?: string | undefined;
241
- tasks?: string[] | undefined;
242
119
  metadata?: {
243
120
  [x: string]: unknown;
244
121
  } | undefined;
122
+ model_id?: string | undefined;
245
123
  provider: "HF_TRANSFORMERS_ONNX";
246
124
  provider_config: {
247
- normalize?: boolean | undefined;
248
- dtype?: "auto" | "fp32" | "fp16" | "q8" | "int8" | "uint8" | "q4" | "bnb4" | "q4f16" | undefined;
249
- device?: "cpu" | "gpu" | "webgpu" | "wasm" | "metal" | undefined;
125
+ device?: "cpu" | "gpu" | "metal" | "wasm" | "webgpu" | undefined;
126
+ dtype?: "auto" | "bnb4" | "fp16" | "fp32" | "int8" | "q4" | "q4f16" | "q8" | "uint8" | undefined;
250
127
  execution_providers?: string[] | undefined;
251
- intra_op_num_threads?: number | undefined;
252
128
  inter_op_num_threads?: number | undefined;
253
- use_external_data_format?: boolean | undefined;
254
- pooling?: "mean" | "last_token" | "cls" | undefined;
129
+ intra_op_num_threads?: number | undefined;
255
130
  language_style?: string | undefined;
256
- mrl?: boolean | undefined;
257
- pipeline: "feature-extraction";
258
131
  model_path: string;
132
+ mrl?: boolean | undefined;
259
133
  native_dimensions: number;
260
- } | {
261
134
  normalize?: boolean | undefined;
262
- dtype?: "auto" | "fp32" | "fp16" | "q8" | "int8" | "uint8" | "q4" | "bnb4" | "q4f16" | undefined;
263
- device?: "cpu" | "gpu" | "webgpu" | "wasm" | "metal" | undefined;
135
+ pipeline: "feature-extraction";
136
+ pooling?: "cls" | "last_token" | "mean" | undefined;
137
+ use_external_data_format?: boolean | undefined;
138
+ } | {
139
+ device?: "cpu" | "gpu" | "metal" | "wasm" | "webgpu" | undefined;
140
+ dtype?: "auto" | "bnb4" | "fp16" | "fp32" | "int8" | "q4" | "q4f16" | "q8" | "uint8" | undefined;
264
141
  execution_providers?: string[] | undefined;
265
- intra_op_num_threads?: number | undefined;
266
142
  inter_op_num_threads?: number | undefined;
267
- use_external_data_format?: boolean | undefined;
268
- native_dimensions?: number | undefined;
269
- pooling?: "mean" | "last_token" | "cls" | undefined;
143
+ intra_op_num_threads?: number | undefined;
270
144
  language_style?: string | undefined;
271
- mrl?: boolean | undefined;
272
- pipeline: "fill-mask" | "token-classification" | "text-generation" | "text2text-generation" | "text-classification" | "summarization" | "translation" | "zero-shot-classification" | "question-answering" | "background-removal" | "image-segmentation" | "depth-estimation" | "image-classification" | "image-to-image" | "object-detection" | "image-feature-extraction" | "audio-classification" | "automatic-speech-recognition" | "text-to-speech" | "document-question-answering" | "image-to-text" | "zero-shot-audio-classification" | "zero-shot-image-classification" | "zero-shot-object-detection";
273
145
  model_path: string;
146
+ mrl?: boolean | undefined;
147
+ native_dimensions?: number | undefined;
148
+ normalize?: boolean | undefined;
149
+ 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
+ pooling?: "cls" | "last_token" | "mean" | undefined;
151
+ use_external_data_format?: boolean | undefined;
274
152
  };
153
+ tasks?: string[] | undefined;
154
+ title?: string | undefined;
275
155
  }>;
276
- readonly ModelInfoTask: AiProviderRunFn<{
156
+ readonly ModelInfoTask: import("@workglow/ai").AiProviderRunFn<{
277
157
  detail?: "cached_status" | "files" | "files_with_metadata" | undefined;
278
158
  model: string | {
279
159
  [x: string]: unknown;
280
- title?: string | undefined;
281
160
  description?: string | undefined;
282
- model_id?: string | undefined;
283
- tasks?: string[] | undefined;
284
161
  metadata?: {
285
162
  [x: string]: unknown;
286
163
  } | undefined;
164
+ model_id?: string | undefined;
287
165
  provider: string;
288
166
  provider_config: {
289
167
  [x: string]: unknown;
290
168
  credential_key?: string | undefined;
291
169
  };
170
+ tasks?: string[] | undefined;
171
+ title?: string | undefined;
292
172
  };
293
173
  }, {
174
+ file_sizes: unknown;
175
+ is_cached: boolean;
176
+ is_loaded: boolean;
177
+ is_local: boolean;
178
+ is_remote: boolean;
294
179
  model: string | {
295
180
  [x: string]: unknown;
296
- title?: string | undefined;
297
181
  description?: string | undefined;
298
- model_id?: string | undefined;
299
- tasks?: string[] | undefined;
300
182
  metadata?: {
301
183
  [x: string]: unknown;
302
184
  } | undefined;
185
+ model_id?: string | undefined;
303
186
  provider: string;
304
187
  provider_config: {
305
188
  [x: string]: unknown;
306
189
  credential_key?: string | undefined;
307
190
  };
191
+ tasks?: string[] | undefined;
192
+ title?: string | undefined;
308
193
  };
309
- is_local: boolean;
310
- is_remote: boolean;
194
+ quantizations?: string[] | undefined;
311
195
  supports_browser: boolean;
312
196
  supports_node: boolean;
313
- is_cached: boolean;
314
- is_loaded: boolean;
315
- file_sizes: unknown;
316
197
  }, {
317
- title?: string | undefined;
318
198
  description?: string | undefined;
319
- model_id?: string | undefined;
320
- tasks?: string[] | undefined;
321
199
  metadata?: {
322
200
  [x: string]: unknown;
323
201
  } | undefined;
202
+ model_id?: string | undefined;
324
203
  provider: "HF_TRANSFORMERS_ONNX";
325
204
  provider_config: {
326
- normalize?: boolean | undefined;
327
- dtype?: "auto" | "fp32" | "fp16" | "q8" | "int8" | "uint8" | "q4" | "bnb4" | "q4f16" | undefined;
328
- device?: "cpu" | "gpu" | "webgpu" | "wasm" | "metal" | undefined;
205
+ device?: "cpu" | "gpu" | "metal" | "wasm" | "webgpu" | undefined;
206
+ dtype?: "auto" | "bnb4" | "fp16" | "fp32" | "int8" | "q4" | "q4f16" | "q8" | "uint8" | undefined;
329
207
  execution_providers?: string[] | undefined;
330
- intra_op_num_threads?: number | undefined;
331
208
  inter_op_num_threads?: number | undefined;
332
- use_external_data_format?: boolean | undefined;
333
- pooling?: "mean" | "last_token" | "cls" | undefined;
209
+ intra_op_num_threads?: number | undefined;
334
210
  language_style?: string | undefined;
335
- mrl?: boolean | undefined;
336
- pipeline: "feature-extraction";
337
211
  model_path: string;
212
+ mrl?: boolean | undefined;
338
213
  native_dimensions: number;
339
- } | {
340
214
  normalize?: boolean | undefined;
341
- dtype?: "auto" | "fp32" | "fp16" | "q8" | "int8" | "uint8" | "q4" | "bnb4" | "q4f16" | undefined;
342
- device?: "cpu" | "gpu" | "webgpu" | "wasm" | "metal" | undefined;
215
+ pipeline: "feature-extraction";
216
+ pooling?: "cls" | "last_token" | "mean" | undefined;
217
+ use_external_data_format?: boolean | undefined;
218
+ } | {
219
+ device?: "cpu" | "gpu" | "metal" | "wasm" | "webgpu" | undefined;
220
+ dtype?: "auto" | "bnb4" | "fp16" | "fp32" | "int8" | "q4" | "q4f16" | "q8" | "uint8" | undefined;
343
221
  execution_providers?: string[] | undefined;
344
- intra_op_num_threads?: number | undefined;
345
222
  inter_op_num_threads?: number | undefined;
346
- use_external_data_format?: boolean | undefined;
347
- native_dimensions?: number | undefined;
348
- pooling?: "mean" | "last_token" | "cls" | undefined;
223
+ intra_op_num_threads?: number | undefined;
349
224
  language_style?: string | undefined;
350
- mrl?: boolean | undefined;
351
- pipeline: "fill-mask" | "token-classification" | "text-generation" | "text2text-generation" | "text-classification" | "summarization" | "translation" | "zero-shot-classification" | "question-answering" | "background-removal" | "image-segmentation" | "depth-estimation" | "image-classification" | "image-to-image" | "object-detection" | "image-feature-extraction" | "audio-classification" | "automatic-speech-recognition" | "text-to-speech" | "document-question-answering" | "image-to-text" | "zero-shot-audio-classification" | "zero-shot-image-classification" | "zero-shot-object-detection";
352
225
  model_path: string;
226
+ mrl?: boolean | undefined;
227
+ native_dimensions?: number | undefined;
228
+ normalize?: boolean | undefined;
229
+ 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
+ pooling?: "cls" | "last_token" | "mean" | undefined;
231
+ use_external_data_format?: boolean | undefined;
353
232
  };
233
+ tasks?: string[] | undefined;
234
+ title?: string | undefined;
354
235
  }>;
355
- readonly CountTokensTask: AiProviderRunFn<{
236
+ readonly CountTokensTask: import("@workglow/ai").AiProviderRunFn<{
356
237
  model: string | {
357
238
  [x: string]: unknown;
358
- title?: string | undefined;
359
239
  description?: string | undefined;
360
- model_id?: string | undefined;
361
- tasks?: string[] | undefined;
362
240
  metadata?: {
363
241
  [x: string]: unknown;
364
242
  } | undefined;
243
+ model_id?: string | undefined;
365
244
  provider: string;
366
245
  provider_config: {
367
246
  [x: string]: unknown;
368
247
  credential_key?: string | undefined;
369
248
  };
249
+ tasks?: string[] | undefined;
250
+ title?: string | undefined;
370
251
  };
371
252
  text: string | string[];
372
253
  }, {
373
254
  count: number | number[];
374
255
  }, {
375
- title?: string | undefined;
376
256
  description?: string | undefined;
377
- model_id?: string | undefined;
378
- tasks?: string[] | undefined;
379
257
  metadata?: {
380
258
  [x: string]: unknown;
381
259
  } | undefined;
260
+ model_id?: string | undefined;
382
261
  provider: "HF_TRANSFORMERS_ONNX";
383
262
  provider_config: {
384
- normalize?: boolean | undefined;
385
- dtype?: "auto" | "fp32" | "fp16" | "q8" | "int8" | "uint8" | "q4" | "bnb4" | "q4f16" | undefined;
386
- device?: "cpu" | "gpu" | "webgpu" | "wasm" | "metal" | undefined;
263
+ device?: "cpu" | "gpu" | "metal" | "wasm" | "webgpu" | undefined;
264
+ dtype?: "auto" | "bnb4" | "fp16" | "fp32" | "int8" | "q4" | "q4f16" | "q8" | "uint8" | undefined;
387
265
  execution_providers?: string[] | undefined;
388
- intra_op_num_threads?: number | undefined;
389
266
  inter_op_num_threads?: number | undefined;
390
- use_external_data_format?: boolean | undefined;
391
- pooling?: "mean" | "last_token" | "cls" | undefined;
267
+ intra_op_num_threads?: number | undefined;
392
268
  language_style?: string | undefined;
393
- mrl?: boolean | undefined;
394
- pipeline: "feature-extraction";
395
269
  model_path: string;
270
+ mrl?: boolean | undefined;
396
271
  native_dimensions: number;
397
- } | {
398
272
  normalize?: boolean | undefined;
399
- dtype?: "auto" | "fp32" | "fp16" | "q8" | "int8" | "uint8" | "q4" | "bnb4" | "q4f16" | undefined;
400
- device?: "cpu" | "gpu" | "webgpu" | "wasm" | "metal" | undefined;
273
+ pipeline: "feature-extraction";
274
+ pooling?: "cls" | "last_token" | "mean" | undefined;
275
+ use_external_data_format?: boolean | undefined;
276
+ } | {
277
+ device?: "cpu" | "gpu" | "metal" | "wasm" | "webgpu" | undefined;
278
+ dtype?: "auto" | "bnb4" | "fp16" | "fp32" | "int8" | "q4" | "q4f16" | "q8" | "uint8" | undefined;
401
279
  execution_providers?: string[] | undefined;
402
- intra_op_num_threads?: number | undefined;
403
280
  inter_op_num_threads?: number | undefined;
404
- use_external_data_format?: boolean | undefined;
405
- native_dimensions?: number | undefined;
406
- pooling?: "mean" | "last_token" | "cls" | undefined;
281
+ intra_op_num_threads?: number | undefined;
407
282
  language_style?: string | undefined;
408
- mrl?: boolean | undefined;
409
- pipeline: "fill-mask" | "token-classification" | "text-generation" | "text2text-generation" | "text-classification" | "summarization" | "translation" | "zero-shot-classification" | "question-answering" | "background-removal" | "image-segmentation" | "depth-estimation" | "image-classification" | "image-to-image" | "object-detection" | "image-feature-extraction" | "audio-classification" | "automatic-speech-recognition" | "text-to-speech" | "document-question-answering" | "image-to-text" | "zero-shot-audio-classification" | "zero-shot-image-classification" | "zero-shot-object-detection";
410
283
  model_path: string;
284
+ mrl?: boolean | undefined;
285
+ native_dimensions?: number | undefined;
286
+ normalize?: boolean | undefined;
287
+ 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
+ pooling?: "cls" | "last_token" | "mean" | undefined;
289
+ use_external_data_format?: boolean | undefined;
411
290
  };
291
+ tasks?: string[] | undefined;
292
+ title?: string | undefined;
412
293
  }>;
413
- readonly TextEmbeddingTask: AiProviderRunFn<{
294
+ readonly TextEmbeddingTask: import("@workglow/ai").AiProviderRunFn<{
414
295
  model: string | {
415
296
  [x: string]: unknown;
416
- title?: string | undefined;
417
297
  description?: string | undefined;
418
- model_id?: string | undefined;
419
- tasks?: string[] | undefined;
420
298
  metadata?: {
421
299
  [x: string]: unknown;
422
300
  } | undefined;
301
+ model_id?: string | undefined;
423
302
  provider: string;
424
303
  provider_config: {
425
304
  [x: string]: unknown;
426
305
  credential_key?: string | undefined;
427
306
  };
307
+ tasks?: string[] | undefined;
308
+ title?: string | undefined;
428
309
  };
429
310
  text: string | string[];
430
311
  }, {
431
- vector: TypedArray | TypedArray[];
312
+ vector: import("@workglow/util").TypedArray[] | import("@workglow/util").TypedArray;
432
313
  }, {
433
- title?: string | undefined;
434
314
  description?: string | undefined;
435
- model_id?: string | undefined;
436
- tasks?: string[] | undefined;
437
315
  metadata?: {
438
316
  [x: string]: unknown;
439
317
  } | undefined;
318
+ model_id?: string | undefined;
440
319
  provider: "HF_TRANSFORMERS_ONNX";
441
320
  provider_config: {
442
- normalize?: boolean | undefined;
443
- dtype?: "auto" | "fp32" | "fp16" | "q8" | "int8" | "uint8" | "q4" | "bnb4" | "q4f16" | undefined;
444
- device?: "cpu" | "gpu" | "webgpu" | "wasm" | "metal" | undefined;
321
+ device?: "cpu" | "gpu" | "metal" | "wasm" | "webgpu" | undefined;
322
+ dtype?: "auto" | "bnb4" | "fp16" | "fp32" | "int8" | "q4" | "q4f16" | "q8" | "uint8" | undefined;
445
323
  execution_providers?: string[] | undefined;
446
- intra_op_num_threads?: number | undefined;
447
324
  inter_op_num_threads?: number | undefined;
448
- use_external_data_format?: boolean | undefined;
449
- pooling?: "mean" | "last_token" | "cls" | undefined;
325
+ intra_op_num_threads?: number | undefined;
450
326
  language_style?: string | undefined;
451
- mrl?: boolean | undefined;
452
- pipeline: "feature-extraction";
453
327
  model_path: string;
328
+ mrl?: boolean | undefined;
454
329
  native_dimensions: number;
455
- } | {
456
330
  normalize?: boolean | undefined;
457
- dtype?: "auto" | "fp32" | "fp16" | "q8" | "int8" | "uint8" | "q4" | "bnb4" | "q4f16" | undefined;
458
- device?: "cpu" | "gpu" | "webgpu" | "wasm" | "metal" | undefined;
331
+ pipeline: "feature-extraction";
332
+ pooling?: "cls" | "last_token" | "mean" | undefined;
333
+ use_external_data_format?: boolean | undefined;
334
+ } | {
335
+ device?: "cpu" | "gpu" | "metal" | "wasm" | "webgpu" | undefined;
336
+ dtype?: "auto" | "bnb4" | "fp16" | "fp32" | "int8" | "q4" | "q4f16" | "q8" | "uint8" | undefined;
459
337
  execution_providers?: string[] | undefined;
460
- intra_op_num_threads?: number | undefined;
461
338
  inter_op_num_threads?: number | undefined;
462
- use_external_data_format?: boolean | undefined;
463
- native_dimensions?: number | undefined;
464
- pooling?: "mean" | "last_token" | "cls" | undefined;
339
+ intra_op_num_threads?: number | undefined;
465
340
  language_style?: string | undefined;
466
- mrl?: boolean | undefined;
467
- pipeline: "fill-mask" | "token-classification" | "text-generation" | "text2text-generation" | "text-classification" | "summarization" | "translation" | "zero-shot-classification" | "question-answering" | "background-removal" | "image-segmentation" | "depth-estimation" | "image-classification" | "image-to-image" | "object-detection" | "image-feature-extraction" | "audio-classification" | "automatic-speech-recognition" | "text-to-speech" | "document-question-answering" | "image-to-text" | "zero-shot-audio-classification" | "zero-shot-image-classification" | "zero-shot-object-detection";
468
341
  model_path: string;
342
+ mrl?: boolean | undefined;
343
+ native_dimensions?: number | undefined;
344
+ normalize?: boolean | undefined;
345
+ 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
+ pooling?: "cls" | "last_token" | "mean" | undefined;
347
+ use_external_data_format?: boolean | undefined;
469
348
  };
349
+ tasks?: string[] | undefined;
350
+ title?: string | undefined;
470
351
  }>;
471
- readonly TextGenerationTask: AiProviderRunFn<{
472
- maxTokens?: number | undefined;
473
- temperature?: number | undefined;
474
- topP?: number | undefined;
352
+ readonly TextGenerationTask: import("@workglow/ai").AiProviderRunFn<{
475
353
  frequencyPenalty?: number | undefined;
476
- presencePenalty?: number | undefined;
354
+ maxTokens?: number | undefined;
477
355
  model: string | {
478
356
  [x: string]: unknown;
479
- title?: string | undefined;
480
357
  description?: string | undefined;
481
- model_id?: string | undefined;
482
- tasks?: string[] | undefined;
483
358
  metadata?: {
484
359
  [x: string]: unknown;
485
360
  } | undefined;
361
+ model_id?: string | undefined;
486
362
  provider: string;
487
363
  provider_config: {
488
364
  [x: string]: unknown;
489
365
  credential_key?: string | undefined;
490
366
  };
367
+ tasks?: string[] | undefined;
368
+ title?: string | undefined;
491
369
  };
370
+ presencePenalty?: number | undefined;
492
371
  prompt: string | string[];
372
+ temperature?: number | undefined;
373
+ topP?: number | undefined;
493
374
  }, {
494
375
  text: string | string[];
495
376
  }, {
496
- title?: string | undefined;
497
377
  description?: string | undefined;
498
- model_id?: string | undefined;
499
- tasks?: string[] | undefined;
500
378
  metadata?: {
501
379
  [x: string]: unknown;
502
380
  } | undefined;
381
+ model_id?: string | undefined;
503
382
  provider: "HF_TRANSFORMERS_ONNX";
504
383
  provider_config: {
505
- normalize?: boolean | undefined;
506
- dtype?: "auto" | "fp32" | "fp16" | "q8" | "int8" | "uint8" | "q4" | "bnb4" | "q4f16" | undefined;
507
- device?: "cpu" | "gpu" | "webgpu" | "wasm" | "metal" | undefined;
384
+ device?: "cpu" | "gpu" | "metal" | "wasm" | "webgpu" | undefined;
385
+ dtype?: "auto" | "bnb4" | "fp16" | "fp32" | "int8" | "q4" | "q4f16" | "q8" | "uint8" | undefined;
508
386
  execution_providers?: string[] | undefined;
509
- intra_op_num_threads?: number | undefined;
510
387
  inter_op_num_threads?: number | undefined;
511
- use_external_data_format?: boolean | undefined;
512
- pooling?: "mean" | "last_token" | "cls" | undefined;
388
+ intra_op_num_threads?: number | undefined;
513
389
  language_style?: string | undefined;
514
- mrl?: boolean | undefined;
515
- pipeline: "feature-extraction";
516
390
  model_path: string;
391
+ mrl?: boolean | undefined;
517
392
  native_dimensions: number;
518
- } | {
519
393
  normalize?: boolean | undefined;
520
- dtype?: "auto" | "fp32" | "fp16" | "q8" | "int8" | "uint8" | "q4" | "bnb4" | "q4f16" | undefined;
521
- device?: "cpu" | "gpu" | "webgpu" | "wasm" | "metal" | undefined;
394
+ pipeline: "feature-extraction";
395
+ pooling?: "cls" | "last_token" | "mean" | undefined;
396
+ use_external_data_format?: boolean | undefined;
397
+ } | {
398
+ device?: "cpu" | "gpu" | "metal" | "wasm" | "webgpu" | undefined;
399
+ dtype?: "auto" | "bnb4" | "fp16" | "fp32" | "int8" | "q4" | "q4f16" | "q8" | "uint8" | undefined;
522
400
  execution_providers?: string[] | undefined;
523
- intra_op_num_threads?: number | undefined;
524
401
  inter_op_num_threads?: number | undefined;
525
- use_external_data_format?: boolean | undefined;
526
- native_dimensions?: number | undefined;
527
- pooling?: "mean" | "last_token" | "cls" | undefined;
402
+ intra_op_num_threads?: number | undefined;
528
403
  language_style?: string | undefined;
529
- mrl?: boolean | undefined;
530
- pipeline: "fill-mask" | "token-classification" | "text-generation" | "text2text-generation" | "text-classification" | "summarization" | "translation" | "zero-shot-classification" | "question-answering" | "background-removal" | "image-segmentation" | "depth-estimation" | "image-classification" | "image-to-image" | "object-detection" | "image-feature-extraction" | "audio-classification" | "automatic-speech-recognition" | "text-to-speech" | "document-question-answering" | "image-to-text" | "zero-shot-audio-classification" | "zero-shot-image-classification" | "zero-shot-object-detection";
531
404
  model_path: string;
405
+ mrl?: boolean | undefined;
406
+ native_dimensions?: number | undefined;
407
+ normalize?: boolean | undefined;
408
+ 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
+ pooling?: "cls" | "last_token" | "mean" | undefined;
410
+ use_external_data_format?: boolean | undefined;
532
411
  };
412
+ tasks?: string[] | undefined;
413
+ title?: string | undefined;
533
414
  }>;
534
- readonly TextQuestionAnswerTask: AiProviderRunFn<{
415
+ readonly TextQuestionAnswerTask: import("@workglow/ai").AiProviderRunFn<{
416
+ context: string | string[];
535
417
  model: string | {
536
418
  [x: string]: unknown;
537
- title?: string | undefined;
538
419
  description?: string | undefined;
539
- model_id?: string | undefined;
540
- tasks?: string[] | undefined;
541
420
  metadata?: {
542
421
  [x: string]: unknown;
543
422
  } | undefined;
423
+ model_id?: string | undefined;
544
424
  provider: string;
545
425
  provider_config: {
546
426
  [x: string]: unknown;
547
427
  credential_key?: string | undefined;
548
428
  };
429
+ tasks?: string[] | undefined;
430
+ title?: string | undefined;
549
431
  };
550
- context: string | string[];
551
432
  question: string | string[];
552
433
  }, {
553
434
  text: string | string[];
554
435
  }, {
555
- title?: string | undefined;
556
436
  description?: string | undefined;
557
- model_id?: string | undefined;
558
- tasks?: string[] | undefined;
559
437
  metadata?: {
560
438
  [x: string]: unknown;
561
439
  } | undefined;
440
+ model_id?: string | undefined;
562
441
  provider: "HF_TRANSFORMERS_ONNX";
563
442
  provider_config: {
564
- normalize?: boolean | undefined;
565
- dtype?: "auto" | "fp32" | "fp16" | "q8" | "int8" | "uint8" | "q4" | "bnb4" | "q4f16" | undefined;
566
- device?: "cpu" | "gpu" | "webgpu" | "wasm" | "metal" | undefined;
443
+ device?: "cpu" | "gpu" | "metal" | "wasm" | "webgpu" | undefined;
444
+ dtype?: "auto" | "bnb4" | "fp16" | "fp32" | "int8" | "q4" | "q4f16" | "q8" | "uint8" | undefined;
567
445
  execution_providers?: string[] | undefined;
568
- intra_op_num_threads?: number | undefined;
569
446
  inter_op_num_threads?: number | undefined;
570
- use_external_data_format?: boolean | undefined;
571
- pooling?: "mean" | "last_token" | "cls" | undefined;
447
+ intra_op_num_threads?: number | undefined;
572
448
  language_style?: string | undefined;
573
- mrl?: boolean | undefined;
574
- pipeline: "feature-extraction";
575
449
  model_path: string;
450
+ mrl?: boolean | undefined;
576
451
  native_dimensions: number;
577
- } | {
578
452
  normalize?: boolean | undefined;
579
- dtype?: "auto" | "fp32" | "fp16" | "q8" | "int8" | "uint8" | "q4" | "bnb4" | "q4f16" | undefined;
580
- device?: "cpu" | "gpu" | "webgpu" | "wasm" | "metal" | undefined;
453
+ pipeline: "feature-extraction";
454
+ pooling?: "cls" | "last_token" | "mean" | undefined;
455
+ use_external_data_format?: boolean | undefined;
456
+ } | {
457
+ device?: "cpu" | "gpu" | "metal" | "wasm" | "webgpu" | undefined;
458
+ dtype?: "auto" | "bnb4" | "fp16" | "fp32" | "int8" | "q4" | "q4f16" | "q8" | "uint8" | undefined;
581
459
  execution_providers?: string[] | undefined;
582
- intra_op_num_threads?: number | undefined;
583
460
  inter_op_num_threads?: number | undefined;
584
- use_external_data_format?: boolean | undefined;
585
- native_dimensions?: number | undefined;
586
- pooling?: "mean" | "last_token" | "cls" | undefined;
461
+ intra_op_num_threads?: number | undefined;
587
462
  language_style?: string | undefined;
588
- mrl?: boolean | undefined;
589
- pipeline: "fill-mask" | "token-classification" | "text-generation" | "text2text-generation" | "text-classification" | "summarization" | "translation" | "zero-shot-classification" | "question-answering" | "background-removal" | "image-segmentation" | "depth-estimation" | "image-classification" | "image-to-image" | "object-detection" | "image-feature-extraction" | "audio-classification" | "automatic-speech-recognition" | "text-to-speech" | "document-question-answering" | "image-to-text" | "zero-shot-audio-classification" | "zero-shot-image-classification" | "zero-shot-object-detection";
590
463
  model_path: string;
464
+ mrl?: boolean | undefined;
465
+ native_dimensions?: number | undefined;
466
+ normalize?: boolean | undefined;
467
+ 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
+ pooling?: "cls" | "last_token" | "mean" | undefined;
469
+ use_external_data_format?: boolean | undefined;
591
470
  };
471
+ tasks?: string[] | undefined;
472
+ title?: string | undefined;
592
473
  }>;
593
- readonly TextLanguageDetectionTask: AiProviderRunFn<{
474
+ readonly TextLanguageDetectionTask: import("@workglow/ai").AiProviderRunFn<{
594
475
  maxLanguages?: number | undefined;
595
476
  model: string | {
596
477
  [x: string]: unknown;
597
- title?: string | undefined;
598
478
  description?: string | undefined;
599
- model_id?: string | undefined;
600
- tasks?: string[] | undefined;
601
479
  metadata?: {
602
480
  [x: string]: unknown;
603
481
  } | undefined;
482
+ model_id?: string | undefined;
604
483
  provider: string;
605
484
  provider_config: {
606
485
  [x: string]: unknown;
607
486
  credential_key?: string | undefined;
608
487
  };
488
+ tasks?: string[] | undefined;
489
+ title?: string | undefined;
609
490
  };
610
491
  text: string | string[];
611
492
  }, {
612
493
  languages: {
613
- score: number;
614
494
  language: string;
615
- }[] | {
616
495
  score: number;
496
+ }[][] | {
617
497
  language: string;
618
- }[][];
498
+ score: number;
499
+ }[];
619
500
  }, {
620
- title?: string | undefined;
621
501
  description?: string | undefined;
622
- model_id?: string | undefined;
623
- tasks?: string[] | undefined;
624
502
  metadata?: {
625
503
  [x: string]: unknown;
626
504
  } | undefined;
505
+ model_id?: string | undefined;
627
506
  provider: "HF_TRANSFORMERS_ONNX";
628
507
  provider_config: {
629
- normalize?: boolean | undefined;
630
- dtype?: "auto" | "fp32" | "fp16" | "q8" | "int8" | "uint8" | "q4" | "bnb4" | "q4f16" | undefined;
631
- device?: "cpu" | "gpu" | "webgpu" | "wasm" | "metal" | undefined;
508
+ device?: "cpu" | "gpu" | "metal" | "wasm" | "webgpu" | undefined;
509
+ dtype?: "auto" | "bnb4" | "fp16" | "fp32" | "int8" | "q4" | "q4f16" | "q8" | "uint8" | undefined;
632
510
  execution_providers?: string[] | undefined;
633
- intra_op_num_threads?: number | undefined;
634
511
  inter_op_num_threads?: number | undefined;
635
- use_external_data_format?: boolean | undefined;
636
- pooling?: "mean" | "last_token" | "cls" | undefined;
512
+ intra_op_num_threads?: number | undefined;
637
513
  language_style?: string | undefined;
638
- mrl?: boolean | undefined;
639
- pipeline: "feature-extraction";
640
514
  model_path: string;
515
+ mrl?: boolean | undefined;
641
516
  native_dimensions: number;
642
- } | {
643
517
  normalize?: boolean | undefined;
644
- dtype?: "auto" | "fp32" | "fp16" | "q8" | "int8" | "uint8" | "q4" | "bnb4" | "q4f16" | undefined;
645
- device?: "cpu" | "gpu" | "webgpu" | "wasm" | "metal" | undefined;
518
+ pipeline: "feature-extraction";
519
+ pooling?: "cls" | "last_token" | "mean" | undefined;
520
+ use_external_data_format?: boolean | undefined;
521
+ } | {
522
+ device?: "cpu" | "gpu" | "metal" | "wasm" | "webgpu" | undefined;
523
+ dtype?: "auto" | "bnb4" | "fp16" | "fp32" | "int8" | "q4" | "q4f16" | "q8" | "uint8" | undefined;
646
524
  execution_providers?: string[] | undefined;
647
- intra_op_num_threads?: number | undefined;
648
525
  inter_op_num_threads?: number | undefined;
649
- use_external_data_format?: boolean | undefined;
650
- native_dimensions?: number | undefined;
651
- pooling?: "mean" | "last_token" | "cls" | undefined;
526
+ intra_op_num_threads?: number | undefined;
652
527
  language_style?: string | undefined;
653
- mrl?: boolean | undefined;
654
- pipeline: "fill-mask" | "token-classification" | "text-generation" | "text2text-generation" | "text-classification" | "summarization" | "translation" | "zero-shot-classification" | "question-answering" | "background-removal" | "image-segmentation" | "depth-estimation" | "image-classification" | "image-to-image" | "object-detection" | "image-feature-extraction" | "audio-classification" | "automatic-speech-recognition" | "text-to-speech" | "document-question-answering" | "image-to-text" | "zero-shot-audio-classification" | "zero-shot-image-classification" | "zero-shot-object-detection";
655
528
  model_path: string;
529
+ mrl?: boolean | undefined;
530
+ native_dimensions?: number | undefined;
531
+ normalize?: boolean | undefined;
532
+ 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
+ pooling?: "cls" | "last_token" | "mean" | undefined;
534
+ use_external_data_format?: boolean | undefined;
656
535
  };
536
+ tasks?: string[] | undefined;
537
+ title?: string | undefined;
657
538
  }>;
658
- readonly TextClassificationTask: AiProviderRunFn<{
539
+ readonly TextClassificationTask: import("@workglow/ai").AiProviderRunFn<{
659
540
  candidateLabels?: string[] | undefined;
660
541
  maxCategories?: number | undefined;
661
542
  model: string | {
662
543
  [x: string]: unknown;
663
- title?: string | undefined;
664
544
  description?: string | undefined;
665
- model_id?: string | undefined;
666
- tasks?: string[] | undefined;
667
545
  metadata?: {
668
546
  [x: string]: unknown;
669
547
  } | undefined;
548
+ model_id?: string | undefined;
670
549
  provider: string;
671
550
  provider_config: {
672
551
  [x: string]: unknown;
673
552
  credential_key?: string | undefined;
674
553
  };
554
+ tasks?: string[] | undefined;
555
+ title?: string | undefined;
675
556
  };
676
557
  text: string | string[];
677
558
  }, {
678
559
  categories: {
679
560
  label: string;
680
561
  score: number;
681
- }[] | {
562
+ }[][] | {
682
563
  label: string;
683
564
  score: number;
684
- }[][];
565
+ }[];
685
566
  }, {
686
- title?: string | undefined;
687
567
  description?: string | undefined;
688
- model_id?: string | undefined;
689
- tasks?: string[] | undefined;
690
568
  metadata?: {
691
569
  [x: string]: unknown;
692
570
  } | undefined;
571
+ model_id?: string | undefined;
693
572
  provider: "HF_TRANSFORMERS_ONNX";
694
573
  provider_config: {
695
- normalize?: boolean | undefined;
696
- dtype?: "auto" | "fp32" | "fp16" | "q8" | "int8" | "uint8" | "q4" | "bnb4" | "q4f16" | undefined;
697
- device?: "cpu" | "gpu" | "webgpu" | "wasm" | "metal" | undefined;
574
+ device?: "cpu" | "gpu" | "metal" | "wasm" | "webgpu" | undefined;
575
+ dtype?: "auto" | "bnb4" | "fp16" | "fp32" | "int8" | "q4" | "q4f16" | "q8" | "uint8" | undefined;
698
576
  execution_providers?: string[] | undefined;
699
- intra_op_num_threads?: number | undefined;
700
577
  inter_op_num_threads?: number | undefined;
701
- use_external_data_format?: boolean | undefined;
702
- pooling?: "mean" | "last_token" | "cls" | undefined;
578
+ intra_op_num_threads?: number | undefined;
703
579
  language_style?: string | undefined;
704
- mrl?: boolean | undefined;
705
- pipeline: "feature-extraction";
706
580
  model_path: string;
581
+ mrl?: boolean | undefined;
707
582
  native_dimensions: number;
708
- } | {
709
583
  normalize?: boolean | undefined;
710
- dtype?: "auto" | "fp32" | "fp16" | "q8" | "int8" | "uint8" | "q4" | "bnb4" | "q4f16" | undefined;
711
- device?: "cpu" | "gpu" | "webgpu" | "wasm" | "metal" | undefined;
584
+ pipeline: "feature-extraction";
585
+ pooling?: "cls" | "last_token" | "mean" | undefined;
586
+ use_external_data_format?: boolean | undefined;
587
+ } | {
588
+ device?: "cpu" | "gpu" | "metal" | "wasm" | "webgpu" | undefined;
589
+ dtype?: "auto" | "bnb4" | "fp16" | "fp32" | "int8" | "q4" | "q4f16" | "q8" | "uint8" | undefined;
712
590
  execution_providers?: string[] | undefined;
713
- intra_op_num_threads?: number | undefined;
714
591
  inter_op_num_threads?: number | undefined;
715
- use_external_data_format?: boolean | undefined;
716
- native_dimensions?: number | undefined;
717
- pooling?: "mean" | "last_token" | "cls" | undefined;
592
+ intra_op_num_threads?: number | undefined;
718
593
  language_style?: string | undefined;
719
- mrl?: boolean | undefined;
720
- pipeline: "fill-mask" | "token-classification" | "text-generation" | "text2text-generation" | "text-classification" | "summarization" | "translation" | "zero-shot-classification" | "question-answering" | "background-removal" | "image-segmentation" | "depth-estimation" | "image-classification" | "image-to-image" | "object-detection" | "image-feature-extraction" | "audio-classification" | "automatic-speech-recognition" | "text-to-speech" | "document-question-answering" | "image-to-text" | "zero-shot-audio-classification" | "zero-shot-image-classification" | "zero-shot-object-detection";
721
594
  model_path: string;
595
+ mrl?: boolean | undefined;
596
+ native_dimensions?: number | undefined;
597
+ normalize?: boolean | undefined;
598
+ 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
+ pooling?: "cls" | "last_token" | "mean" | undefined;
600
+ use_external_data_format?: boolean | undefined;
722
601
  };
602
+ tasks?: string[] | undefined;
603
+ title?: string | undefined;
723
604
  }>;
724
- readonly TextFillMaskTask: AiProviderRunFn<{
605
+ readonly TextFillMaskTask: import("@workglow/ai").AiProviderRunFn<{
725
606
  model: string | {
726
607
  [x: string]: unknown;
727
- title?: string | undefined;
728
608
  description?: string | undefined;
729
- model_id?: string | undefined;
730
- tasks?: string[] | undefined;
731
609
  metadata?: {
732
610
  [x: string]: unknown;
733
611
  } | undefined;
612
+ model_id?: string | undefined;
734
613
  provider: string;
735
614
  provider_config: {
736
615
  [x: string]: unknown;
737
616
  credential_key?: string | undefined;
738
617
  };
618
+ tasks?: string[] | undefined;
619
+ title?: string | undefined;
739
620
  };
740
621
  text: string | string[];
741
622
  }, {
742
623
  predictions: {
743
- score: number;
744
624
  entity: string;
745
- sequence: string;
746
- }[] | {
747
625
  score: number;
626
+ sequence: string;
627
+ }[][] | {
748
628
  entity: string;
629
+ score: number;
749
630
  sequence: string;
750
- }[][];
631
+ }[];
751
632
  }, {
752
- title?: string | undefined;
753
633
  description?: string | undefined;
754
- model_id?: string | undefined;
755
- tasks?: string[] | undefined;
756
634
  metadata?: {
757
635
  [x: string]: unknown;
758
636
  } | undefined;
637
+ model_id?: string | undefined;
759
638
  provider: "HF_TRANSFORMERS_ONNX";
760
639
  provider_config: {
761
- normalize?: boolean | undefined;
762
- dtype?: "auto" | "fp32" | "fp16" | "q8" | "int8" | "uint8" | "q4" | "bnb4" | "q4f16" | undefined;
763
- device?: "cpu" | "gpu" | "webgpu" | "wasm" | "metal" | undefined;
640
+ device?: "cpu" | "gpu" | "metal" | "wasm" | "webgpu" | undefined;
641
+ dtype?: "auto" | "bnb4" | "fp16" | "fp32" | "int8" | "q4" | "q4f16" | "q8" | "uint8" | undefined;
764
642
  execution_providers?: string[] | undefined;
765
- intra_op_num_threads?: number | undefined;
766
643
  inter_op_num_threads?: number | undefined;
767
- use_external_data_format?: boolean | undefined;
768
- pooling?: "mean" | "last_token" | "cls" | undefined;
644
+ intra_op_num_threads?: number | undefined;
769
645
  language_style?: string | undefined;
770
- mrl?: boolean | undefined;
771
- pipeline: "feature-extraction";
772
646
  model_path: string;
647
+ mrl?: boolean | undefined;
773
648
  native_dimensions: number;
774
- } | {
775
649
  normalize?: boolean | undefined;
776
- dtype?: "auto" | "fp32" | "fp16" | "q8" | "int8" | "uint8" | "q4" | "bnb4" | "q4f16" | undefined;
777
- device?: "cpu" | "gpu" | "webgpu" | "wasm" | "metal" | undefined;
650
+ pipeline: "feature-extraction";
651
+ pooling?: "cls" | "last_token" | "mean" | undefined;
652
+ use_external_data_format?: boolean | undefined;
653
+ } | {
654
+ device?: "cpu" | "gpu" | "metal" | "wasm" | "webgpu" | undefined;
655
+ dtype?: "auto" | "bnb4" | "fp16" | "fp32" | "int8" | "q4" | "q4f16" | "q8" | "uint8" | undefined;
778
656
  execution_providers?: string[] | undefined;
779
- intra_op_num_threads?: number | undefined;
780
657
  inter_op_num_threads?: number | undefined;
781
- use_external_data_format?: boolean | undefined;
782
- native_dimensions?: number | undefined;
783
- pooling?: "mean" | "last_token" | "cls" | undefined;
658
+ intra_op_num_threads?: number | undefined;
784
659
  language_style?: string | undefined;
785
- mrl?: boolean | undefined;
786
- pipeline: "fill-mask" | "token-classification" | "text-generation" | "text2text-generation" | "text-classification" | "summarization" | "translation" | "zero-shot-classification" | "question-answering" | "background-removal" | "image-segmentation" | "depth-estimation" | "image-classification" | "image-to-image" | "object-detection" | "image-feature-extraction" | "audio-classification" | "automatic-speech-recognition" | "text-to-speech" | "document-question-answering" | "image-to-text" | "zero-shot-audio-classification" | "zero-shot-image-classification" | "zero-shot-object-detection";
787
660
  model_path: string;
661
+ mrl?: boolean | undefined;
662
+ native_dimensions?: number | undefined;
663
+ normalize?: boolean | undefined;
664
+ 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
+ pooling?: "cls" | "last_token" | "mean" | undefined;
666
+ use_external_data_format?: boolean | undefined;
788
667
  };
668
+ tasks?: string[] | undefined;
669
+ title?: string | undefined;
789
670
  }>;
790
- readonly TextNamedEntityRecognitionTask: AiProviderRunFn<{
671
+ readonly TextNamedEntityRecognitionTask: import("@workglow/ai").AiProviderRunFn<{
791
672
  blockList?: string[] | undefined;
792
673
  model: string | {
793
674
  [x: string]: unknown;
794
- title?: string | undefined;
795
675
  description?: string | undefined;
796
- model_id?: string | undefined;
797
- tasks?: string[] | undefined;
798
676
  metadata?: {
799
677
  [x: string]: unknown;
800
678
  } | undefined;
679
+ model_id?: string | undefined;
801
680
  provider: string;
802
681
  provider_config: {
803
682
  [x: string]: unknown;
804
683
  credential_key?: string | undefined;
805
684
  };
685
+ tasks?: string[] | undefined;
686
+ title?: string | undefined;
806
687
  };
807
688
  text: string | string[];
808
689
  }, {
809
690
  entities: {
810
- score: number;
811
691
  entity: string;
812
- word: string;
813
- }[] | {
814
692
  score: number;
693
+ word: string;
694
+ }[][] | {
815
695
  entity: string;
696
+ score: number;
816
697
  word: string;
817
- }[][];
698
+ }[];
818
699
  }, {
819
- title?: string | undefined;
820
700
  description?: string | undefined;
821
- model_id?: string | undefined;
822
- tasks?: string[] | undefined;
823
701
  metadata?: {
824
702
  [x: string]: unknown;
825
703
  } | undefined;
704
+ model_id?: string | undefined;
826
705
  provider: "HF_TRANSFORMERS_ONNX";
827
706
  provider_config: {
828
- normalize?: boolean | undefined;
829
- dtype?: "auto" | "fp32" | "fp16" | "q8" | "int8" | "uint8" | "q4" | "bnb4" | "q4f16" | undefined;
830
- device?: "cpu" | "gpu" | "webgpu" | "wasm" | "metal" | undefined;
707
+ device?: "cpu" | "gpu" | "metal" | "wasm" | "webgpu" | undefined;
708
+ dtype?: "auto" | "bnb4" | "fp16" | "fp32" | "int8" | "q4" | "q4f16" | "q8" | "uint8" | undefined;
831
709
  execution_providers?: string[] | undefined;
832
- intra_op_num_threads?: number | undefined;
833
710
  inter_op_num_threads?: number | undefined;
834
- use_external_data_format?: boolean | undefined;
835
- pooling?: "mean" | "last_token" | "cls" | undefined;
711
+ intra_op_num_threads?: number | undefined;
836
712
  language_style?: string | undefined;
837
- mrl?: boolean | undefined;
838
- pipeline: "feature-extraction";
839
713
  model_path: string;
714
+ mrl?: boolean | undefined;
840
715
  native_dimensions: number;
841
- } | {
842
716
  normalize?: boolean | undefined;
843
- dtype?: "auto" | "fp32" | "fp16" | "q8" | "int8" | "uint8" | "q4" | "bnb4" | "q4f16" | undefined;
844
- device?: "cpu" | "gpu" | "webgpu" | "wasm" | "metal" | undefined;
717
+ pipeline: "feature-extraction";
718
+ pooling?: "cls" | "last_token" | "mean" | undefined;
719
+ use_external_data_format?: boolean | undefined;
720
+ } | {
721
+ device?: "cpu" | "gpu" | "metal" | "wasm" | "webgpu" | undefined;
722
+ dtype?: "auto" | "bnb4" | "fp16" | "fp32" | "int8" | "q4" | "q4f16" | "q8" | "uint8" | undefined;
845
723
  execution_providers?: string[] | undefined;
846
- intra_op_num_threads?: number | undefined;
847
724
  inter_op_num_threads?: number | undefined;
848
- use_external_data_format?: boolean | undefined;
849
- native_dimensions?: number | undefined;
850
- pooling?: "mean" | "last_token" | "cls" | undefined;
725
+ intra_op_num_threads?: number | undefined;
851
726
  language_style?: string | undefined;
852
- mrl?: boolean | undefined;
853
- pipeline: "fill-mask" | "token-classification" | "text-generation" | "text2text-generation" | "text-classification" | "summarization" | "translation" | "zero-shot-classification" | "question-answering" | "background-removal" | "image-segmentation" | "depth-estimation" | "image-classification" | "image-to-image" | "object-detection" | "image-feature-extraction" | "audio-classification" | "automatic-speech-recognition" | "text-to-speech" | "document-question-answering" | "image-to-text" | "zero-shot-audio-classification" | "zero-shot-image-classification" | "zero-shot-object-detection";
854
727
  model_path: string;
728
+ mrl?: boolean | undefined;
729
+ native_dimensions?: number | undefined;
730
+ normalize?: boolean | undefined;
731
+ 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
+ pooling?: "cls" | "last_token" | "mean" | undefined;
733
+ use_external_data_format?: boolean | undefined;
855
734
  };
735
+ tasks?: string[] | undefined;
736
+ title?: string | undefined;
856
737
  }>;
857
- readonly TextRewriterTask: AiProviderRunFn<{
738
+ readonly TextRewriterTask: import("@workglow/ai").AiProviderRunFn<{
858
739
  model: string | {
859
740
  [x: string]: unknown;
860
- title?: string | undefined;
861
741
  description?: string | undefined;
862
- model_id?: string | undefined;
863
- tasks?: string[] | undefined;
864
742
  metadata?: {
865
743
  [x: string]: unknown;
866
744
  } | undefined;
745
+ model_id?: string | undefined;
867
746
  provider: string;
868
747
  provider_config: {
869
748
  [x: string]: unknown;
870
749
  credential_key?: string | undefined;
871
750
  };
751
+ tasks?: string[] | undefined;
752
+ title?: string | undefined;
872
753
  };
873
754
  prompt: string;
874
755
  text: string | string[];
875
756
  }, {
876
757
  text: string | string[];
877
758
  }, {
878
- title?: string | undefined;
879
759
  description?: string | undefined;
880
- model_id?: string | undefined;
881
- tasks?: string[] | undefined;
882
760
  metadata?: {
883
761
  [x: string]: unknown;
884
762
  } | undefined;
763
+ model_id?: string | undefined;
885
764
  provider: "HF_TRANSFORMERS_ONNX";
886
765
  provider_config: {
887
- normalize?: boolean | undefined;
888
- dtype?: "auto" | "fp32" | "fp16" | "q8" | "int8" | "uint8" | "q4" | "bnb4" | "q4f16" | undefined;
889
- device?: "cpu" | "gpu" | "webgpu" | "wasm" | "metal" | undefined;
766
+ device?: "cpu" | "gpu" | "metal" | "wasm" | "webgpu" | undefined;
767
+ dtype?: "auto" | "bnb4" | "fp16" | "fp32" | "int8" | "q4" | "q4f16" | "q8" | "uint8" | undefined;
890
768
  execution_providers?: string[] | undefined;
891
- intra_op_num_threads?: number | undefined;
892
769
  inter_op_num_threads?: number | undefined;
893
- use_external_data_format?: boolean | undefined;
894
- pooling?: "mean" | "last_token" | "cls" | undefined;
770
+ intra_op_num_threads?: number | undefined;
895
771
  language_style?: string | undefined;
896
- mrl?: boolean | undefined;
897
- pipeline: "feature-extraction";
898
772
  model_path: string;
773
+ mrl?: boolean | undefined;
899
774
  native_dimensions: number;
900
- } | {
901
775
  normalize?: boolean | undefined;
902
- dtype?: "auto" | "fp32" | "fp16" | "q8" | "int8" | "uint8" | "q4" | "bnb4" | "q4f16" | undefined;
903
- device?: "cpu" | "gpu" | "webgpu" | "wasm" | "metal" | undefined;
776
+ pipeline: "feature-extraction";
777
+ pooling?: "cls" | "last_token" | "mean" | undefined;
778
+ use_external_data_format?: boolean | undefined;
779
+ } | {
780
+ device?: "cpu" | "gpu" | "metal" | "wasm" | "webgpu" | undefined;
781
+ dtype?: "auto" | "bnb4" | "fp16" | "fp32" | "int8" | "q4" | "q4f16" | "q8" | "uint8" | undefined;
904
782
  execution_providers?: string[] | undefined;
905
- intra_op_num_threads?: number | undefined;
906
783
  inter_op_num_threads?: number | undefined;
907
- use_external_data_format?: boolean | undefined;
908
- native_dimensions?: number | undefined;
909
- pooling?: "mean" | "last_token" | "cls" | undefined;
784
+ intra_op_num_threads?: number | undefined;
910
785
  language_style?: string | undefined;
911
- mrl?: boolean | undefined;
912
- pipeline: "fill-mask" | "token-classification" | "text-generation" | "text2text-generation" | "text-classification" | "summarization" | "translation" | "zero-shot-classification" | "question-answering" | "background-removal" | "image-segmentation" | "depth-estimation" | "image-classification" | "image-to-image" | "object-detection" | "image-feature-extraction" | "audio-classification" | "automatic-speech-recognition" | "text-to-speech" | "document-question-answering" | "image-to-text" | "zero-shot-audio-classification" | "zero-shot-image-classification" | "zero-shot-object-detection";
913
786
  model_path: string;
787
+ mrl?: boolean | undefined;
788
+ native_dimensions?: number | undefined;
789
+ normalize?: boolean | undefined;
790
+ 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
+ pooling?: "cls" | "last_token" | "mean" | undefined;
792
+ use_external_data_format?: boolean | undefined;
914
793
  };
794
+ tasks?: string[] | undefined;
795
+ title?: string | undefined;
915
796
  }>;
916
- readonly TextSummaryTask: AiProviderRunFn<{
797
+ readonly TextSummaryTask: import("@workglow/ai").AiProviderRunFn<{
917
798
  model: string | {
918
799
  [x: string]: unknown;
919
- title?: string | undefined;
920
800
  description?: string | undefined;
921
- model_id?: string | undefined;
922
- tasks?: string[] | undefined;
923
801
  metadata?: {
924
802
  [x: string]: unknown;
925
803
  } | undefined;
804
+ model_id?: string | undefined;
926
805
  provider: string;
927
806
  provider_config: {
928
807
  [x: string]: unknown;
929
808
  credential_key?: string | undefined;
930
809
  };
810
+ tasks?: string[] | undefined;
811
+ title?: string | undefined;
931
812
  };
932
813
  text: string | string[];
933
814
  }, {
934
815
  text: string | string[];
935
816
  }, {
936
- title?: string | undefined;
937
817
  description?: string | undefined;
938
- model_id?: string | undefined;
939
- tasks?: string[] | undefined;
940
818
  metadata?: {
941
819
  [x: string]: unknown;
942
820
  } | undefined;
821
+ model_id?: string | undefined;
943
822
  provider: "HF_TRANSFORMERS_ONNX";
944
823
  provider_config: {
945
- normalize?: boolean | undefined;
946
- dtype?: "auto" | "fp32" | "fp16" | "q8" | "int8" | "uint8" | "q4" | "bnb4" | "q4f16" | undefined;
947
- device?: "cpu" | "gpu" | "webgpu" | "wasm" | "metal" | undefined;
824
+ device?: "cpu" | "gpu" | "metal" | "wasm" | "webgpu" | undefined;
825
+ dtype?: "auto" | "bnb4" | "fp16" | "fp32" | "int8" | "q4" | "q4f16" | "q8" | "uint8" | undefined;
948
826
  execution_providers?: string[] | undefined;
949
- intra_op_num_threads?: number | undefined;
950
827
  inter_op_num_threads?: number | undefined;
951
- use_external_data_format?: boolean | undefined;
952
- pooling?: "mean" | "last_token" | "cls" | undefined;
828
+ intra_op_num_threads?: number | undefined;
953
829
  language_style?: string | undefined;
954
- mrl?: boolean | undefined;
955
- pipeline: "feature-extraction";
956
830
  model_path: string;
831
+ mrl?: boolean | undefined;
957
832
  native_dimensions: number;
958
- } | {
959
833
  normalize?: boolean | undefined;
960
- dtype?: "auto" | "fp32" | "fp16" | "q8" | "int8" | "uint8" | "q4" | "bnb4" | "q4f16" | undefined;
961
- device?: "cpu" | "gpu" | "webgpu" | "wasm" | "metal" | undefined;
834
+ pipeline: "feature-extraction";
835
+ pooling?: "cls" | "last_token" | "mean" | undefined;
836
+ use_external_data_format?: boolean | undefined;
837
+ } | {
838
+ device?: "cpu" | "gpu" | "metal" | "wasm" | "webgpu" | undefined;
839
+ dtype?: "auto" | "bnb4" | "fp16" | "fp32" | "int8" | "q4" | "q4f16" | "q8" | "uint8" | undefined;
962
840
  execution_providers?: string[] | undefined;
963
- intra_op_num_threads?: number | undefined;
964
841
  inter_op_num_threads?: number | undefined;
965
- use_external_data_format?: boolean | undefined;
966
- native_dimensions?: number | undefined;
967
- pooling?: "mean" | "last_token" | "cls" | undefined;
842
+ intra_op_num_threads?: number | undefined;
968
843
  language_style?: string | undefined;
969
- mrl?: boolean | undefined;
970
- pipeline: "fill-mask" | "token-classification" | "text-generation" | "text2text-generation" | "text-classification" | "summarization" | "translation" | "zero-shot-classification" | "question-answering" | "background-removal" | "image-segmentation" | "depth-estimation" | "image-classification" | "image-to-image" | "object-detection" | "image-feature-extraction" | "audio-classification" | "automatic-speech-recognition" | "text-to-speech" | "document-question-answering" | "image-to-text" | "zero-shot-audio-classification" | "zero-shot-image-classification" | "zero-shot-object-detection";
971
844
  model_path: string;
845
+ mrl?: boolean | undefined;
846
+ native_dimensions?: number | undefined;
847
+ normalize?: boolean | undefined;
848
+ 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
+ pooling?: "cls" | "last_token" | "mean" | undefined;
850
+ use_external_data_format?: boolean | undefined;
972
851
  };
852
+ tasks?: string[] | undefined;
853
+ title?: string | undefined;
973
854
  }>;
974
- readonly TextTranslationTask: AiProviderRunFn<{
855
+ readonly TextTranslationTask: import("@workglow/ai").AiProviderRunFn<{
975
856
  model: string | {
976
857
  [x: string]: unknown;
977
- title?: string | undefined;
978
858
  description?: string | undefined;
979
- model_id?: string | undefined;
980
- tasks?: string[] | undefined;
981
859
  metadata?: {
982
860
  [x: string]: unknown;
983
861
  } | undefined;
862
+ model_id?: string | undefined;
984
863
  provider: string;
985
864
  provider_config: {
986
865
  [x: string]: unknown;
987
866
  credential_key?: string | undefined;
988
867
  };
868
+ tasks?: string[] | undefined;
869
+ title?: string | undefined;
989
870
  };
990
- text: string | string[];
991
871
  source_lang: string;
992
872
  target_lang: string;
993
- }, {
994
873
  text: string | string[];
874
+ }, {
995
875
  target_lang: string;
876
+ text: string | string[];
996
877
  }, {
997
- title?: string | undefined;
998
878
  description?: string | undefined;
999
- model_id?: string | undefined;
1000
- tasks?: string[] | undefined;
1001
879
  metadata?: {
1002
880
  [x: string]: unknown;
1003
881
  } | undefined;
882
+ model_id?: string | undefined;
1004
883
  provider: "HF_TRANSFORMERS_ONNX";
1005
884
  provider_config: {
1006
- normalize?: boolean | undefined;
1007
- dtype?: "auto" | "fp32" | "fp16" | "q8" | "int8" | "uint8" | "q4" | "bnb4" | "q4f16" | undefined;
1008
- device?: "cpu" | "gpu" | "webgpu" | "wasm" | "metal" | undefined;
885
+ device?: "cpu" | "gpu" | "metal" | "wasm" | "webgpu" | undefined;
886
+ dtype?: "auto" | "bnb4" | "fp16" | "fp32" | "int8" | "q4" | "q4f16" | "q8" | "uint8" | undefined;
1009
887
  execution_providers?: string[] | undefined;
1010
- intra_op_num_threads?: number | undefined;
1011
888
  inter_op_num_threads?: number | undefined;
1012
- use_external_data_format?: boolean | undefined;
1013
- pooling?: "mean" | "last_token" | "cls" | undefined;
889
+ intra_op_num_threads?: number | undefined;
1014
890
  language_style?: string | undefined;
1015
- mrl?: boolean | undefined;
1016
- pipeline: "feature-extraction";
1017
891
  model_path: string;
892
+ mrl?: boolean | undefined;
1018
893
  native_dimensions: number;
1019
- } | {
1020
894
  normalize?: boolean | undefined;
1021
- dtype?: "auto" | "fp32" | "fp16" | "q8" | "int8" | "uint8" | "q4" | "bnb4" | "q4f16" | undefined;
1022
- device?: "cpu" | "gpu" | "webgpu" | "wasm" | "metal" | undefined;
895
+ pipeline: "feature-extraction";
896
+ pooling?: "cls" | "last_token" | "mean" | undefined;
897
+ use_external_data_format?: boolean | undefined;
898
+ } | {
899
+ device?: "cpu" | "gpu" | "metal" | "wasm" | "webgpu" | undefined;
900
+ dtype?: "auto" | "bnb4" | "fp16" | "fp32" | "int8" | "q4" | "q4f16" | "q8" | "uint8" | undefined;
1023
901
  execution_providers?: string[] | undefined;
1024
- intra_op_num_threads?: number | undefined;
1025
902
  inter_op_num_threads?: number | undefined;
1026
- use_external_data_format?: boolean | undefined;
1027
- native_dimensions?: number | undefined;
1028
- pooling?: "mean" | "last_token" | "cls" | undefined;
903
+ intra_op_num_threads?: number | undefined;
1029
904
  language_style?: string | undefined;
1030
- mrl?: boolean | undefined;
1031
- pipeline: "fill-mask" | "token-classification" | "text-generation" | "text2text-generation" | "text-classification" | "summarization" | "translation" | "zero-shot-classification" | "question-answering" | "background-removal" | "image-segmentation" | "depth-estimation" | "image-classification" | "image-to-image" | "object-detection" | "image-feature-extraction" | "audio-classification" | "automatic-speech-recognition" | "text-to-speech" | "document-question-answering" | "image-to-text" | "zero-shot-audio-classification" | "zero-shot-image-classification" | "zero-shot-object-detection";
1032
905
  model_path: string;
906
+ mrl?: boolean | undefined;
907
+ native_dimensions?: number | undefined;
908
+ normalize?: boolean | undefined;
909
+ 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
+ pooling?: "cls" | "last_token" | "mean" | undefined;
911
+ use_external_data_format?: boolean | undefined;
1033
912
  };
913
+ tasks?: string[] | undefined;
914
+ title?: string | undefined;
1034
915
  }>;
1035
- readonly ImageSegmentationTask: AiProviderRunFn<{
1036
- threshold?: number | undefined;
916
+ readonly ImageSegmentationTask: import("@workglow/ai").AiProviderRunFn<{
917
+ image: string | {
918
+ channels: number;
919
+ data: {
920
+ [x: string]: unknown;
921
+ } | {
922
+ channels: number;
923
+ data: number[];
924
+ height: number;
925
+ rawChannels?: number | undefined;
926
+ width: number;
927
+ };
928
+ height: number;
929
+ width: number;
930
+ };
1037
931
  maskThreshold?: number | undefined;
1038
932
  model: string | {
1039
933
  [x: string]: unknown;
1040
- title?: string | undefined;
1041
934
  description?: string | undefined;
1042
- model_id?: string | undefined;
1043
- tasks?: string[] | undefined;
1044
935
  metadata?: {
1045
936
  [x: string]: unknown;
1046
937
  } | undefined;
938
+ model_id?: string | undefined;
1047
939
  provider: string;
1048
940
  provider_config: {
1049
941
  [x: string]: unknown;
1050
942
  credential_key?: string | undefined;
1051
943
  };
944
+ tasks?: string[] | undefined;
945
+ title?: string | undefined;
1052
946
  };
1053
- image: string | {
1054
- data: {
1055
- [x: string]: unknown;
1056
- } | {
1057
- rawChannels?: number | undefined;
1058
- data: number[];
1059
- width: number;
1060
- height: number;
1061
- channels: number;
1062
- };
1063
- width: number;
1064
- height: number;
1065
- channels: number;
1066
- };
947
+ threshold?: number | undefined;
1067
948
  }, {
1068
949
  masks: {
1069
950
  label: string;
1070
- score: number;
1071
951
  mask: {
1072
952
  [x: string]: unknown;
1073
953
  };
1074
- }[] | {
1075
- label: string;
1076
954
  score: number;
955
+ }[][] | {
956
+ label: string;
1077
957
  mask: {
1078
958
  [x: string]: unknown;
1079
959
  };
1080
- }[][];
960
+ score: number;
961
+ }[];
1081
962
  }, {
1082
- title?: string | undefined;
1083
963
  description?: string | undefined;
1084
- model_id?: string | undefined;
1085
- tasks?: string[] | undefined;
1086
964
  metadata?: {
1087
965
  [x: string]: unknown;
1088
966
  } | undefined;
967
+ model_id?: string | undefined;
1089
968
  provider: "HF_TRANSFORMERS_ONNX";
1090
969
  provider_config: {
1091
- normalize?: boolean | undefined;
1092
- dtype?: "auto" | "fp32" | "fp16" | "q8" | "int8" | "uint8" | "q4" | "bnb4" | "q4f16" | undefined;
1093
- device?: "cpu" | "gpu" | "webgpu" | "wasm" | "metal" | undefined;
970
+ device?: "cpu" | "gpu" | "metal" | "wasm" | "webgpu" | undefined;
971
+ dtype?: "auto" | "bnb4" | "fp16" | "fp32" | "int8" | "q4" | "q4f16" | "q8" | "uint8" | undefined;
1094
972
  execution_providers?: string[] | undefined;
1095
- intra_op_num_threads?: number | undefined;
1096
973
  inter_op_num_threads?: number | undefined;
1097
- use_external_data_format?: boolean | undefined;
1098
- pooling?: "mean" | "last_token" | "cls" | undefined;
974
+ intra_op_num_threads?: number | undefined;
1099
975
  language_style?: string | undefined;
1100
- mrl?: boolean | undefined;
1101
- pipeline: "feature-extraction";
1102
976
  model_path: string;
977
+ mrl?: boolean | undefined;
1103
978
  native_dimensions: number;
1104
- } | {
1105
979
  normalize?: boolean | undefined;
1106
- dtype?: "auto" | "fp32" | "fp16" | "q8" | "int8" | "uint8" | "q4" | "bnb4" | "q4f16" | undefined;
1107
- device?: "cpu" | "gpu" | "webgpu" | "wasm" | "metal" | undefined;
980
+ pipeline: "feature-extraction";
981
+ pooling?: "cls" | "last_token" | "mean" | undefined;
982
+ use_external_data_format?: boolean | undefined;
983
+ } | {
984
+ device?: "cpu" | "gpu" | "metal" | "wasm" | "webgpu" | undefined;
985
+ dtype?: "auto" | "bnb4" | "fp16" | "fp32" | "int8" | "q4" | "q4f16" | "q8" | "uint8" | undefined;
1108
986
  execution_providers?: string[] | undefined;
1109
- intra_op_num_threads?: number | undefined;
1110
987
  inter_op_num_threads?: number | undefined;
1111
- use_external_data_format?: boolean | undefined;
1112
- native_dimensions?: number | undefined;
1113
- pooling?: "mean" | "last_token" | "cls" | undefined;
988
+ intra_op_num_threads?: number | undefined;
1114
989
  language_style?: string | undefined;
1115
- mrl?: boolean | undefined;
1116
- pipeline: "fill-mask" | "token-classification" | "text-generation" | "text2text-generation" | "text-classification" | "summarization" | "translation" | "zero-shot-classification" | "question-answering" | "background-removal" | "image-segmentation" | "depth-estimation" | "image-classification" | "image-to-image" | "object-detection" | "image-feature-extraction" | "audio-classification" | "automatic-speech-recognition" | "text-to-speech" | "document-question-answering" | "image-to-text" | "zero-shot-audio-classification" | "zero-shot-image-classification" | "zero-shot-object-detection";
1117
990
  model_path: string;
991
+ mrl?: boolean | undefined;
992
+ native_dimensions?: number | undefined;
993
+ normalize?: boolean | undefined;
994
+ 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
+ pooling?: "cls" | "last_token" | "mean" | undefined;
996
+ use_external_data_format?: boolean | undefined;
1118
997
  };
998
+ tasks?: string[] | undefined;
999
+ title?: string | undefined;
1119
1000
  }>;
1120
- readonly ImageToTextTask: AiProviderRunFn<{
1001
+ readonly ImageToTextTask: import("@workglow/ai").AiProviderRunFn<{
1002
+ image: string | {
1003
+ channels: number;
1004
+ data: {
1005
+ [x: string]: unknown;
1006
+ } | {
1007
+ channels: number;
1008
+ data: number[];
1009
+ height: number;
1010
+ rawChannels?: number | undefined;
1011
+ width: number;
1012
+ };
1013
+ height: number;
1014
+ width: number;
1015
+ };
1121
1016
  maxTokens?: number | undefined;
1122
1017
  model: string | {
1123
1018
  [x: string]: unknown;
1124
- title?: string | undefined;
1125
1019
  description?: string | undefined;
1126
- model_id?: string | undefined;
1127
- tasks?: string[] | undefined;
1128
1020
  metadata?: {
1129
1021
  [x: string]: unknown;
1130
1022
  } | undefined;
1023
+ model_id?: string | undefined;
1131
1024
  provider: string;
1132
1025
  provider_config: {
1133
1026
  [x: string]: unknown;
1134
1027
  credential_key?: string | undefined;
1135
1028
  };
1136
- };
1137
- image: string | {
1138
- data: {
1139
- [x: string]: unknown;
1140
- } | {
1141
- rawChannels?: number | undefined;
1142
- data: number[];
1143
- width: number;
1144
- height: number;
1145
- channels: number;
1146
- };
1147
- width: number;
1148
- height: number;
1149
- channels: number;
1029
+ tasks?: string[] | undefined;
1030
+ title?: string | undefined;
1150
1031
  };
1151
1032
  }, {
1152
1033
  text: string | string[];
1153
1034
  }, {
1154
- title?: string | undefined;
1155
1035
  description?: string | undefined;
1156
- model_id?: string | undefined;
1157
- tasks?: string[] | undefined;
1158
1036
  metadata?: {
1159
1037
  [x: string]: unknown;
1160
1038
  } | undefined;
1039
+ model_id?: string | undefined;
1161
1040
  provider: "HF_TRANSFORMERS_ONNX";
1162
1041
  provider_config: {
1163
- normalize?: boolean | undefined;
1164
- dtype?: "auto" | "fp32" | "fp16" | "q8" | "int8" | "uint8" | "q4" | "bnb4" | "q4f16" | undefined;
1165
- device?: "cpu" | "gpu" | "webgpu" | "wasm" | "metal" | undefined;
1042
+ device?: "cpu" | "gpu" | "metal" | "wasm" | "webgpu" | undefined;
1043
+ dtype?: "auto" | "bnb4" | "fp16" | "fp32" | "int8" | "q4" | "q4f16" | "q8" | "uint8" | undefined;
1166
1044
  execution_providers?: string[] | undefined;
1167
- intra_op_num_threads?: number | undefined;
1168
1045
  inter_op_num_threads?: number | undefined;
1169
- use_external_data_format?: boolean | undefined;
1170
- pooling?: "mean" | "last_token" | "cls" | undefined;
1046
+ intra_op_num_threads?: number | undefined;
1171
1047
  language_style?: string | undefined;
1172
- mrl?: boolean | undefined;
1173
- pipeline: "feature-extraction";
1174
1048
  model_path: string;
1049
+ mrl?: boolean | undefined;
1175
1050
  native_dimensions: number;
1176
- } | {
1177
1051
  normalize?: boolean | undefined;
1178
- dtype?: "auto" | "fp32" | "fp16" | "q8" | "int8" | "uint8" | "q4" | "bnb4" | "q4f16" | undefined;
1179
- device?: "cpu" | "gpu" | "webgpu" | "wasm" | "metal" | undefined;
1052
+ pipeline: "feature-extraction";
1053
+ pooling?: "cls" | "last_token" | "mean" | undefined;
1054
+ use_external_data_format?: boolean | undefined;
1055
+ } | {
1056
+ device?: "cpu" | "gpu" | "metal" | "wasm" | "webgpu" | undefined;
1057
+ dtype?: "auto" | "bnb4" | "fp16" | "fp32" | "int8" | "q4" | "q4f16" | "q8" | "uint8" | undefined;
1180
1058
  execution_providers?: string[] | undefined;
1181
- intra_op_num_threads?: number | undefined;
1182
1059
  inter_op_num_threads?: number | undefined;
1183
- use_external_data_format?: boolean | undefined;
1184
- native_dimensions?: number | undefined;
1185
- pooling?: "mean" | "last_token" | "cls" | undefined;
1060
+ intra_op_num_threads?: number | undefined;
1186
1061
  language_style?: string | undefined;
1187
- mrl?: boolean | undefined;
1188
- pipeline: "fill-mask" | "token-classification" | "text-generation" | "text2text-generation" | "text-classification" | "summarization" | "translation" | "zero-shot-classification" | "question-answering" | "background-removal" | "image-segmentation" | "depth-estimation" | "image-classification" | "image-to-image" | "object-detection" | "image-feature-extraction" | "audio-classification" | "automatic-speech-recognition" | "text-to-speech" | "document-question-answering" | "image-to-text" | "zero-shot-audio-classification" | "zero-shot-image-classification" | "zero-shot-object-detection";
1189
1062
  model_path: string;
1063
+ mrl?: boolean | undefined;
1064
+ native_dimensions?: number | undefined;
1065
+ normalize?: boolean | undefined;
1066
+ 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
+ pooling?: "cls" | "last_token" | "mean" | undefined;
1068
+ use_external_data_format?: boolean | undefined;
1190
1069
  };
1070
+ tasks?: string[] | undefined;
1071
+ title?: string | undefined;
1191
1072
  }>;
1192
- readonly BackgroundRemovalTask: AiProviderRunFn<{
1073
+ readonly BackgroundRemovalTask: import("@workglow/ai").AiProviderRunFn<{
1074
+ image: string | {
1075
+ channels: number;
1076
+ data: {
1077
+ [x: string]: unknown;
1078
+ } | {
1079
+ channels: number;
1080
+ data: number[];
1081
+ height: number;
1082
+ rawChannels?: number | undefined;
1083
+ width: number;
1084
+ };
1085
+ height: number;
1086
+ width: number;
1087
+ };
1193
1088
  model: string | {
1194
1089
  [x: string]: unknown;
1195
- title?: string | undefined;
1196
1090
  description?: string | undefined;
1197
- model_id?: string | undefined;
1198
- tasks?: string[] | undefined;
1199
1091
  metadata?: {
1200
1092
  [x: string]: unknown;
1201
1093
  } | undefined;
1094
+ model_id?: string | undefined;
1202
1095
  provider: string;
1203
1096
  provider_config: {
1204
1097
  [x: string]: unknown;
1205
1098
  credential_key?: string | undefined;
1206
1099
  };
1207
- };
1208
- image: string | {
1209
- data: {
1210
- [x: string]: unknown;
1211
- } | {
1212
- rawChannels?: number | undefined;
1213
- data: number[];
1214
- width: number;
1215
- height: number;
1216
- channels: number;
1217
- };
1218
- width: number;
1219
- height: number;
1220
- channels: number;
1100
+ tasks?: string[] | undefined;
1101
+ title?: string | undefined;
1221
1102
  };
1222
1103
  }, {
1223
1104
  image: string;
1224
1105
  }, {
1225
- title?: string | undefined;
1226
1106
  description?: string | undefined;
1227
- model_id?: string | undefined;
1228
- tasks?: string[] | undefined;
1229
1107
  metadata?: {
1230
1108
  [x: string]: unknown;
1231
1109
  } | undefined;
1110
+ model_id?: string | undefined;
1232
1111
  provider: "HF_TRANSFORMERS_ONNX";
1233
1112
  provider_config: {
1234
- normalize?: boolean | undefined;
1235
- dtype?: "auto" | "fp32" | "fp16" | "q8" | "int8" | "uint8" | "q4" | "bnb4" | "q4f16" | undefined;
1236
- device?: "cpu" | "gpu" | "webgpu" | "wasm" | "metal" | undefined;
1113
+ device?: "cpu" | "gpu" | "metal" | "wasm" | "webgpu" | undefined;
1114
+ dtype?: "auto" | "bnb4" | "fp16" | "fp32" | "int8" | "q4" | "q4f16" | "q8" | "uint8" | undefined;
1237
1115
  execution_providers?: string[] | undefined;
1238
- intra_op_num_threads?: number | undefined;
1239
1116
  inter_op_num_threads?: number | undefined;
1240
- use_external_data_format?: boolean | undefined;
1241
- pooling?: "mean" | "last_token" | "cls" | undefined;
1117
+ intra_op_num_threads?: number | undefined;
1242
1118
  language_style?: string | undefined;
1243
- mrl?: boolean | undefined;
1244
- pipeline: "feature-extraction";
1245
1119
  model_path: string;
1120
+ mrl?: boolean | undefined;
1246
1121
  native_dimensions: number;
1247
- } | {
1248
1122
  normalize?: boolean | undefined;
1249
- dtype?: "auto" | "fp32" | "fp16" | "q8" | "int8" | "uint8" | "q4" | "bnb4" | "q4f16" | undefined;
1250
- device?: "cpu" | "gpu" | "webgpu" | "wasm" | "metal" | undefined;
1123
+ pipeline: "feature-extraction";
1124
+ pooling?: "cls" | "last_token" | "mean" | undefined;
1125
+ use_external_data_format?: boolean | undefined;
1126
+ } | {
1127
+ device?: "cpu" | "gpu" | "metal" | "wasm" | "webgpu" | undefined;
1128
+ dtype?: "auto" | "bnb4" | "fp16" | "fp32" | "int8" | "q4" | "q4f16" | "q8" | "uint8" | undefined;
1251
1129
  execution_providers?: string[] | undefined;
1252
- intra_op_num_threads?: number | undefined;
1253
1130
  inter_op_num_threads?: number | undefined;
1254
- use_external_data_format?: boolean | undefined;
1255
- native_dimensions?: number | undefined;
1256
- pooling?: "mean" | "last_token" | "cls" | undefined;
1131
+ intra_op_num_threads?: number | undefined;
1257
1132
  language_style?: string | undefined;
1258
- mrl?: boolean | undefined;
1259
- pipeline: "fill-mask" | "token-classification" | "text-generation" | "text2text-generation" | "text-classification" | "summarization" | "translation" | "zero-shot-classification" | "question-answering" | "background-removal" | "image-segmentation" | "depth-estimation" | "image-classification" | "image-to-image" | "object-detection" | "image-feature-extraction" | "audio-classification" | "automatic-speech-recognition" | "text-to-speech" | "document-question-answering" | "image-to-text" | "zero-shot-audio-classification" | "zero-shot-image-classification" | "zero-shot-object-detection";
1260
1133
  model_path: string;
1134
+ mrl?: boolean | undefined;
1135
+ native_dimensions?: number | undefined;
1136
+ normalize?: boolean | undefined;
1137
+ 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
+ pooling?: "cls" | "last_token" | "mean" | undefined;
1139
+ use_external_data_format?: boolean | undefined;
1261
1140
  };
1141
+ tasks?: string[] | undefined;
1142
+ title?: string | undefined;
1262
1143
  }>;
1263
- readonly ImageEmbeddingTask: AiProviderRunFn<{
1144
+ readonly ImageEmbeddingTask: import("@workglow/ai").AiProviderRunFn<{
1145
+ image: string | {
1146
+ channels: number;
1147
+ data: {
1148
+ [x: string]: unknown;
1149
+ } | {
1150
+ channels: number;
1151
+ data: number[];
1152
+ height: number;
1153
+ rawChannels?: number | undefined;
1154
+ width: number;
1155
+ };
1156
+ height: number;
1157
+ width: number;
1158
+ };
1264
1159
  model: string | {
1265
1160
  [x: string]: unknown;
1266
- title?: string | undefined;
1267
1161
  description?: string | undefined;
1268
- model_id?: string | undefined;
1269
- tasks?: string[] | undefined;
1270
1162
  metadata?: {
1271
1163
  [x: string]: unknown;
1272
1164
  } | undefined;
1165
+ model_id?: string | undefined;
1273
1166
  provider: string;
1274
1167
  provider_config: {
1275
1168
  [x: string]: unknown;
1276
1169
  credential_key?: string | undefined;
1277
1170
  };
1278
- };
1279
- image: string | {
1280
- data: {
1281
- [x: string]: unknown;
1282
- } | {
1283
- rawChannels?: number | undefined;
1284
- data: number[];
1285
- width: number;
1286
- height: number;
1287
- channels: number;
1288
- };
1289
- width: number;
1290
- height: number;
1291
- channels: number;
1171
+ tasks?: string[] | undefined;
1172
+ title?: string | undefined;
1292
1173
  };
1293
1174
  }, {
1294
- vector: TypedArray;
1175
+ vector: import("@workglow/util").TypedArray;
1295
1176
  }, {
1296
- title?: string | undefined;
1297
1177
  description?: string | undefined;
1298
- model_id?: string | undefined;
1299
- tasks?: string[] | undefined;
1300
1178
  metadata?: {
1301
1179
  [x: string]: unknown;
1302
1180
  } | undefined;
1181
+ model_id?: string | undefined;
1303
1182
  provider: "HF_TRANSFORMERS_ONNX";
1304
1183
  provider_config: {
1305
- normalize?: boolean | undefined;
1306
- dtype?: "auto" | "fp32" | "fp16" | "q8" | "int8" | "uint8" | "q4" | "bnb4" | "q4f16" | undefined;
1307
- device?: "cpu" | "gpu" | "webgpu" | "wasm" | "metal" | undefined;
1184
+ device?: "cpu" | "gpu" | "metal" | "wasm" | "webgpu" | undefined;
1185
+ dtype?: "auto" | "bnb4" | "fp16" | "fp32" | "int8" | "q4" | "q4f16" | "q8" | "uint8" | undefined;
1308
1186
  execution_providers?: string[] | undefined;
1309
- intra_op_num_threads?: number | undefined;
1310
1187
  inter_op_num_threads?: number | undefined;
1311
- use_external_data_format?: boolean | undefined;
1312
- pooling?: "mean" | "last_token" | "cls" | undefined;
1188
+ intra_op_num_threads?: number | undefined;
1313
1189
  language_style?: string | undefined;
1314
- mrl?: boolean | undefined;
1315
- pipeline: "feature-extraction";
1316
1190
  model_path: string;
1191
+ mrl?: boolean | undefined;
1317
1192
  native_dimensions: number;
1318
- } | {
1319
1193
  normalize?: boolean | undefined;
1320
- dtype?: "auto" | "fp32" | "fp16" | "q8" | "int8" | "uint8" | "q4" | "bnb4" | "q4f16" | undefined;
1321
- device?: "cpu" | "gpu" | "webgpu" | "wasm" | "metal" | undefined;
1194
+ pipeline: "feature-extraction";
1195
+ pooling?: "cls" | "last_token" | "mean" | undefined;
1196
+ use_external_data_format?: boolean | undefined;
1197
+ } | {
1198
+ device?: "cpu" | "gpu" | "metal" | "wasm" | "webgpu" | undefined;
1199
+ dtype?: "auto" | "bnb4" | "fp16" | "fp32" | "int8" | "q4" | "q4f16" | "q8" | "uint8" | undefined;
1322
1200
  execution_providers?: string[] | undefined;
1323
- intra_op_num_threads?: number | undefined;
1324
1201
  inter_op_num_threads?: number | undefined;
1325
- use_external_data_format?: boolean | undefined;
1326
- native_dimensions?: number | undefined;
1327
- pooling?: "mean" | "last_token" | "cls" | undefined;
1202
+ intra_op_num_threads?: number | undefined;
1328
1203
  language_style?: string | undefined;
1329
- mrl?: boolean | undefined;
1330
- pipeline: "fill-mask" | "token-classification" | "text-generation" | "text2text-generation" | "text-classification" | "summarization" | "translation" | "zero-shot-classification" | "question-answering" | "background-removal" | "image-segmentation" | "depth-estimation" | "image-classification" | "image-to-image" | "object-detection" | "image-feature-extraction" | "audio-classification" | "automatic-speech-recognition" | "text-to-speech" | "document-question-answering" | "image-to-text" | "zero-shot-audio-classification" | "zero-shot-image-classification" | "zero-shot-object-detection";
1331
1204
  model_path: string;
1205
+ mrl?: boolean | undefined;
1206
+ native_dimensions?: number | undefined;
1207
+ normalize?: boolean | undefined;
1208
+ 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
+ pooling?: "cls" | "last_token" | "mean" | undefined;
1210
+ use_external_data_format?: boolean | undefined;
1332
1211
  };
1212
+ tasks?: string[] | undefined;
1213
+ title?: string | undefined;
1333
1214
  }>;
1334
- readonly ImageClassificationTask: AiProviderRunFn<{
1335
- maxCategories?: number | undefined;
1215
+ readonly ImageClassificationTask: import("@workglow/ai").AiProviderRunFn<{
1336
1216
  categories?: string[] | undefined;
1217
+ image: string | {
1218
+ channels: number;
1219
+ data: {
1220
+ [x: string]: unknown;
1221
+ } | {
1222
+ channels: number;
1223
+ data: number[];
1224
+ height: number;
1225
+ rawChannels?: number | undefined;
1226
+ width: number;
1227
+ };
1228
+ height: number;
1229
+ width: number;
1230
+ };
1231
+ maxCategories?: number | undefined;
1337
1232
  model: string | {
1338
1233
  [x: string]: unknown;
1339
- title?: string | undefined;
1340
1234
  description?: string | undefined;
1341
- model_id?: string | undefined;
1342
- tasks?: string[] | undefined;
1343
1235
  metadata?: {
1344
1236
  [x: string]: unknown;
1345
1237
  } | undefined;
1238
+ model_id?: string | undefined;
1346
1239
  provider: string;
1347
1240
  provider_config: {
1348
1241
  [x: string]: unknown;
1349
1242
  credential_key?: string | undefined;
1350
1243
  };
1351
- };
1352
- image: string | {
1353
- data: {
1354
- [x: string]: unknown;
1355
- } | {
1356
- rawChannels?: number | undefined;
1357
- data: number[];
1358
- width: number;
1359
- height: number;
1360
- channels: number;
1361
- };
1362
- width: number;
1363
- height: number;
1364
- channels: number;
1244
+ tasks?: string[] | undefined;
1245
+ title?: string | undefined;
1365
1246
  };
1366
1247
  }, {
1367
1248
  categories: {
1368
1249
  label: string;
1369
1250
  score: number;
1370
- }[] | {
1251
+ }[][] | {
1371
1252
  label: string;
1372
1253
  score: number;
1373
- }[][];
1254
+ }[];
1374
1255
  }, {
1375
- title?: string | undefined;
1376
1256
  description?: string | undefined;
1377
- model_id?: string | undefined;
1378
- tasks?: string[] | undefined;
1379
1257
  metadata?: {
1380
1258
  [x: string]: unknown;
1381
1259
  } | undefined;
1260
+ model_id?: string | undefined;
1382
1261
  provider: "HF_TRANSFORMERS_ONNX";
1383
1262
  provider_config: {
1384
- normalize?: boolean | undefined;
1385
- dtype?: "auto" | "fp32" | "fp16" | "q8" | "int8" | "uint8" | "q4" | "bnb4" | "q4f16" | undefined;
1386
- device?: "cpu" | "gpu" | "webgpu" | "wasm" | "metal" | undefined;
1263
+ device?: "cpu" | "gpu" | "metal" | "wasm" | "webgpu" | undefined;
1264
+ dtype?: "auto" | "bnb4" | "fp16" | "fp32" | "int8" | "q4" | "q4f16" | "q8" | "uint8" | undefined;
1387
1265
  execution_providers?: string[] | undefined;
1388
- intra_op_num_threads?: number | undefined;
1389
1266
  inter_op_num_threads?: number | undefined;
1390
- use_external_data_format?: boolean | undefined;
1391
- pooling?: "mean" | "last_token" | "cls" | undefined;
1267
+ intra_op_num_threads?: number | undefined;
1392
1268
  language_style?: string | undefined;
1393
- mrl?: boolean | undefined;
1394
- pipeline: "feature-extraction";
1395
1269
  model_path: string;
1270
+ mrl?: boolean | undefined;
1396
1271
  native_dimensions: number;
1397
- } | {
1398
1272
  normalize?: boolean | undefined;
1399
- dtype?: "auto" | "fp32" | "fp16" | "q8" | "int8" | "uint8" | "q4" | "bnb4" | "q4f16" | undefined;
1400
- device?: "cpu" | "gpu" | "webgpu" | "wasm" | "metal" | undefined;
1273
+ pipeline: "feature-extraction";
1274
+ pooling?: "cls" | "last_token" | "mean" | undefined;
1275
+ use_external_data_format?: boolean | undefined;
1276
+ } | {
1277
+ device?: "cpu" | "gpu" | "metal" | "wasm" | "webgpu" | undefined;
1278
+ dtype?: "auto" | "bnb4" | "fp16" | "fp32" | "int8" | "q4" | "q4f16" | "q8" | "uint8" | undefined;
1401
1279
  execution_providers?: string[] | undefined;
1402
- intra_op_num_threads?: number | undefined;
1403
1280
  inter_op_num_threads?: number | undefined;
1404
- use_external_data_format?: boolean | undefined;
1405
- native_dimensions?: number | undefined;
1406
- pooling?: "mean" | "last_token" | "cls" | undefined;
1281
+ intra_op_num_threads?: number | undefined;
1407
1282
  language_style?: string | undefined;
1408
- mrl?: boolean | undefined;
1409
- pipeline: "fill-mask" | "token-classification" | "text-generation" | "text2text-generation" | "text-classification" | "summarization" | "translation" | "zero-shot-classification" | "question-answering" | "background-removal" | "image-segmentation" | "depth-estimation" | "image-classification" | "image-to-image" | "object-detection" | "image-feature-extraction" | "audio-classification" | "automatic-speech-recognition" | "text-to-speech" | "document-question-answering" | "image-to-text" | "zero-shot-audio-classification" | "zero-shot-image-classification" | "zero-shot-object-detection";
1410
1283
  model_path: string;
1284
+ mrl?: boolean | undefined;
1285
+ native_dimensions?: number | undefined;
1286
+ normalize?: boolean | undefined;
1287
+ 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
+ pooling?: "cls" | "last_token" | "mean" | undefined;
1289
+ use_external_data_format?: boolean | undefined;
1411
1290
  };
1291
+ tasks?: string[] | undefined;
1292
+ title?: string | undefined;
1412
1293
  }>;
1413
- readonly ObjectDetectionTask: AiProviderRunFn<{
1414
- threshold?: number | undefined;
1294
+ readonly ObjectDetectionTask: import("@workglow/ai").AiProviderRunFn<{
1295
+ image: string | {
1296
+ channels: number;
1297
+ data: {
1298
+ [x: string]: unknown;
1299
+ } | {
1300
+ channels: number;
1301
+ data: number[];
1302
+ height: number;
1303
+ rawChannels?: number | undefined;
1304
+ width: number;
1305
+ };
1306
+ height: number;
1307
+ width: number;
1308
+ };
1415
1309
  labels?: string[] | undefined;
1416
1310
  model: string | {
1417
1311
  [x: string]: unknown;
1418
- title?: string | undefined;
1419
1312
  description?: string | undefined;
1420
- model_id?: string | undefined;
1421
- tasks?: string[] | undefined;
1422
1313
  metadata?: {
1423
1314
  [x: string]: unknown;
1424
1315
  } | undefined;
1316
+ model_id?: string | undefined;
1425
1317
  provider: string;
1426
1318
  provider_config: {
1427
1319
  [x: string]: unknown;
1428
1320
  credential_key?: string | undefined;
1429
1321
  };
1322
+ tasks?: string[] | undefined;
1323
+ title?: string | undefined;
1430
1324
  };
1431
- image: string | {
1432
- data: {
1433
- [x: string]: unknown;
1434
- } | {
1435
- rawChannels?: number | undefined;
1436
- data: number[];
1437
- width: number;
1438
- height: number;
1439
- channels: number;
1440
- };
1441
- width: number;
1442
- height: number;
1443
- channels: number;
1444
- };
1325
+ threshold?: number | undefined;
1445
1326
  }, {
1446
1327
  detections: {
1447
- label: string;
1448
- score: number;
1449
1328
  box: {
1450
- width: number;
1451
1329
  height: number;
1330
+ width: number;
1452
1331
  x: number;
1453
1332
  y: number;
1454
1333
  };
1455
- }[] | {
1456
1334
  label: string;
1457
1335
  score: number;
1336
+ }[][] | {
1458
1337
  box: {
1459
- width: number;
1460
1338
  height: number;
1339
+ width: number;
1461
1340
  x: number;
1462
1341
  y: number;
1463
1342
  };
1464
- }[][];
1343
+ label: string;
1344
+ score: number;
1345
+ }[];
1465
1346
  }, {
1466
- title?: string | undefined;
1467
1347
  description?: string | undefined;
1468
- model_id?: string | undefined;
1469
- tasks?: string[] | undefined;
1470
1348
  metadata?: {
1471
1349
  [x: string]: unknown;
1472
1350
  } | undefined;
1351
+ model_id?: string | undefined;
1473
1352
  provider: "HF_TRANSFORMERS_ONNX";
1474
1353
  provider_config: {
1475
- normalize?: boolean | undefined;
1476
- dtype?: "auto" | "fp32" | "fp16" | "q8" | "int8" | "uint8" | "q4" | "bnb4" | "q4f16" | undefined;
1477
- device?: "cpu" | "gpu" | "webgpu" | "wasm" | "metal" | undefined;
1354
+ device?: "cpu" | "gpu" | "metal" | "wasm" | "webgpu" | undefined;
1355
+ dtype?: "auto" | "bnb4" | "fp16" | "fp32" | "int8" | "q4" | "q4f16" | "q8" | "uint8" | undefined;
1478
1356
  execution_providers?: string[] | undefined;
1479
- intra_op_num_threads?: number | undefined;
1480
1357
  inter_op_num_threads?: number | undefined;
1481
- use_external_data_format?: boolean | undefined;
1482
- pooling?: "mean" | "last_token" | "cls" | undefined;
1358
+ intra_op_num_threads?: number | undefined;
1483
1359
  language_style?: string | undefined;
1484
- mrl?: boolean | undefined;
1485
- pipeline: "feature-extraction";
1486
1360
  model_path: string;
1361
+ mrl?: boolean | undefined;
1487
1362
  native_dimensions: number;
1488
- } | {
1489
1363
  normalize?: boolean | undefined;
1490
- dtype?: "auto" | "fp32" | "fp16" | "q8" | "int8" | "uint8" | "q4" | "bnb4" | "q4f16" | undefined;
1491
- device?: "cpu" | "gpu" | "webgpu" | "wasm" | "metal" | undefined;
1364
+ pipeline: "feature-extraction";
1365
+ pooling?: "cls" | "last_token" | "mean" | undefined;
1366
+ use_external_data_format?: boolean | undefined;
1367
+ } | {
1368
+ device?: "cpu" | "gpu" | "metal" | "wasm" | "webgpu" | undefined;
1369
+ dtype?: "auto" | "bnb4" | "fp16" | "fp32" | "int8" | "q4" | "q4f16" | "q8" | "uint8" | undefined;
1492
1370
  execution_providers?: string[] | undefined;
1493
- intra_op_num_threads?: number | undefined;
1494
1371
  inter_op_num_threads?: number | undefined;
1495
- use_external_data_format?: boolean | undefined;
1496
- native_dimensions?: number | undefined;
1497
- pooling?: "mean" | "last_token" | "cls" | undefined;
1372
+ intra_op_num_threads?: number | undefined;
1498
1373
  language_style?: string | undefined;
1499
- mrl?: boolean | undefined;
1500
- pipeline: "fill-mask" | "token-classification" | "text-generation" | "text2text-generation" | "text-classification" | "summarization" | "translation" | "zero-shot-classification" | "question-answering" | "background-removal" | "image-segmentation" | "depth-estimation" | "image-classification" | "image-to-image" | "object-detection" | "image-feature-extraction" | "audio-classification" | "automatic-speech-recognition" | "text-to-speech" | "document-question-answering" | "image-to-text" | "zero-shot-audio-classification" | "zero-shot-image-classification" | "zero-shot-object-detection";
1501
1374
  model_path: string;
1375
+ mrl?: boolean | undefined;
1376
+ native_dimensions?: number | undefined;
1377
+ normalize?: boolean | undefined;
1378
+ 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
+ pooling?: "cls" | "last_token" | "mean" | undefined;
1380
+ use_external_data_format?: boolean | undefined;
1502
1381
  };
1382
+ tasks?: string[] | undefined;
1383
+ title?: string | undefined;
1503
1384
  }>;
1504
- readonly ToolCallingTask: AiProviderRunFn<ToolCallingTaskInput, {
1385
+ readonly ToolCallingTask: import("@workglow/ai").AiProviderRunFn<import("@workglow/ai").ToolCallingTaskInput, {
1505
1386
  text: string | string[];
1506
1387
  toolCalls: {
1507
- name: string;
1508
1388
  id: string;
1509
1389
  input: {
1510
1390
  [x: string]: unknown;
1511
1391
  };
1512
- } | {
1513
1392
  name: string;
1393
+ }[] | {
1514
1394
  id: string;
1515
1395
  input: {
1516
1396
  [x: string]: unknown;
1517
1397
  };
1518
- }[];
1398
+ name: string;
1399
+ };
1519
1400
  }, {
1520
- title?: string | undefined;
1521
1401
  description?: string | undefined;
1522
- model_id?: string | undefined;
1523
- tasks?: string[] | undefined;
1524
1402
  metadata?: {
1525
1403
  [x: string]: unknown;
1526
1404
  } | undefined;
1405
+ model_id?: string | undefined;
1527
1406
  provider: "HF_TRANSFORMERS_ONNX";
1528
1407
  provider_config: {
1529
- normalize?: boolean | undefined;
1530
- dtype?: "auto" | "fp32" | "fp16" | "q8" | "int8" | "uint8" | "q4" | "bnb4" | "q4f16" | undefined;
1531
- device?: "cpu" | "gpu" | "webgpu" | "wasm" | "metal" | undefined;
1408
+ device?: "cpu" | "gpu" | "metal" | "wasm" | "webgpu" | undefined;
1409
+ dtype?: "auto" | "bnb4" | "fp16" | "fp32" | "int8" | "q4" | "q4f16" | "q8" | "uint8" | undefined;
1532
1410
  execution_providers?: string[] | undefined;
1533
- intra_op_num_threads?: number | undefined;
1534
1411
  inter_op_num_threads?: number | undefined;
1535
- use_external_data_format?: boolean | undefined;
1536
- pooling?: "mean" | "last_token" | "cls" | undefined;
1412
+ intra_op_num_threads?: number | undefined;
1537
1413
  language_style?: string | undefined;
1538
- mrl?: boolean | undefined;
1539
- pipeline: "feature-extraction";
1540
1414
  model_path: string;
1415
+ mrl?: boolean | undefined;
1541
1416
  native_dimensions: number;
1542
- } | {
1543
1417
  normalize?: boolean | undefined;
1544
- dtype?: "auto" | "fp32" | "fp16" | "q8" | "int8" | "uint8" | "q4" | "bnb4" | "q4f16" | undefined;
1545
- device?: "cpu" | "gpu" | "webgpu" | "wasm" | "metal" | 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;
1546
1424
  execution_providers?: string[] | undefined;
1547
- intra_op_num_threads?: number | undefined;
1548
1425
  inter_op_num_threads?: number | undefined;
1549
- use_external_data_format?: boolean | undefined;
1550
- native_dimensions?: number | undefined;
1551
- pooling?: "mean" | "last_token" | "cls" | undefined;
1426
+ intra_op_num_threads?: number | undefined;
1552
1427
  language_style?: string | undefined;
1553
- mrl?: boolean | undefined;
1554
- pipeline: "fill-mask" | "token-classification" | "text-generation" | "text2text-generation" | "text-classification" | "summarization" | "translation" | "zero-shot-classification" | "question-answering" | "background-removal" | "image-segmentation" | "depth-estimation" | "image-classification" | "image-to-image" | "object-detection" | "image-feature-extraction" | "audio-classification" | "automatic-speech-recognition" | "text-to-speech" | "document-question-answering" | "image-to-text" | "zero-shot-audio-classification" | "zero-shot-image-classification" | "zero-shot-object-detection";
1555
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;
1434
+ use_external_data_format?: boolean | undefined;
1556
1435
  };
1436
+ tasks?: string[] | undefined;
1437
+ title?: string | undefined;
1557
1438
  }>;
1558
- readonly StructuredGenerationTask: AiProviderRunFn<{
1439
+ readonly StructuredGenerationTask: import("@workglow/ai").AiProviderRunFn<{
1559
1440
  maxTokens?: number | undefined;
1560
- temperature?: number | undefined;
1561
1441
  model: string | {
1562
1442
  [x: string]: unknown;
1563
- title?: string | undefined;
1564
1443
  description?: string | undefined;
1565
- model_id?: string | undefined;
1566
- tasks?: string[] | undefined;
1567
1444
  metadata?: {
1568
1445
  [x: string]: unknown;
1569
1446
  } | undefined;
1447
+ model_id?: string | undefined;
1570
1448
  provider: string;
1571
1449
  provider_config: {
1572
1450
  [x: string]: unknown;
1573
1451
  credential_key?: string | undefined;
1574
1452
  };
1453
+ tasks?: string[] | undefined;
1454
+ title?: string | undefined;
1575
1455
  };
1576
- prompt: string;
1577
1456
  outputSchema: {
1578
1457
  [x: string]: unknown;
1579
1458
  };
1459
+ prompt: string;
1460
+ temperature?: number | undefined;
1580
1461
  }, {
1581
1462
  object: {
1582
1463
  [x: string]: unknown;
1583
1464
  };
1584
1465
  }, {
1585
- title?: string | undefined;
1586
1466
  description?: string | undefined;
1587
- model_id?: string | undefined;
1588
- tasks?: string[] | undefined;
1589
1467
  metadata?: {
1590
1468
  [x: string]: unknown;
1591
1469
  } | undefined;
1470
+ model_id?: string | undefined;
1592
1471
  provider: "HF_TRANSFORMERS_ONNX";
1593
1472
  provider_config: {
1594
- normalize?: boolean | undefined;
1595
- dtype?: "auto" | "fp32" | "fp16" | "q8" | "int8" | "uint8" | "q4" | "bnb4" | "q4f16" | undefined;
1596
- device?: "cpu" | "gpu" | "webgpu" | "wasm" | "metal" | undefined;
1473
+ device?: "cpu" | "gpu" | "metal" | "wasm" | "webgpu" | undefined;
1474
+ dtype?: "auto" | "bnb4" | "fp16" | "fp32" | "int8" | "q4" | "q4f16" | "q8" | "uint8" | undefined;
1597
1475
  execution_providers?: string[] | undefined;
1598
- intra_op_num_threads?: number | undefined;
1599
1476
  inter_op_num_threads?: number | undefined;
1600
- use_external_data_format?: boolean | undefined;
1601
- pooling?: "mean" | "last_token" | "cls" | undefined;
1477
+ intra_op_num_threads?: number | undefined;
1602
1478
  language_style?: string | undefined;
1603
- mrl?: boolean | undefined;
1604
- pipeline: "feature-extraction";
1605
1479
  model_path: string;
1480
+ mrl?: boolean | undefined;
1606
1481
  native_dimensions: number;
1607
- } | {
1608
1482
  normalize?: boolean | undefined;
1609
- dtype?: "auto" | "fp32" | "fp16" | "q8" | "int8" | "uint8" | "q4" | "bnb4" | "q4f16" | undefined;
1610
- device?: "cpu" | "gpu" | "webgpu" | "wasm" | "metal" | undefined;
1483
+ pipeline: "feature-extraction";
1484
+ pooling?: "cls" | "last_token" | "mean" | undefined;
1485
+ use_external_data_format?: boolean | undefined;
1486
+ } | {
1487
+ device?: "cpu" | "gpu" | "metal" | "wasm" | "webgpu" | undefined;
1488
+ dtype?: "auto" | "bnb4" | "fp16" | "fp32" | "int8" | "q4" | "q4f16" | "q8" | "uint8" | undefined;
1611
1489
  execution_providers?: string[] | undefined;
1612
- intra_op_num_threads?: number | undefined;
1613
1490
  inter_op_num_threads?: number | undefined;
1614
- use_external_data_format?: boolean | undefined;
1615
- native_dimensions?: number | undefined;
1616
- pooling?: "mean" | "last_token" | "cls" | undefined;
1491
+ intra_op_num_threads?: number | undefined;
1617
1492
  language_style?: string | undefined;
1618
- mrl?: boolean | undefined;
1619
- pipeline: "fill-mask" | "token-classification" | "text-generation" | "text2text-generation" | "text-classification" | "summarization" | "translation" | "zero-shot-classification" | "question-answering" | "background-removal" | "image-segmentation" | "depth-estimation" | "image-classification" | "image-to-image" | "object-detection" | "image-feature-extraction" | "audio-classification" | "automatic-speech-recognition" | "text-to-speech" | "document-question-answering" | "image-to-text" | "zero-shot-audio-classification" | "zero-shot-image-classification" | "zero-shot-object-detection";
1620
1493
  model_path: string;
1494
+ mrl?: boolean | undefined;
1495
+ native_dimensions?: number | undefined;
1496
+ normalize?: boolean | undefined;
1497
+ 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
+ pooling?: "cls" | "last_token" | "mean" | undefined;
1499
+ use_external_data_format?: boolean | undefined;
1621
1500
  };
1501
+ tasks?: string[] | undefined;
1502
+ title?: string | undefined;
1622
1503
  }>;
1504
+ readonly ModelSearchTask: import("@workglow/ai").AiProviderRunFn<{
1505
+ provider: string;
1506
+ query: string;
1507
+ }, import("@workglow/ai").ModelSearchTaskOutput>;
1623
1508
  };
1624
1509
  /**
1625
1510
  * Streaming variants of HuggingFace Transformers task run functions.
1626
- * Pass this as the second argument to `new HuggingFaceTransformersProvider(HFT_TASKS, HFT_STREAM_TASKS, HFT_REACTIVE_TASKS)`.
1627
1511
  */
1628
1512
  export declare const HFT_STREAM_TASKS: Record<string, AiProviderStreamFn<any, any, HfTransformersOnnxModelConfig>>;
1629
1513
  export declare const HFT_REACTIVE_TASKS: Record<string, AiProviderReactiveRunFn<any, any, HfTransformersOnnxModelConfig>>;