@workglow/ai 0.2.5 → 0.2.7

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 (92) hide show
  1. package/dist/browser.js +220 -87
  2. package/dist/browser.js.map +13 -12
  3. package/dist/bun.js +220 -87
  4. package/dist/bun.js.map +13 -12
  5. package/dist/model/ModelRepository.d.ts +2 -0
  6. package/dist/model/ModelRepository.d.ts.map +1 -1
  7. package/dist/model/ModelSchema.d.ts +16 -0
  8. package/dist/model/ModelSchema.d.ts.map +1 -1
  9. package/dist/node.js +220 -87
  10. package/dist/node.js.map +13 -12
  11. package/dist/provider/AiProvider.d.ts +6 -0
  12. package/dist/provider/AiProvider.d.ts.map +1 -1
  13. package/dist/provider/AiProviderRegistry.d.ts +2 -0
  14. package/dist/provider/AiProviderRegistry.d.ts.map +1 -1
  15. package/dist/task/AgentTask.d.ts +16 -0
  16. package/dist/task/AgentTask.d.ts.map +1 -1
  17. package/dist/task/BackgroundRemovalTask.d.ts +8 -0
  18. package/dist/task/BackgroundRemovalTask.d.ts.map +1 -1
  19. package/dist/task/ChunkRetrievalTask.d.ts +8 -0
  20. package/dist/task/ChunkRetrievalTask.d.ts.map +1 -1
  21. package/dist/task/ContextBuilderTask.d.ts +8 -0
  22. package/dist/task/ContextBuilderTask.d.ts.map +1 -1
  23. package/dist/task/CountTokensTask.d.ts +8 -0
  24. package/dist/task/CountTokensTask.d.ts.map +1 -1
  25. package/dist/task/DocumentEnricherTask.d.ts +23 -2
  26. package/dist/task/DocumentEnricherTask.d.ts.map +1 -1
  27. package/dist/task/DownloadModelTask.d.ts +18 -0
  28. package/dist/task/DownloadModelTask.d.ts.map +1 -1
  29. package/dist/task/FaceDetectorTask.d.ts +8 -0
  30. package/dist/task/FaceDetectorTask.d.ts.map +1 -1
  31. package/dist/task/FaceLandmarkerTask.d.ts +8 -0
  32. package/dist/task/FaceLandmarkerTask.d.ts.map +1 -1
  33. package/dist/task/GestureRecognizerTask.d.ts +8 -0
  34. package/dist/task/GestureRecognizerTask.d.ts.map +1 -1
  35. package/dist/task/HandLandmarkerTask.d.ts +8 -0
  36. package/dist/task/HandLandmarkerTask.d.ts.map +1 -1
  37. package/dist/task/HierarchicalChunkerTask.d.ts +15 -2
  38. package/dist/task/HierarchicalChunkerTask.d.ts.map +1 -1
  39. package/dist/task/ImageClassificationTask.d.ts +8 -0
  40. package/dist/task/ImageClassificationTask.d.ts.map +1 -1
  41. package/dist/task/ImageEmbeddingTask.d.ts +8 -0
  42. package/dist/task/ImageEmbeddingTask.d.ts.map +1 -1
  43. package/dist/task/ImageSegmentationTask.d.ts +8 -0
  44. package/dist/task/ImageSegmentationTask.d.ts.map +1 -1
  45. package/dist/task/ImageToTextTask.d.ts +8 -0
  46. package/dist/task/ImageToTextTask.d.ts.map +1 -1
  47. package/dist/task/KbToDocumentsTask.d.ts +98 -0
  48. package/dist/task/KbToDocumentsTask.d.ts.map +1 -0
  49. package/dist/task/ModelInfoTask.d.ts +29 -1
  50. package/dist/task/ModelInfoTask.d.ts.map +1 -1
  51. package/dist/task/ObjectDetectionTask.d.ts +8 -0
  52. package/dist/task/ObjectDetectionTask.d.ts.map +1 -1
  53. package/dist/task/PoseLandmarkerTask.d.ts +8 -0
  54. package/dist/task/PoseLandmarkerTask.d.ts.map +1 -1
  55. package/dist/task/RerankerTask.d.ts +8 -1
  56. package/dist/task/RerankerTask.d.ts.map +1 -1
  57. package/dist/task/StructuralParserTask.d.ts +8 -7
  58. package/dist/task/StructuralParserTask.d.ts.map +1 -1
  59. package/dist/task/StructuredGenerationTask.d.ts +8 -0
  60. package/dist/task/StructuredGenerationTask.d.ts.map +1 -1
  61. package/dist/task/TextClassificationTask.d.ts +8 -0
  62. package/dist/task/TextClassificationTask.d.ts.map +1 -1
  63. package/dist/task/TextEmbeddingTask.d.ts +8 -0
  64. package/dist/task/TextEmbeddingTask.d.ts.map +1 -1
  65. package/dist/task/TextFillMaskTask.d.ts +8 -0
  66. package/dist/task/TextFillMaskTask.d.ts.map +1 -1
  67. package/dist/task/TextGenerationTask.d.ts +8 -0
  68. package/dist/task/TextGenerationTask.d.ts.map +1 -1
  69. package/dist/task/TextLanguageDetectionTask.d.ts +8 -0
  70. package/dist/task/TextLanguageDetectionTask.d.ts.map +1 -1
  71. package/dist/task/TextNamedEntityRecognitionTask.d.ts +8 -0
  72. package/dist/task/TextNamedEntityRecognitionTask.d.ts.map +1 -1
  73. package/dist/task/TextQuestionAnswerTask.d.ts +8 -0
  74. package/dist/task/TextQuestionAnswerTask.d.ts.map +1 -1
  75. package/dist/task/TextRewriterTask.d.ts +8 -0
  76. package/dist/task/TextRewriterTask.d.ts.map +1 -1
  77. package/dist/task/TextSummaryTask.d.ts +8 -0
  78. package/dist/task/TextSummaryTask.d.ts.map +1 -1
  79. package/dist/task/TextTranslationTask.d.ts +8 -0
  80. package/dist/task/TextTranslationTask.d.ts.map +1 -1
  81. package/dist/task/ToolCallingTask.d.ts +8 -0
  82. package/dist/task/ToolCallingTask.d.ts.map +1 -1
  83. package/dist/task/UnloadModelTask.d.ts +18 -0
  84. package/dist/task/UnloadModelTask.d.ts.map +1 -1
  85. package/dist/task/base/AiTask.d.ts.map +1 -1
  86. package/dist/task/base/AiTaskSchemas.d.ts +16 -0
  87. package/dist/task/base/AiTaskSchemas.d.ts.map +1 -1
  88. package/dist/task/index.d.ts +3 -1
  89. package/dist/task/index.d.ts.map +1 -1
  90. package/dist/worker.js +19 -3
  91. package/dist/worker.js.map +4 -4
  92. package/package.json +11 -11
package/dist/bun.js CHANGED
@@ -455,7 +455,15 @@ var ModelConfigSchema = {
455
455
  provider_config: {
456
456
  type: "object",
457
457
  properties: {
458
- credential_key: { type: "string", format: "credential", "x-ui-hidden": true }
458
+ credential_key: { type: "string", format: "credential", "x-ui-hidden": true },
459
+ native_dimensions: {
460
+ type: "integer",
461
+ description: "Native output vector dimensions for embedding models"
462
+ },
463
+ mrl: {
464
+ type: "boolean",
465
+ description: "Whether the model supports Matryoshka Representation Learning"
466
+ }
459
467
  },
460
468
  additionalProperties: true,
461
469
  default: {}
@@ -649,6 +657,7 @@ registerInputCompactor("model", async (value, _format, registry) => {
649
657
 
650
658
  // src/provider/AiProvider.ts
651
659
  import { globalServiceRegistry as globalServiceRegistry3, WORKER_MANAGER as WORKER_MANAGER2 } from "@workglow/util/worker";
660
+ var DEFAULT_AI_PROVIDER_WORKER_IDLE_TIMEOUT_MS = 15 * 60 * 1000;
652
661
  function resolveAiProviderGpuQueueConcurrency(concurrency) {
653
662
  if (concurrency === undefined) {
654
663
  return 1;
@@ -696,7 +705,13 @@ class AiProvider {
696
705
  const registry = getAiProviderRegistry();
697
706
  if (!isInline && options.worker) {
698
707
  const workerManager = globalServiceRegistry3.get(WORKER_MANAGER2);
699
- workerManager.registerWorker(this.name, options.worker);
708
+ if (typeof options.worker === "function") {
709
+ workerManager.registerWorker(this.name, options.worker, {
710
+ idleTimeoutMs: options.workerIdleTimeoutMs ?? DEFAULT_AI_PROVIDER_WORKER_IDLE_TIMEOUT_MS
711
+ });
712
+ } else {
713
+ workerManager.registerWorker(this.name, options.worker);
714
+ }
700
715
  for (const taskType of this.taskTypes) {
701
716
  registry.registerAsWorkerRunFn(this.name, taskType);
702
717
  registry.registerAsWorkerStreamFn(this.name, taskType);
@@ -1050,6 +1065,18 @@ class AiTask extends Task {
1050
1065
  const jobInput = await this.getJobInput(input);
1051
1066
  const strategy = getAiProviderRegistry().getStrategy(model);
1052
1067
  const output = await strategy.execute(jobInput, executeContext, this.runConfig.runnerId);
1068
+ if (executeContext.resourceScope) {
1069
+ const registry = getAiProviderRegistry();
1070
+ const provider = registry.getProvider(model.provider);
1071
+ const unloadFn = provider?.getRunFn("UnloadModelTask");
1072
+ if (unloadFn) {
1073
+ const modelPath = model.provider_config?.model_path ?? model.model;
1074
+ const resourceKey = `ai:${model.provider}:${modelPath}`;
1075
+ executeContext.resourceScope.register(resourceKey, async () => {
1076
+ await unloadFn({ model }, model, () => {}, AbortSignal.timeout(30000));
1077
+ });
1078
+ }
1079
+ }
1053
1080
  return output;
1054
1081
  }
1055
1082
  async getJobInput(input) {
@@ -1145,7 +1172,7 @@ class AiTask extends Task {
1145
1172
  if (modelTaskProperties.length > 0) {
1146
1173
  const modelRepo = registry.get(MODEL_REPOSITORY);
1147
1174
  const taskModels = await modelRepo.findModelsByTask(this.type) ?? [];
1148
- for (const [key, propSchema] of modelTaskProperties) {
1175
+ for (const [key] of modelTaskProperties) {
1149
1176
  const requestedModel = input[key];
1150
1177
  if (typeof requestedModel === "string") {
1151
1178
  const found = taskModels?.find((m) => m.model_id === requestedModel);
@@ -3206,6 +3233,8 @@ var inputSchema7 = {
3206
3233
  description: "The document ID"
3207
3234
  },
3208
3235
  documentTree: {
3236
+ type: "object",
3237
+ additionalProperties: true,
3209
3238
  title: "Document Tree",
3210
3239
  description: "The hierarchical document tree to enrich"
3211
3240
  },
@@ -4208,6 +4237,8 @@ var inputSchema9 = {
4208
4237
  description: "The ID of the document"
4209
4238
  },
4210
4239
  documentTree: {
4240
+ type: "object",
4241
+ additionalProperties: true,
4211
4242
  title: "Document Tree",
4212
4243
  description: "The hierarchical document tree to chunk"
4213
4244
  },
@@ -4593,8 +4624,97 @@ var hierarchyJoin = (input, config) => {
4593
4624
  };
4594
4625
  Workflow22.prototype.hierarchyJoin = CreateWorkflow22(HierarchyJoinTask);
4595
4626
 
4627
+ // src/task/KbToDocumentsTask.ts
4628
+ import { TypeKnowledgeBase as TypeKnowledgeBase7 } from "@workglow/knowledge-base";
4629
+ import { CreateWorkflow as CreateWorkflow23, Task as Task13, Workflow as Workflow23 } from "@workglow/task-graph";
4630
+ var inputSchema11 = {
4631
+ type: "object",
4632
+ properties: {
4633
+ knowledgeBase: TypeKnowledgeBase7({
4634
+ title: "Knowledge Base",
4635
+ description: "The knowledge base instance to list documents from"
4636
+ }),
4637
+ onlyStale: {
4638
+ type: "boolean",
4639
+ title: "Only Stale",
4640
+ description: "If true, only return documents that have no chunks (need embedding)",
4641
+ default: true
4642
+ }
4643
+ },
4644
+ required: ["knowledgeBase"],
4645
+ additionalProperties: false
4646
+ };
4647
+ var outputSchema11 = {
4648
+ type: "object",
4649
+ properties: {
4650
+ doc_id: {
4651
+ type: "array",
4652
+ items: { type: "string" },
4653
+ title: "Document IDs",
4654
+ description: "Array of document IDs"
4655
+ },
4656
+ documentTree: {
4657
+ type: "array",
4658
+ items: { type: "object", additionalProperties: true },
4659
+ title: "Document Trees",
4660
+ description: "Array of document root nodes (parallel to doc_id)"
4661
+ },
4662
+ title: {
4663
+ type: "array",
4664
+ items: { type: "string" },
4665
+ title: "Titles",
4666
+ description: "Array of document titles (parallel to doc_id)"
4667
+ }
4668
+ },
4669
+ required: ["doc_id", "documentTree", "title"],
4670
+ additionalProperties: false
4671
+ };
4672
+
4673
+ class KbToDocumentsTask extends Task13 {
4674
+ static type = "KbToDocumentsTask";
4675
+ static category = "Vector Store";
4676
+ static title = "Knowledge Base to Documents";
4677
+ static description = "List documents from a knowledge base, optionally filtering to only those that need embedding";
4678
+ static cacheable = false;
4679
+ static inputSchema() {
4680
+ return inputSchema11;
4681
+ }
4682
+ static outputSchema() {
4683
+ return outputSchema11;
4684
+ }
4685
+ async execute(input, context) {
4686
+ const { knowledgeBase, onlyStale = true } = input;
4687
+ const kb = knowledgeBase;
4688
+ await context.updateProgress(1, "Listing documents");
4689
+ const allDocIds = await kb.listDocuments();
4690
+ const doc_id = [];
4691
+ const documentTree = [];
4692
+ const title = [];
4693
+ for (const id of allDocIds) {
4694
+ if (onlyStale) {
4695
+ const chunks = await kb.getChunksForDocument(id);
4696
+ if (chunks.length > 0) {
4697
+ continue;
4698
+ }
4699
+ }
4700
+ const doc = await kb.getDocument(id);
4701
+ if (!doc) {
4702
+ continue;
4703
+ }
4704
+ doc_id.push(id);
4705
+ documentTree.push(doc.root);
4706
+ title.push(doc.metadata.title);
4707
+ }
4708
+ return { doc_id, documentTree, title };
4709
+ }
4710
+ }
4711
+ var kbToDocuments = (input, config) => {
4712
+ return new KbToDocumentsTask(config).run(input);
4713
+ };
4714
+ Workflow23.prototype.kbToDocuments = CreateWorkflow23(KbToDocumentsTask);
4715
+
4596
4716
  // src/task/ImageClassificationTask.ts
4597
- import { CreateWorkflow as CreateWorkflow23, Workflow as Workflow23 } from "@workglow/task-graph";
4717
+ import { CreateWorkflow as CreateWorkflow24, Workflow as Workflow24 } from "@workglow/task-graph";
4598
4718
  var modelSchema15 = TypeModel("model:ImageClassificationTask");
4599
4719
  var ImageClassificationInputSchema = {
4600
4720
  type: "object",
@@ -4654,10 +4774,10 @@ class ImageClassificationTask extends AiVisionTask {
4654
4774
  var imageClassification = (input, config) => {
4655
4775
  return new ImageClassificationTask(config).run(input);
4656
4776
  };
4657
- Workflow23.prototype.imageClassification = CreateWorkflow23(ImageClassificationTask);
4777
+ Workflow24.prototype.imageClassification = CreateWorkflow24(ImageClassificationTask);
4658
4778
 
4659
4779
  // src/task/ImageEmbeddingTask.ts
4660
- import { CreateWorkflow as CreateWorkflow24, Workflow as Workflow24 } from "@workglow/task-graph";
4780
+ import { CreateWorkflow as CreateWorkflow25, Workflow as Workflow25 } from "@workglow/task-graph";
4661
4781
  import {
4662
4782
  TypedArraySchema as TypedArraySchema7
4663
4783
  } from "@workglow/util/schema";
@@ -4698,10 +4818,10 @@ class ImageEmbeddingTask extends AiVisionTask {
4698
4818
  var imageEmbedding = (input, config) => {
4699
4819
  return new ImageEmbeddingTask(config).run(input);
4700
4820
  };
4701
- Workflow24.prototype.imageEmbedding = CreateWorkflow24(ImageEmbeddingTask);
4821
+ Workflow25.prototype.imageEmbedding = CreateWorkflow25(ImageEmbeddingTask);
4702
4822
 
4703
4823
  // src/task/ImageSegmentationTask.ts
4704
- import { CreateWorkflow as CreateWorkflow25, Workflow as Workflow25 } from "@workglow/task-graph";
4824
+ import { CreateWorkflow as CreateWorkflow26, Workflow as Workflow26 } from "@workglow/task-graph";
4705
4825
  var modelSchema17 = TypeModel("model:ImageSegmentationTask");
4706
4826
  var ImageSegmentationInputSchema = {
4707
4827
  type: "object",
@@ -4786,10 +4906,10 @@ class ImageSegmentationTask extends AiVisionTask {
4786
4906
  var imageSegmentation = (input, config) => {
4787
4907
  return new ImageSegmentationTask(config).run(input);
4788
4908
  };
4789
- Workflow25.prototype.imageSegmentation = CreateWorkflow25(ImageSegmentationTask);
4909
+ Workflow26.prototype.imageSegmentation = CreateWorkflow26(ImageSegmentationTask);
4790
4910
 
4791
4911
  // src/task/ImageToTextTask.ts
4792
- import { CreateWorkflow as CreateWorkflow26, Workflow as Workflow26 } from "@workglow/task-graph";
4912
+ import { CreateWorkflow as CreateWorkflow27, Workflow as Workflow27 } from "@workglow/task-graph";
4793
4913
  var modelSchema18 = TypeModel("model:ImageToTextTask");
4794
4914
  var generatedTextSchema = {
4795
4915
  type: "string",
@@ -4841,10 +4961,10 @@ class ImageToTextTask extends AiVisionTask {
4841
4961
  var imageToText = (input, config) => {
4842
4962
  return new ImageToTextTask(config).run(input);
4843
4963
  };
4844
- Workflow26.prototype.imageToText = CreateWorkflow26(ImageToTextTask);
4964
+ Workflow27.prototype.imageToText = CreateWorkflow27(ImageToTextTask);
4845
4965
 
4846
4966
  // src/task/ModelInfoTask.ts
4847
- import { CreateWorkflow as CreateWorkflow27, Workflow as Workflow27 } from "@workglow/task-graph";
4967
+ import { CreateWorkflow as CreateWorkflow28, Workflow as Workflow28 } from "@workglow/task-graph";
4848
4968
  var modelSchema19 = TypeModel("model");
4849
4969
  var ModelInfoInputSchema = {
4850
4970
  type: "object",
@@ -4852,7 +4972,7 @@ var ModelInfoInputSchema = {
4852
4972
  model: modelSchema19,
4853
4973
  detail: {
4854
4974
  type: "string",
4855
- enum: ["cached_status", "files", "files_with_metadata"],
4975
+ enum: ["cached_status", "files", "files_with_metadata", "dimensions"],
4856
4976
  default: "files_with_metadata"
4857
4977
  }
4858
4978
  },
@@ -4874,6 +4994,14 @@ var ModelInfoOutputSchema = {
4874
4994
  type: "array",
4875
4995
  items: { type: "string" },
4876
4996
  description: "Available quantization variants (e.g. fp32, fp16, q8). Only present for models with quantization options."
4997
+ },
4998
+ native_dimensions: {
4999
+ type: "integer",
5000
+ description: "Native output vector dimensions. Only present when detail is 'dimensions' and the provider can determine them."
5001
+ },
5002
+ mrl: {
5003
+ type: "boolean",
5004
+ description: "Whether the model supports Matryoshka Representation Learning. Only present when detail is 'dimensions'."
4877
5005
  }
4878
5006
  },
4879
5007
  required: [
@@ -4912,10 +5040,10 @@ class ModelInfoTask extends AiTask {
4912
5040
  var modelInfo = (input, config) => {
4913
5041
  return new ModelInfoTask(config).run(input);
4914
5042
  };
4915
- Workflow27.prototype.modelInfo = CreateWorkflow27(ModelInfoTask);
5043
+ Workflow28.prototype.modelInfo = CreateWorkflow28(ModelInfoTask);
4916
5044
 
4917
5045
  // src/task/ModelSearchTask.ts
4918
- import { CreateWorkflow as CreateWorkflow28, Task as Task13, Workflow as Workflow28 } from "@workglow/task-graph";
5046
+ import { CreateWorkflow as CreateWorkflow29, Task as Task14, Workflow as Workflow29 } from "@workglow/task-graph";
4919
5047
  var ModelSearchInputSchema = {
4920
5048
  type: "object",
4921
5049
  properties: {
@@ -4980,7 +5108,7 @@ var ModelSearchOutputSchema = {
4980
5108
  additionalProperties: false
4981
5109
  };
4982
5110
 
4983
- class ModelSearchTask extends Task13 {
5111
+ class ModelSearchTask extends Task14 {
4984
5112
  static type = "ModelSearchTask";
4985
5113
  static category = "AI Model";
4986
5114
  static title = "Model Search";
@@ -5006,10 +5134,10 @@ class ModelSearchTask extends Task13 {
5006
5134
  var modelSearch = (input, config) => {
5007
5135
  return new ModelSearchTask(config).run(input);
5008
5136
  };
5009
- Workflow28.prototype.modelSearch = CreateWorkflow28(ModelSearchTask);
5137
+ Workflow29.prototype.modelSearch = CreateWorkflow29(ModelSearchTask);
5010
5138
 
5011
5139
  // src/task/ObjectDetectionTask.ts
5012
- import { CreateWorkflow as CreateWorkflow29, Workflow as Workflow29 } from "@workglow/task-graph";
5140
+ import { CreateWorkflow as CreateWorkflow30, Workflow as Workflow30 } from "@workglow/task-graph";
5013
5141
  var modelSchema20 = TypeModel("model:ObjectDetectionTask");
5014
5142
  var detectionSchema = {
5015
5143
  type: "object",
@@ -5089,10 +5217,10 @@ class ObjectDetectionTask extends AiVisionTask {
5089
5217
  var objectDetection = (input, config) => {
5090
5218
  return new ObjectDetectionTask(config).run(input);
5091
5219
  };
5092
- Workflow29.prototype.objectDetection = CreateWorkflow29(ObjectDetectionTask);
5220
+ Workflow30.prototype.objectDetection = CreateWorkflow30(ObjectDetectionTask);
5093
5221
 
5094
5222
  // src/task/PoseLandmarkerTask.ts
5095
- import { CreateWorkflow as CreateWorkflow30, Workflow as Workflow30 } from "@workglow/task-graph";
5223
+ import { CreateWorkflow as CreateWorkflow31, Workflow as Workflow31 } from "@workglow/task-graph";
5096
5224
  var modelSchema21 = TypeModel("model:PoseLandmarkerTask");
5097
5225
  var TypePoseLandmark = {
5098
5226
  type: "object",
@@ -5251,17 +5379,17 @@ class PoseLandmarkerTask extends AiVisionTask {
5251
5379
  var poseLandmarker = (input, config) => {
5252
5380
  return new PoseLandmarkerTask(config).run(input);
5253
5381
  };
5254
- Workflow30.prototype.poseLandmarker = CreateWorkflow30(PoseLandmarkerTask);
5382
+ Workflow31.prototype.poseLandmarker = CreateWorkflow31(PoseLandmarkerTask);
5255
5383
 
5256
5384
  // src/task/QueryExpanderTask.ts
5257
- import { CreateWorkflow as CreateWorkflow31, Task as Task14, Workflow as Workflow31 } from "@workglow/task-graph";
5385
+ import { CreateWorkflow as CreateWorkflow32, Task as Task15, Workflow as Workflow32 } from "@workglow/task-graph";
5258
5386
  var QueryExpansionMethod = {
5259
5387
  MULTI_QUERY: "multi-query",
5260
5388
  HYDE: "hyde",
5261
5389
  SYNONYMS: "synonyms",
5262
5390
  PARAPHRASE: "paraphrase"
5263
5391
  };
5264
- var inputSchema11 = {
5392
+ var inputSchema12 = {
5265
5393
  type: "object",
5266
5394
  properties: {
5267
5395
  query: {
@@ -5293,7 +5421,7 @@ var inputSchema11 = {
5293
5421
  required: ["query"],
5294
5422
  additionalProperties: false
5295
5423
  };
5296
- var outputSchema11 = {
5424
+ var outputSchema12 = {
5297
5425
  type: "object",
5298
5426
  properties: {
5299
5427
  query: {
@@ -5322,17 +5450,17 @@ var outputSchema11 = {
5322
5450
  additionalProperties: false
5323
5451
  };
5324
5452
 
5325
- class QueryExpanderTask extends Task14 {
5453
+ class QueryExpanderTask extends Task15 {
5326
5454
  static type = "QueryExpanderTask";
5327
5455
  static category = "RAG";
5328
5456
  static title = "Query Expander";
5329
5457
  static description = "Expand queries to improve retrieval coverage";
5330
5458
  static cacheable = true;
5331
5459
  static inputSchema() {
5332
- return inputSchema11;
5460
+ return inputSchema12;
5333
5461
  }
5334
5462
  static outputSchema() {
5335
- return outputSchema11;
5463
+ return outputSchema12;
5336
5464
  }
5337
5465
  async execute(input, context) {
5338
5466
  const { query, method = QueryExpansionMethod.MULTI_QUERY, numVariations = 3 } = input;
@@ -5464,13 +5592,13 @@ class QueryExpanderTask extends Task14 {
5464
5592
  var queryExpander = (input, config) => {
5465
5593
  return new QueryExpanderTask(config).run(input);
5466
5594
  };
5467
- Workflow31.prototype.queryExpander = CreateWorkflow31(QueryExpanderTask);
5595
+ Workflow32.prototype.queryExpander = CreateWorkflow32(QueryExpanderTask);
5468
5596
 
5469
5597
  // src/task/RerankerTask.ts
5470
- import { CreateWorkflow as CreateWorkflow33, Task as Task15, Workflow as Workflow33 } from "@workglow/task-graph";
5598
+ import { CreateWorkflow as CreateWorkflow34, Task as Task16, Workflow as Workflow34 } from "@workglow/task-graph";
5471
5599
 
5472
5600
  // src/task/TextClassificationTask.ts
5473
- import { CreateWorkflow as CreateWorkflow32, Workflow as Workflow32 } from "@workglow/task-graph";
5601
+ import { CreateWorkflow as CreateWorkflow33, Workflow as Workflow33 } from "@workglow/task-graph";
5474
5602
  var modelSchema22 = TypeModel("model:TextClassificationTask");
5475
5603
  var TextClassificationInputSchema = {
5476
5604
  type: "object",
@@ -5548,10 +5676,10 @@ class TextClassificationTask extends AiTask {
5548
5676
  var textClassification = (input, config) => {
5549
5677
  return new TextClassificationTask(config).run(input);
5550
5678
  };
5551
- Workflow32.prototype.textClassification = CreateWorkflow32(TextClassificationTask);
5679
+ Workflow33.prototype.textClassification = CreateWorkflow33(TextClassificationTask);
5552
5680
 
5553
5681
  // src/task/RerankerTask.ts
5554
- var inputSchema12 = {
5682
+ var inputSchema13 = {
5555
5683
  type: "object",
5556
5684
  properties: {
5557
5685
  query: {
@@ -5602,7 +5730,7 @@ var inputSchema12 = {
5602
5730
  required: ["query", "chunks"],
5603
5731
  additionalProperties: false
5604
5732
  };
5605
- var outputSchema12 = {
5733
+ var outputSchema13 = {
5606
5734
  type: "object",
5607
5735
  properties: {
5608
5736
  chunks: {
@@ -5643,18 +5771,17 @@ var outputSchema12 = {
5643
5771
  additionalProperties: false
5644
5772
  };
5645
5773
 
5646
- class RerankerTask extends Task15 {
5774
+ class RerankerTask extends Task16 {
5647
5775
  static type = "RerankerTask";
5648
5776
  static category = "RAG";
5649
5777
  static title = "Reranker";
5650
5778
  static description = "Rerank retrieved chunks to improve relevance";
5651
5779
  static cacheable = true;
5652
- resolvedCrossEncoderModel;
5653
5780
  static inputSchema() {
5654
- return inputSchema12;
5781
+ return inputSchema13;
5655
5782
  }
5656
5783
  static outputSchema() {
5657
- return outputSchema12;
5784
+ return outputSchema13;
5658
5785
  }
5659
5786
  async execute(input, context) {
5660
5787
  const { query, chunks, scores = [], metadata = [], topK, method = "simple", model } = input;
@@ -5772,13 +5899,13 @@ class RerankerTask extends Task15 {
5772
5899
  var reranker = (input, config) => {
5773
5900
  return new RerankerTask(config).run(input);
5774
5901
  };
5775
- Workflow33.prototype.reranker = CreateWorkflow33(RerankerTask);
5902
+ Workflow34.prototype.reranker = CreateWorkflow34(RerankerTask);
5776
5903
 
5777
5904
  // src/task/StructuralParserTask.ts
5778
5905
  import { StructuralParser } from "@workglow/knowledge-base";
5779
- import { CreateWorkflow as CreateWorkflow34, Task as Task16, Workflow as Workflow34 } from "@workglow/task-graph";
5906
+ import { CreateWorkflow as CreateWorkflow35, Task as Task17, Workflow as Workflow35 } from "@workglow/task-graph";
5780
5907
  import { uuid4 as uuid42 } from "@workglow/util";
5781
- var inputSchema13 = {
5908
+ var inputSchema14 = {
5782
5909
  type: "object",
5783
5910
  properties: {
5784
5911
  text: {
@@ -5812,7 +5939,7 @@ var inputSchema13 = {
5812
5939
  required: ["text", "title"],
5813
5940
  additionalProperties: false
5814
5941
  };
5815
- var outputSchema13 = {
5942
+ var outputSchema14 = {
5816
5943
  type: "object",
5817
5944
  properties: {
5818
5945
  doc_id: {
@@ -5821,8 +5948,10 @@ var outputSchema13 = {
5821
5948
  description: "Generated or provided document ID"
5822
5949
  },
5823
5950
  documentTree: {
5951
+ type: "object",
5824
5952
  title: "Document Tree",
5825
- description: "Parsed hierarchical document tree"
5953
+ description: "Parsed hierarchical document tree",
5954
+ additionalProperties: true
5826
5955
  },
5827
5956
  nodeCount: {
5828
5957
  type: "number",
@@ -5834,21 +5963,21 @@ var outputSchema13 = {
5834
5963
  additionalProperties: false
5835
5964
  };
5836
5965
 
5837
- class StructuralParserTask extends Task16 {
5966
+ class StructuralParserTask extends Task17 {
5838
5967
  static type = "StructuralParserTask";
5839
5968
  static category = "Document";
5840
5969
  static title = "Structural Parser";
5841
5970
  static description = "Parse documents into hierarchical tree structure";
5842
5971
  static cacheable = true;
5843
5972
  static inputSchema() {
5844
- return inputSchema13;
5973
+ return inputSchema14;
5845
5974
  }
5846
5975
  static outputSchema() {
5847
- return outputSchema13;
5976
+ return outputSchema14;
5848
5977
  }
5849
5978
  async execute(input, context) {
5850
5979
  const { text, title, format = "auto", sourceUri, doc_id: providedDocId } = input;
5851
- const doc_id = providedDocId || uuid42();
5980
+ const doc_id = providedDocId || sourceUri || uuid42();
5852
5981
  let documentTree;
5853
5982
  if (format === "markdown") {
5854
5983
  documentTree = await StructuralParser.parseMarkdown(doc_id, text, title);
@@ -5877,10 +6006,10 @@ class StructuralParserTask extends Task16 {
5877
6006
  var structuralParser = (input, config) => {
5878
6007
  return new StructuralParserTask(config).run(input);
5879
6008
  };
5880
- Workflow34.prototype.structuralParser = CreateWorkflow34(StructuralParserTask);
6009
+ Workflow35.prototype.structuralParser = CreateWorkflow35(StructuralParserTask);
5881
6010
 
5882
6011
  // src/task/StructuredGenerationTask.ts
5883
- import { CreateWorkflow as CreateWorkflow35, Workflow as Workflow35 } from "@workglow/task-graph";
6012
+ import { CreateWorkflow as CreateWorkflow36, Workflow as Workflow36 } from "@workglow/task-graph";
5884
6013
  var modelSchema23 = TypeModel("model:StructuredGenerationTask");
5885
6014
  var StructuredGenerationInputSchema = {
5886
6015
  type: "object",
@@ -5948,17 +6077,17 @@ class StructuredGenerationTask extends StreamingAiTask {
5948
6077
  var structuredGeneration = (input, config) => {
5949
6078
  return new StructuredGenerationTask(config).run(input);
5950
6079
  };
5951
- Workflow35.prototype.structuredGeneration = CreateWorkflow35(StructuredGenerationTask);
6080
+ Workflow36.prototype.structuredGeneration = CreateWorkflow36(StructuredGenerationTask);
5952
6081
 
5953
6082
  // src/task/TextChunkerTask.ts
5954
- import { CreateWorkflow as CreateWorkflow36, Task as Task17, Workflow as Workflow36 } from "@workglow/task-graph";
6083
+ import { CreateWorkflow as CreateWorkflow37, Task as Task18, Workflow as Workflow37 } from "@workglow/task-graph";
5955
6084
  var ChunkingStrategy = {
5956
6085
  FIXED: "fixed",
5957
6086
  SENTENCE: "sentence",
5958
6087
  PARAGRAPH: "paragraph",
5959
6088
  SEMANTIC: "semantic"
5960
6089
  };
5961
- var inputSchema14 = {
6090
+ var inputSchema15 = {
5962
6091
  type: "object",
5963
6092
  properties: {
5964
6093
  text: {
@@ -5991,7 +6120,7 @@ var inputSchema14 = {
5991
6120
  required: ["text"],
5992
6121
  additionalProperties: false
5993
6122
  };
5994
- var outputSchema14 = {
6123
+ var outputSchema15 = {
5995
6124
  type: "object",
5996
6125
  properties: {
5997
6126
  chunks: {
@@ -6020,17 +6149,17 @@ var outputSchema14 = {
6020
6149
  additionalProperties: false
6021
6150
  };
6022
6151
 
6023
- class TextChunkerTask extends Task17 {
6152
+ class TextChunkerTask extends Task18 {
6024
6153
  static type = "TextChunkerTask";
6025
6154
  static category = "Document";
6026
6155
  static title = "Text Chunker";
6027
6156
  static description = "Splits text into chunks using various strategies (fixed, sentence, paragraph)";
6028
6157
  static cacheable = true;
6029
6158
  static inputSchema() {
6030
- return inputSchema14;
6159
+ return inputSchema15;
6031
6160
  }
6032
6161
  static outputSchema() {
6033
- return outputSchema14;
6162
+ return outputSchema15;
6034
6163
  }
6035
6164
  async execute(input, context) {
6036
6165
  const { text, chunkSize = 512, chunkOverlap = 50, strategy = ChunkingStrategy.FIXED } = input;
@@ -6200,10 +6329,10 @@ class TextChunkerTask extends Task17 {
6200
6329
  var textChunker = (input, config) => {
6201
6330
  return new TextChunkerTask(config).run(input);
6202
6331
  };
6203
- Workflow36.prototype.textChunker = CreateWorkflow36(TextChunkerTask);
6332
+ Workflow37.prototype.textChunker = CreateWorkflow37(TextChunkerTask);
6204
6333
 
6205
6334
  // src/task/TextFillMaskTask.ts
6206
- import { CreateWorkflow as CreateWorkflow37, Workflow as Workflow37 } from "@workglow/task-graph";
6335
+ import { CreateWorkflow as CreateWorkflow38, Workflow as Workflow38 } from "@workglow/task-graph";
6207
6336
  var modelSchema24 = TypeModel("model:TextFillMaskTask");
6208
6337
  var TextFillMaskInputSchema = {
6209
6338
  type: "object",
@@ -6268,10 +6397,10 @@ class TextFillMaskTask extends AiTask {
6268
6397
  var textFillMask = (input, config) => {
6269
6398
  return new TextFillMaskTask(config).run(input);
6270
6399
  };
6271
- Workflow37.prototype.textFillMask = CreateWorkflow37(TextFillMaskTask);
6400
+ Workflow38.prototype.textFillMask = CreateWorkflow38(TextFillMaskTask);
6272
6401
 
6273
6402
  // src/task/TextGenerationTask.ts
6274
- import { CreateWorkflow as CreateWorkflow38, Workflow as Workflow38 } from "@workglow/task-graph";
6403
+ import { CreateWorkflow as CreateWorkflow39, Workflow as Workflow39 } from "@workglow/task-graph";
6275
6404
  var generatedTextSchema2 = {
6276
6405
  type: "string",
6277
6406
  title: "Text",
@@ -6356,10 +6485,10 @@ class TextGenerationTask extends StreamingAiTask {
6356
6485
  var textGeneration = (input, config) => {
6357
6486
  return new TextGenerationTask(config).run(input);
6358
6487
  };
6359
- Workflow38.prototype.textGeneration = CreateWorkflow38(TextGenerationTask);
6488
+ Workflow39.prototype.textGeneration = CreateWorkflow39(TextGenerationTask);
6360
6489
 
6361
6490
  // src/task/TextLanguageDetectionTask.ts
6362
- import { CreateWorkflow as CreateWorkflow39, Workflow as Workflow39 } from "@workglow/task-graph";
6491
+ import { CreateWorkflow as CreateWorkflow40, Workflow as Workflow40 } from "@workglow/task-graph";
6363
6492
  var modelSchema26 = TypeModel("model:TextLanguageDetectionTask");
6364
6493
  var TextLanguageDetectionInputSchema = {
6365
6494
  type: "object",
@@ -6427,10 +6556,10 @@ class TextLanguageDetectionTask extends AiTask {
6427
6556
  var textLanguageDetection = (input, config) => {
6428
6557
  return new TextLanguageDetectionTask(config).run(input);
6429
6558
  };
6430
- Workflow39.prototype.textLanguageDetection = CreateWorkflow39(TextLanguageDetectionTask);
6559
+ Workflow40.prototype.textLanguageDetection = CreateWorkflow40(TextLanguageDetectionTask);
6431
6560
 
6432
6561
  // src/task/TextQuestionAnswerTask.ts
6433
- import { CreateWorkflow as CreateWorkflow40, Workflow as Workflow40 } from "@workglow/task-graph";
6562
+ import { CreateWorkflow as CreateWorkflow41, Workflow as Workflow41 } from "@workglow/task-graph";
6434
6563
  var contextSchema = {
6435
6564
  type: "string",
6436
6565
  title: "Context",
@@ -6482,10 +6611,10 @@ class TextQuestionAnswerTask extends StreamingAiTask {
6482
6611
  var textQuestionAnswer = (input, config) => {
6483
6612
  return new TextQuestionAnswerTask(config).run(input);
6484
6613
  };
6485
- Workflow40.prototype.textQuestionAnswer = CreateWorkflow40(TextQuestionAnswerTask);
6614
+ Workflow41.prototype.textQuestionAnswer = CreateWorkflow41(TextQuestionAnswerTask);
6486
6615
 
6487
6616
  // src/task/TextRewriterTask.ts
6488
- import { CreateWorkflow as CreateWorkflow41, Workflow as Workflow41 } from "@workglow/task-graph";
6617
+ import { CreateWorkflow as CreateWorkflow42, Workflow as Workflow42 } from "@workglow/task-graph";
6489
6618
  var modelSchema28 = TypeModel("model:TextRewriterTask");
6490
6619
  var TextRewriterInputSchema = {
6491
6620
  type: "object",
@@ -6534,10 +6663,10 @@ class TextRewriterTask extends StreamingAiTask {
6534
6663
  var textRewriter = (input, config) => {
6535
6664
  return new TextRewriterTask(config).run(input);
6536
6665
  };
6537
- Workflow41.prototype.textRewriter = CreateWorkflow41(TextRewriterTask);
6666
+ Workflow42.prototype.textRewriter = CreateWorkflow42(TextRewriterTask);
6538
6667
 
6539
6668
  // src/task/TextTranslationTask.ts
6540
- import { CreateWorkflow as CreateWorkflow42, Workflow as Workflow42 } from "@workglow/task-graph";
6669
+ import { CreateWorkflow as CreateWorkflow43, Workflow as Workflow43 } from "@workglow/task-graph";
6541
6670
  var modelSchema29 = TypeModel("model:TextTranslationTask");
6542
6671
  var translationTextSchema = {
6543
6672
  type: "string",
@@ -6600,16 +6729,16 @@ class TextTranslationTask extends StreamingAiTask {
6600
6729
  var textTranslation = (input, config) => {
6601
6730
  return new TextTranslationTask(config).run(input);
6602
6731
  };
6603
- Workflow42.prototype.textTranslation = CreateWorkflow42(TextTranslationTask);
6732
+ Workflow43.prototype.textTranslation = CreateWorkflow43(TextTranslationTask);
6604
6733
 
6605
6734
  // src/task/TopicSegmenterTask.ts
6606
- import { CreateWorkflow as CreateWorkflow43, Task as Task18, Workflow as Workflow43 } from "@workglow/task-graph";
6735
+ import { CreateWorkflow as CreateWorkflow44, Task as Task19, Workflow as Workflow44 } from "@workglow/task-graph";
6607
6736
  var SegmentationMethod = {
6608
6737
  HEURISTIC: "heuristic",
6609
6738
  EMBEDDING_SIMILARITY: "embedding-similarity",
6610
6739
  HYBRID: "hybrid"
6611
6740
  };
6612
- var inputSchema15 = {
6741
+ var inputSchema16 = {
6613
6742
  type: "object",
6614
6743
  properties: {
6615
6744
  text: {
@@ -6650,7 +6779,7 @@ var inputSchema15 = {
6650
6779
  required: ["text"],
6651
6780
  additionalProperties: false
6652
6781
  };
6653
- var outputSchema15 = {
6782
+ var outputSchema16 = {
6654
6783
  type: "object",
6655
6784
  properties: {
6656
6785
  segments: {
@@ -6678,7 +6807,7 @@ var outputSchema15 = {
6678
6807
  additionalProperties: false
6679
6808
  };
6680
6809
 
6681
- class TopicSegmenterTask extends Task18 {
6810
+ class TopicSegmenterTask extends Task19 {
6682
6811
  static type = "TopicSegmenterTask";
6683
6812
  static category = "Document";
6684
6813
  static title = "Topic Segmenter";
@@ -6686,10 +6815,10 @@ class TopicSegmenterTask extends Task18 {
6686
6815
  static cacheable = true;
6687
6816
  static EMBEDDING_DIMENSIONS = 256;
6688
6817
  static inputSchema() {
6689
- return inputSchema15;
6818
+ return inputSchema16;
6690
6819
  }
6691
6820
  static outputSchema() {
6692
- return outputSchema15;
6821
+ return outputSchema16;
6693
6822
  }
6694
6823
  async execute(input, context) {
6695
6824
  const {
@@ -6883,10 +7012,10 @@ class TopicSegmenterTask extends Task18 {
6883
7012
  var topicSegmenter = (input, config) => {
6884
7013
  return new TopicSegmenterTask(config).run(input);
6885
7014
  };
6886
- Workflow43.prototype.topicSegmenter = CreateWorkflow43(TopicSegmenterTask);
7015
+ Workflow44.prototype.topicSegmenter = CreateWorkflow44(TopicSegmenterTask);
6887
7016
 
6888
7017
  // src/task/UnloadModelTask.ts
6889
- import { CreateWorkflow as CreateWorkflow44, Workflow as Workflow44 } from "@workglow/task-graph";
7018
+ import { CreateWorkflow as CreateWorkflow45, Workflow as Workflow45 } from "@workglow/task-graph";
6890
7019
  var modelSchema30 = TypeModel("model");
6891
7020
  var UnloadModelInputSchema = {
6892
7021
  type: "object",
@@ -6921,16 +7050,16 @@ class UnloadModelTask extends AiTask {
6921
7050
  var unloadModel = (input, config) => {
6922
7051
  return new UnloadModelTask(config).run(input);
6923
7052
  };
6924
- Workflow44.prototype.unloadModel = CreateWorkflow44(UnloadModelTask);
7053
+ Workflow45.prototype.unloadModel = CreateWorkflow45(UnloadModelTask);
6925
7054
 
6926
7055
  // src/task/VectorQuantizeTask.ts
6927
- import { CreateWorkflow as CreateWorkflow45, Task as Task19, Workflow as Workflow45 } from "@workglow/task-graph";
7056
+ import { CreateWorkflow as CreateWorkflow46, Task as Task20, Workflow as Workflow46 } from "@workglow/task-graph";
6928
7057
  import {
6929
7058
  normalizeNumberArray,
6930
7059
  TensorType,
6931
7060
  TypedArraySchema as TypedArraySchema8
6932
7061
  } from "@workglow/util/schema";
6933
- var inputSchema16 = {
7062
+ var inputSchema17 = {
6934
7063
  type: "object",
6935
7064
  properties: {
6936
7065
  vector: {
@@ -6967,7 +7096,7 @@ var inputSchema16 = {
6967
7096
  required: ["vector", "targetType"],
6968
7097
  additionalProperties: false
6969
7098
  };
6970
- var outputSchema16 = {
7099
+ var outputSchema17 = {
6971
7100
  type: "object",
6972
7101
  properties: {
6973
7102
  vector: {
@@ -7004,17 +7133,17 @@ var outputSchema16 = {
7004
7133
  additionalProperties: false
7005
7134
  };
7006
7135
 
7007
- class VectorQuantizeTask extends Task19 {
7136
+ class VectorQuantizeTask extends Task20 {
7008
7137
  static type = "VectorQuantizeTask";
7009
7138
  static category = "Vector";
7010
7139
  static title = "Quantize";
7011
7140
  static description = "Quantize vectors to reduce storage and improve performance";
7012
7141
  static cacheable = true;
7013
7142
  static inputSchema() {
7014
- return inputSchema16;
7143
+ return inputSchema17;
7015
7144
  }
7016
7145
  static outputSchema() {
7017
- return outputSchema16;
7146
+ return outputSchema17;
7018
7147
  }
7019
7148
  async executeReactive(input) {
7020
7149
  const { vector, targetType, normalize = true } = input;
@@ -7104,10 +7233,10 @@ class VectorQuantizeTask extends Task19 {
7104
7233
  var vectorQuantize = (input, config) => {
7105
7234
  return new VectorQuantizeTask(config).run(input);
7106
7235
  };
7107
- Workflow45.prototype.vectorQuantize = CreateWorkflow45(VectorQuantizeTask);
7236
+ Workflow46.prototype.vectorQuantize = CreateWorkflow46(VectorQuantizeTask);
7108
7237
 
7109
7238
  // src/task/VectorSimilarityTask.ts
7110
- import { CreateWorkflow as CreateWorkflow46, GraphAsTask, Workflow as Workflow46 } from "@workglow/task-graph";
7239
+ import { CreateWorkflow as CreateWorkflow47, GraphAsTask, Workflow as Workflow47 } from "@workglow/task-graph";
7111
7240
  import {
7112
7241
  cosineSimilarity,
7113
7242
  hammingSimilarity,
@@ -7213,7 +7342,7 @@ class VectorSimilarityTask extends GraphAsTask {
7213
7342
  var similarity = (input, config) => {
7214
7343
  return new VectorSimilarityTask(config).run(input);
7215
7344
  };
7216
- Workflow46.prototype.similarity = CreateWorkflow46(VectorSimilarityTask);
7345
+ Workflow47.prototype.similarity = CreateWorkflow47(VectorSimilarityTask);
7217
7346
  // src/task/MessageConversion.ts
7218
7347
  function getInputMessages(input) {
7219
7348
  const messages = input.messages;
@@ -7432,6 +7561,7 @@ var registerAiTasks = () => {
7432
7561
  HandLandmarkerTask,
7433
7562
  HierarchicalChunkerTask,
7434
7563
  HierarchyJoinTask,
7564
+ KbToDocumentsTask,
7435
7565
  ImageClassificationTask,
7436
7566
  ImageEmbeddingTask,
7437
7567
  ImageSegmentationTask,
@@ -7500,6 +7630,7 @@ export {
7500
7630
  objectDetection,
7501
7631
  modelSearch,
7502
7632
  modelInfo,
7633
+ kbToDocuments,
7503
7634
  isAllowedToolName,
7504
7635
  imageToText,
7505
7636
  imageSegmentation,
@@ -7610,6 +7741,7 @@ export {
7610
7741
  ModelInfoTask,
7611
7742
  ModelConfigSchema,
7612
7743
  MODEL_REPOSITORY,
7744
+ KbToDocumentsTask,
7613
7745
  InMemoryModelRepository,
7614
7746
  ImageToTextTask,
7615
7747
  ImageToTextOutputSchema,
@@ -7641,6 +7773,7 @@ export {
7641
7773
  DocumentUpsertTask,
7642
7774
  DocumentEnricherTask,
7643
7775
  DirectExecutionStrategy,
7776
+ DEFAULT_AI_PROVIDER_WORKER_IDLE_TIMEOUT_MS,
7644
7777
  CountTokensTask,
7645
7778
  CountTokensOutputSchema,
7646
7779
  CountTokensInputSchema,
@@ -7664,4 +7797,4 @@ export {
7664
7797
  AgentInputSchema
7665
7798
  };
7666
7799
 
7667
- //# debugId=CAF73EE543E79D8664756E2164756E21
7800
+ //# debugId=8A9763DF6FDECCDA64756E2164756E21