@workglow/ai 0.0.108 → 0.0.109
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.
- package/dist/browser.js +126 -69
- package/dist/browser.js.map +6 -5
- package/dist/bun.js +126 -69
- package/dist/bun.js.map +6 -5
- package/dist/node.js +126 -69
- package/dist/node.js.map +6 -5
- package/dist/provider/AiProvider.d.ts +4 -0
- package/dist/provider/AiProvider.d.ts.map +1 -1
- package/dist/task/ModelInfoTask.d.ts +206 -0
- package/dist/task/ModelInfoTask.d.ts.map +1 -0
- package/dist/task/index.d.ts +3 -1
- package/dist/task/index.d.ts.map +1 -1
- package/package.json +15 -16
package/dist/bun.js
CHANGED
|
@@ -3657,9 +3657,63 @@ var imageToText = (input, config) => {
|
|
|
3657
3657
|
};
|
|
3658
3658
|
Workflow23.prototype.imageToText = CreateWorkflow23(ImageToTextTask);
|
|
3659
3659
|
|
|
3660
|
-
// src/task/
|
|
3660
|
+
// src/task/ModelInfoTask.ts
|
|
3661
3661
|
import { CreateWorkflow as CreateWorkflow24, Workflow as Workflow24 } from "@workglow/task-graph";
|
|
3662
|
-
var modelSchema17 = TypeModel("model
|
|
3662
|
+
var modelSchema17 = TypeModel("model");
|
|
3663
|
+
var ModelInfoInputSchema = {
|
|
3664
|
+
type: "object",
|
|
3665
|
+
properties: {
|
|
3666
|
+
model: modelSchema17
|
|
3667
|
+
},
|
|
3668
|
+
required: ["model"],
|
|
3669
|
+
additionalProperties: false
|
|
3670
|
+
};
|
|
3671
|
+
var ModelInfoOutputSchema = {
|
|
3672
|
+
type: "object",
|
|
3673
|
+
properties: {
|
|
3674
|
+
model: modelSchema17,
|
|
3675
|
+
is_local: { type: "boolean" },
|
|
3676
|
+
is_remote: { type: "boolean" },
|
|
3677
|
+
supports_browser: { type: "boolean" },
|
|
3678
|
+
supports_node: { type: "boolean" },
|
|
3679
|
+
is_cached: { type: "boolean" },
|
|
3680
|
+
is_loaded: { type: "boolean" },
|
|
3681
|
+
file_sizes: {}
|
|
3682
|
+
},
|
|
3683
|
+
required: [
|
|
3684
|
+
"model",
|
|
3685
|
+
"is_local",
|
|
3686
|
+
"is_remote",
|
|
3687
|
+
"supports_browser",
|
|
3688
|
+
"supports_node",
|
|
3689
|
+
"is_cached",
|
|
3690
|
+
"is_loaded",
|
|
3691
|
+
"file_sizes"
|
|
3692
|
+
],
|
|
3693
|
+
additionalProperties: false
|
|
3694
|
+
};
|
|
3695
|
+
|
|
3696
|
+
class ModelInfoTask extends AiTask {
|
|
3697
|
+
static type = "ModelInfoTask";
|
|
3698
|
+
static category = "Hidden";
|
|
3699
|
+
static title = "Model Info";
|
|
3700
|
+
static description = "Returns runtime information about a model including locality, cache status, and file sizes";
|
|
3701
|
+
static inputSchema() {
|
|
3702
|
+
return ModelInfoInputSchema;
|
|
3703
|
+
}
|
|
3704
|
+
static outputSchema() {
|
|
3705
|
+
return ModelInfoOutputSchema;
|
|
3706
|
+
}
|
|
3707
|
+
static cacheable = false;
|
|
3708
|
+
}
|
|
3709
|
+
var modelInfo = (input, config) => {
|
|
3710
|
+
return new ModelInfoTask({}, config).run(input);
|
|
3711
|
+
};
|
|
3712
|
+
Workflow24.prototype.modelInfo = CreateWorkflow24(ModelInfoTask);
|
|
3713
|
+
|
|
3714
|
+
// src/task/ObjectDetectionTask.ts
|
|
3715
|
+
import { CreateWorkflow as CreateWorkflow25, Workflow as Workflow25 } from "@workglow/task-graph";
|
|
3716
|
+
var modelSchema18 = TypeModel("model:ObjectDetectionTask");
|
|
3663
3717
|
var detectionSchema = {
|
|
3664
3718
|
type: "object",
|
|
3665
3719
|
properties: {
|
|
@@ -3684,7 +3738,7 @@ var ObjectDetectionInputSchema = {
|
|
|
3684
3738
|
type: "object",
|
|
3685
3739
|
properties: {
|
|
3686
3740
|
image: TypeImageInput,
|
|
3687
|
-
model:
|
|
3741
|
+
model: modelSchema18,
|
|
3688
3742
|
labels: {
|
|
3689
3743
|
type: "array",
|
|
3690
3744
|
items: {
|
|
@@ -3738,11 +3792,11 @@ class ObjectDetectionTask extends AiVisionTask {
|
|
|
3738
3792
|
var objectDetection = (input, config) => {
|
|
3739
3793
|
return new ObjectDetectionTask({}, config).run(input);
|
|
3740
3794
|
};
|
|
3741
|
-
|
|
3795
|
+
Workflow25.prototype.objectDetection = CreateWorkflow25(ObjectDetectionTask);
|
|
3742
3796
|
|
|
3743
3797
|
// src/task/PoseLandmarkerTask.ts
|
|
3744
|
-
import { CreateWorkflow as
|
|
3745
|
-
var
|
|
3798
|
+
import { CreateWorkflow as CreateWorkflow26, Workflow as Workflow26 } from "@workglow/task-graph";
|
|
3799
|
+
var modelSchema19 = TypeModel("model:PoseLandmarkerTask");
|
|
3746
3800
|
var TypePoseLandmark = {
|
|
3747
3801
|
type: "object",
|
|
3748
3802
|
properties: {
|
|
@@ -3821,7 +3875,7 @@ var PoseLandmarkerInputSchema = {
|
|
|
3821
3875
|
type: "object",
|
|
3822
3876
|
properties: {
|
|
3823
3877
|
image: TypeImageInput,
|
|
3824
|
-
model:
|
|
3878
|
+
model: modelSchema19,
|
|
3825
3879
|
numPoses: {
|
|
3826
3880
|
type: "number",
|
|
3827
3881
|
minimum: 1,
|
|
@@ -3900,13 +3954,13 @@ class PoseLandmarkerTask extends AiVisionTask {
|
|
|
3900
3954
|
var poseLandmarker = (input, config) => {
|
|
3901
3955
|
return new PoseLandmarkerTask({}, config).run(input);
|
|
3902
3956
|
};
|
|
3903
|
-
|
|
3957
|
+
Workflow26.prototype.poseLandmarker = CreateWorkflow26(PoseLandmarkerTask);
|
|
3904
3958
|
|
|
3905
3959
|
// src/task/QueryExpanderTask.ts
|
|
3906
3960
|
import {
|
|
3907
|
-
CreateWorkflow as
|
|
3961
|
+
CreateWorkflow as CreateWorkflow27,
|
|
3908
3962
|
Task as Task10,
|
|
3909
|
-
Workflow as
|
|
3963
|
+
Workflow as Workflow27
|
|
3910
3964
|
} from "@workglow/task-graph";
|
|
3911
3965
|
var QueryExpansionMethod = {
|
|
3912
3966
|
MULTI_QUERY: "multi-query",
|
|
@@ -4117,18 +4171,18 @@ class QueryExpanderTask extends Task10 {
|
|
|
4117
4171
|
var queryExpander = (input, config) => {
|
|
4118
4172
|
return new QueryExpanderTask({}, config).run(input);
|
|
4119
4173
|
};
|
|
4120
|
-
|
|
4174
|
+
Workflow27.prototype.queryExpander = CreateWorkflow27(QueryExpanderTask);
|
|
4121
4175
|
|
|
4122
4176
|
// src/task/RerankerTask.ts
|
|
4123
4177
|
import {
|
|
4124
|
-
CreateWorkflow as
|
|
4178
|
+
CreateWorkflow as CreateWorkflow29,
|
|
4125
4179
|
Task as Task11,
|
|
4126
|
-
Workflow as
|
|
4180
|
+
Workflow as Workflow29
|
|
4127
4181
|
} from "@workglow/task-graph";
|
|
4128
4182
|
|
|
4129
4183
|
// src/task/TextClassificationTask.ts
|
|
4130
|
-
import { CreateWorkflow as
|
|
4131
|
-
var
|
|
4184
|
+
import { CreateWorkflow as CreateWorkflow28, Workflow as Workflow28 } from "@workglow/task-graph";
|
|
4185
|
+
var modelSchema20 = TypeModel("model:TextClassificationTask");
|
|
4132
4186
|
var TextClassificationInputSchema = {
|
|
4133
4187
|
type: "object",
|
|
4134
4188
|
properties: {
|
|
@@ -4155,7 +4209,7 @@ var TextClassificationInputSchema = {
|
|
|
4155
4209
|
description: "The maximum number of categories to return",
|
|
4156
4210
|
"x-ui-group": "Configuration"
|
|
4157
4211
|
},
|
|
4158
|
-
model:
|
|
4212
|
+
model: modelSchema20
|
|
4159
4213
|
},
|
|
4160
4214
|
required: ["text", "model"],
|
|
4161
4215
|
additionalProperties: false
|
|
@@ -4205,7 +4259,7 @@ class TextClassificationTask extends AiTask {
|
|
|
4205
4259
|
var textClassification = (input, config) => {
|
|
4206
4260
|
return new TextClassificationTask({}, config).run(input);
|
|
4207
4261
|
};
|
|
4208
|
-
|
|
4262
|
+
Workflow28.prototype.textClassification = CreateWorkflow28(TextClassificationTask);
|
|
4209
4263
|
|
|
4210
4264
|
// src/task/RerankerTask.ts
|
|
4211
4265
|
var inputSchema11 = {
|
|
@@ -4429,14 +4483,14 @@ class RerankerTask extends Task11 {
|
|
|
4429
4483
|
var reranker = (input, config) => {
|
|
4430
4484
|
return new RerankerTask({}, config).run(input);
|
|
4431
4485
|
};
|
|
4432
|
-
|
|
4486
|
+
Workflow29.prototype.reranker = CreateWorkflow29(RerankerTask);
|
|
4433
4487
|
|
|
4434
4488
|
// src/task/StructuralParserTask.ts
|
|
4435
4489
|
import { StructuralParser } from "@workglow/dataset";
|
|
4436
4490
|
import {
|
|
4437
|
-
CreateWorkflow as
|
|
4491
|
+
CreateWorkflow as CreateWorkflow30,
|
|
4438
4492
|
Task as Task12,
|
|
4439
|
-
Workflow as
|
|
4493
|
+
Workflow as Workflow30
|
|
4440
4494
|
} from "@workglow/task-graph";
|
|
4441
4495
|
import { uuid4 as uuid42 } from "@workglow/util";
|
|
4442
4496
|
var inputSchema12 = {
|
|
@@ -4538,15 +4592,15 @@ class StructuralParserTask extends Task12 {
|
|
|
4538
4592
|
var structuralParser = (input, config) => {
|
|
4539
4593
|
return new StructuralParserTask({}, config).run(input);
|
|
4540
4594
|
};
|
|
4541
|
-
|
|
4595
|
+
Workflow30.prototype.structuralParser = CreateWorkflow30(StructuralParserTask);
|
|
4542
4596
|
|
|
4543
4597
|
// src/task/StructuredGenerationTask.ts
|
|
4544
|
-
import { CreateWorkflow as
|
|
4545
|
-
var
|
|
4598
|
+
import { CreateWorkflow as CreateWorkflow31, Workflow as Workflow31 } from "@workglow/task-graph";
|
|
4599
|
+
var modelSchema21 = TypeModel("model:StructuredGenerationTask");
|
|
4546
4600
|
var StructuredGenerationInputSchema = {
|
|
4547
4601
|
type: "object",
|
|
4548
4602
|
properties: {
|
|
4549
|
-
model:
|
|
4603
|
+
model: modelSchema21,
|
|
4550
4604
|
prompt: {
|
|
4551
4605
|
type: "string",
|
|
4552
4606
|
title: "Prompt",
|
|
@@ -4609,13 +4663,13 @@ class StructuredGenerationTask extends StreamingAiTask {
|
|
|
4609
4663
|
var structuredGeneration = (input, config) => {
|
|
4610
4664
|
return new StructuredGenerationTask({}, config).run(input);
|
|
4611
4665
|
};
|
|
4612
|
-
|
|
4666
|
+
Workflow31.prototype.structuredGeneration = CreateWorkflow31(StructuredGenerationTask);
|
|
4613
4667
|
|
|
4614
4668
|
// src/task/TextChunkerTask.ts
|
|
4615
4669
|
import {
|
|
4616
|
-
CreateWorkflow as
|
|
4670
|
+
CreateWorkflow as CreateWorkflow32,
|
|
4617
4671
|
Task as Task13,
|
|
4618
|
-
Workflow as
|
|
4672
|
+
Workflow as Workflow32
|
|
4619
4673
|
} from "@workglow/task-graph";
|
|
4620
4674
|
var ChunkingStrategy = {
|
|
4621
4675
|
FIXED: "fixed",
|
|
@@ -4865,11 +4919,11 @@ class TextChunkerTask extends Task13 {
|
|
|
4865
4919
|
var textChunker = (input, config) => {
|
|
4866
4920
|
return new TextChunkerTask({}, config).run(input);
|
|
4867
4921
|
};
|
|
4868
|
-
|
|
4922
|
+
Workflow32.prototype.textChunker = CreateWorkflow32(TextChunkerTask);
|
|
4869
4923
|
|
|
4870
4924
|
// src/task/TextFillMaskTask.ts
|
|
4871
|
-
import { CreateWorkflow as
|
|
4872
|
-
var
|
|
4925
|
+
import { CreateWorkflow as CreateWorkflow33, Workflow as Workflow33 } from "@workglow/task-graph";
|
|
4926
|
+
var modelSchema22 = TypeModel("model:TextFillMaskTask");
|
|
4873
4927
|
var TextFillMaskInputSchema = {
|
|
4874
4928
|
type: "object",
|
|
4875
4929
|
properties: {
|
|
@@ -4878,7 +4932,7 @@ var TextFillMaskInputSchema = {
|
|
|
4878
4932
|
title: "Text",
|
|
4879
4933
|
description: "The text with a mask token to fill"
|
|
4880
4934
|
},
|
|
4881
|
-
model:
|
|
4935
|
+
model: modelSchema22
|
|
4882
4936
|
},
|
|
4883
4937
|
required: ["text", "model"],
|
|
4884
4938
|
additionalProperties: false
|
|
@@ -4933,21 +4987,21 @@ class TextFillMaskTask extends AiTask {
|
|
|
4933
4987
|
var textFillMask = (input, config) => {
|
|
4934
4988
|
return new TextFillMaskTask({}, config).run(input);
|
|
4935
4989
|
};
|
|
4936
|
-
|
|
4990
|
+
Workflow33.prototype.textFillMask = CreateWorkflow33(TextFillMaskTask);
|
|
4937
4991
|
|
|
4938
4992
|
// src/task/TextGenerationTask.ts
|
|
4939
|
-
import { CreateWorkflow as
|
|
4993
|
+
import { CreateWorkflow as CreateWorkflow34, Workflow as Workflow34 } from "@workglow/task-graph";
|
|
4940
4994
|
var generatedTextSchema2 = {
|
|
4941
4995
|
type: "string",
|
|
4942
4996
|
title: "Text",
|
|
4943
4997
|
description: "The generated text",
|
|
4944
4998
|
"x-stream": "append"
|
|
4945
4999
|
};
|
|
4946
|
-
var
|
|
5000
|
+
var modelSchema23 = TypeModel("model:TextGenerationTask");
|
|
4947
5001
|
var TextGenerationInputSchema = {
|
|
4948
5002
|
type: "object",
|
|
4949
5003
|
properties: {
|
|
4950
|
-
model:
|
|
5004
|
+
model: modelSchema23,
|
|
4951
5005
|
prompt: {
|
|
4952
5006
|
type: "string",
|
|
4953
5007
|
title: "Prompt",
|
|
@@ -5021,11 +5075,11 @@ class TextGenerationTask extends StreamingAiTask {
|
|
|
5021
5075
|
var textGeneration = (input, config) => {
|
|
5022
5076
|
return new TextGenerationTask({}, config).run(input);
|
|
5023
5077
|
};
|
|
5024
|
-
|
|
5078
|
+
Workflow34.prototype.textGeneration = CreateWorkflow34(TextGenerationTask);
|
|
5025
5079
|
|
|
5026
5080
|
// src/task/TextLanguageDetectionTask.ts
|
|
5027
|
-
import { CreateWorkflow as
|
|
5028
|
-
var
|
|
5081
|
+
import { CreateWorkflow as CreateWorkflow35, Workflow as Workflow35 } from "@workglow/task-graph";
|
|
5082
|
+
var modelSchema24 = TypeModel("model:TextLanguageDetectionTask");
|
|
5029
5083
|
var TextLanguageDetectionInputSchema = {
|
|
5030
5084
|
type: "object",
|
|
5031
5085
|
properties: {
|
|
@@ -5042,7 +5096,7 @@ var TextLanguageDetectionInputSchema = {
|
|
|
5042
5096
|
title: "Max Languages",
|
|
5043
5097
|
description: "The maximum number of languages to return"
|
|
5044
5098
|
},
|
|
5045
|
-
model:
|
|
5099
|
+
model: modelSchema24
|
|
5046
5100
|
},
|
|
5047
5101
|
required: ["text", "model"],
|
|
5048
5102
|
additionalProperties: false
|
|
@@ -5092,10 +5146,10 @@ class TextLanguageDetectionTask extends AiTask {
|
|
|
5092
5146
|
var textLanguageDetection = (input, config) => {
|
|
5093
5147
|
return new TextLanguageDetectionTask({}, config).run(input);
|
|
5094
5148
|
};
|
|
5095
|
-
|
|
5149
|
+
Workflow35.prototype.textLanguageDetection = CreateWorkflow35(TextLanguageDetectionTask);
|
|
5096
5150
|
|
|
5097
5151
|
// src/task/TextQuestionAnswerTask.ts
|
|
5098
|
-
import { CreateWorkflow as
|
|
5152
|
+
import { CreateWorkflow as CreateWorkflow36, Workflow as Workflow36 } from "@workglow/task-graph";
|
|
5099
5153
|
var contextSchema = {
|
|
5100
5154
|
type: "string",
|
|
5101
5155
|
title: "Context",
|
|
@@ -5112,13 +5166,13 @@ var textSchema = {
|
|
|
5112
5166
|
description: "The generated text",
|
|
5113
5167
|
"x-stream": "append"
|
|
5114
5168
|
};
|
|
5115
|
-
var
|
|
5169
|
+
var modelSchema25 = TypeModel("model:TextQuestionAnswerTask");
|
|
5116
5170
|
var TextQuestionAnswerInputSchema = {
|
|
5117
5171
|
type: "object",
|
|
5118
5172
|
properties: {
|
|
5119
5173
|
context: contextSchema,
|
|
5120
5174
|
question: questionSchema,
|
|
5121
|
-
model:
|
|
5175
|
+
model: modelSchema25
|
|
5122
5176
|
},
|
|
5123
5177
|
required: ["context", "question", "model"],
|
|
5124
5178
|
additionalProperties: false
|
|
@@ -5147,11 +5201,11 @@ class TextQuestionAnswerTask extends StreamingAiTask {
|
|
|
5147
5201
|
var textQuestionAnswer = (input, config) => {
|
|
5148
5202
|
return new TextQuestionAnswerTask({}, config).run(input);
|
|
5149
5203
|
};
|
|
5150
|
-
|
|
5204
|
+
Workflow36.prototype.textQuestionAnswer = CreateWorkflow36(TextQuestionAnswerTask);
|
|
5151
5205
|
|
|
5152
5206
|
// src/task/TextRewriterTask.ts
|
|
5153
|
-
import { CreateWorkflow as
|
|
5154
|
-
var
|
|
5207
|
+
import { CreateWorkflow as CreateWorkflow37, Workflow as Workflow37 } from "@workglow/task-graph";
|
|
5208
|
+
var modelSchema26 = TypeModel("model:TextRewriterTask");
|
|
5155
5209
|
var TextRewriterInputSchema = {
|
|
5156
5210
|
type: "object",
|
|
5157
5211
|
properties: {
|
|
@@ -5165,7 +5219,7 @@ var TextRewriterInputSchema = {
|
|
|
5165
5219
|
title: "Prompt",
|
|
5166
5220
|
description: "The prompt to direct the rewriting"
|
|
5167
5221
|
},
|
|
5168
|
-
model:
|
|
5222
|
+
model: modelSchema26
|
|
5169
5223
|
},
|
|
5170
5224
|
required: ["text", "prompt", "model"],
|
|
5171
5225
|
additionalProperties: false
|
|
@@ -5199,10 +5253,10 @@ class TextRewriterTask extends StreamingAiTask {
|
|
|
5199
5253
|
var textRewriter = (input, config) => {
|
|
5200
5254
|
return new TextRewriterTask({}, config).run(input);
|
|
5201
5255
|
};
|
|
5202
|
-
|
|
5256
|
+
Workflow37.prototype.textRewriter = CreateWorkflow37(TextRewriterTask);
|
|
5203
5257
|
|
|
5204
5258
|
// src/task/ToolCallingTask.ts
|
|
5205
|
-
import { CreateWorkflow as
|
|
5259
|
+
import { CreateWorkflow as CreateWorkflow38, TaskRegistry, Workflow as Workflow38 } from "@workglow/task-graph";
|
|
5206
5260
|
import { getLogger } from "@workglow/util";
|
|
5207
5261
|
function buildToolDescription(tool) {
|
|
5208
5262
|
let desc = tool.description;
|
|
@@ -5274,11 +5328,11 @@ var ToolDefinitionSchema = {
|
|
|
5274
5328
|
required: ["name", "description", "inputSchema"],
|
|
5275
5329
|
additionalProperties: false
|
|
5276
5330
|
};
|
|
5277
|
-
var
|
|
5331
|
+
var modelSchema27 = TypeModel("model:ToolCallingTask");
|
|
5278
5332
|
var ToolCallingInputSchema = {
|
|
5279
5333
|
type: "object",
|
|
5280
5334
|
properties: {
|
|
5281
|
-
model:
|
|
5335
|
+
model: modelSchema27,
|
|
5282
5336
|
prompt: {
|
|
5283
5337
|
type: "string",
|
|
5284
5338
|
title: "Prompt",
|
|
@@ -5356,11 +5410,11 @@ class ToolCallingTask extends StreamingAiTask {
|
|
|
5356
5410
|
var toolCalling = (input, config) => {
|
|
5357
5411
|
return new ToolCallingTask({}, config).run(input);
|
|
5358
5412
|
};
|
|
5359
|
-
|
|
5413
|
+
Workflow38.prototype.toolCalling = CreateWorkflow38(ToolCallingTask);
|
|
5360
5414
|
|
|
5361
5415
|
// src/task/TextTranslationTask.ts
|
|
5362
|
-
import { CreateWorkflow as
|
|
5363
|
-
var
|
|
5416
|
+
import { CreateWorkflow as CreateWorkflow39, Workflow as Workflow39 } from "@workglow/task-graph";
|
|
5417
|
+
var modelSchema28 = TypeModel("model:TextTranslationTask");
|
|
5364
5418
|
var translationTextSchema = {
|
|
5365
5419
|
type: "string",
|
|
5366
5420
|
title: "Text",
|
|
@@ -5387,7 +5441,7 @@ var TextTranslationInputSchema = {
|
|
|
5387
5441
|
minLength: 2,
|
|
5388
5442
|
maxLength: 2
|
|
5389
5443
|
}),
|
|
5390
|
-
model:
|
|
5444
|
+
model: modelSchema28
|
|
5391
5445
|
},
|
|
5392
5446
|
required: ["text", "source_lang", "target_lang", "model"],
|
|
5393
5447
|
additionalProperties: false
|
|
@@ -5422,13 +5476,13 @@ class TextTranslationTask extends StreamingAiTask {
|
|
|
5422
5476
|
var textTranslation = (input, config) => {
|
|
5423
5477
|
return new TextTranslationTask({}, config).run(input);
|
|
5424
5478
|
};
|
|
5425
|
-
|
|
5479
|
+
Workflow39.prototype.textTranslation = CreateWorkflow39(TextTranslationTask);
|
|
5426
5480
|
|
|
5427
5481
|
// src/task/TopicSegmenterTask.ts
|
|
5428
5482
|
import {
|
|
5429
|
-
CreateWorkflow as
|
|
5483
|
+
CreateWorkflow as CreateWorkflow40,
|
|
5430
5484
|
Task as Task14,
|
|
5431
|
-
Workflow as
|
|
5485
|
+
Workflow as Workflow40
|
|
5432
5486
|
} from "@workglow/task-graph";
|
|
5433
5487
|
var SegmentationMethod = {
|
|
5434
5488
|
HEURISTIC: "heuristic",
|
|
@@ -5709,15 +5763,15 @@ class TopicSegmenterTask extends Task14 {
|
|
|
5709
5763
|
var topicSegmenter = (input, config) => {
|
|
5710
5764
|
return new TopicSegmenterTask({}, config).run(input);
|
|
5711
5765
|
};
|
|
5712
|
-
|
|
5766
|
+
Workflow40.prototype.topicSegmenter = CreateWorkflow40(TopicSegmenterTask);
|
|
5713
5767
|
|
|
5714
5768
|
// src/task/UnloadModelTask.ts
|
|
5715
|
-
import { CreateWorkflow as
|
|
5716
|
-
var
|
|
5769
|
+
import { CreateWorkflow as CreateWorkflow41, Workflow as Workflow41 } from "@workglow/task-graph";
|
|
5770
|
+
var modelSchema29 = TypeModel("model");
|
|
5717
5771
|
var UnloadModelInputSchema = {
|
|
5718
5772
|
type: "object",
|
|
5719
5773
|
properties: {
|
|
5720
|
-
model:
|
|
5774
|
+
model: modelSchema29
|
|
5721
5775
|
},
|
|
5722
5776
|
required: ["model"],
|
|
5723
5777
|
additionalProperties: false
|
|
@@ -5725,7 +5779,7 @@ var UnloadModelInputSchema = {
|
|
|
5725
5779
|
var UnloadModelOutputSchema = {
|
|
5726
5780
|
type: "object",
|
|
5727
5781
|
properties: {
|
|
5728
|
-
model:
|
|
5782
|
+
model: modelSchema29
|
|
5729
5783
|
},
|
|
5730
5784
|
required: ["model"],
|
|
5731
5785
|
additionalProperties: false
|
|
@@ -5747,10 +5801,10 @@ class UnloadModelTask extends AiTask {
|
|
|
5747
5801
|
var unloadModel = (input, config) => {
|
|
5748
5802
|
return new UnloadModelTask({}, config).run(input);
|
|
5749
5803
|
};
|
|
5750
|
-
|
|
5804
|
+
Workflow41.prototype.unloadModel = CreateWorkflow41(UnloadModelTask);
|
|
5751
5805
|
|
|
5752
5806
|
// src/task/VectorQuantizeTask.ts
|
|
5753
|
-
import { CreateWorkflow as
|
|
5807
|
+
import { CreateWorkflow as CreateWorkflow42, Task as Task15, Workflow as Workflow42 } from "@workglow/task-graph";
|
|
5754
5808
|
import {
|
|
5755
5809
|
normalizeNumberArray,
|
|
5756
5810
|
TensorType,
|
|
@@ -5930,10 +5984,10 @@ class VectorQuantizeTask extends Task15 {
|
|
|
5930
5984
|
var vectorQuantize = (input, config) => {
|
|
5931
5985
|
return new VectorQuantizeTask({}, config).run(input);
|
|
5932
5986
|
};
|
|
5933
|
-
|
|
5987
|
+
Workflow42.prototype.vectorQuantize = CreateWorkflow42(VectorQuantizeTask);
|
|
5934
5988
|
|
|
5935
5989
|
// src/task/VectorSimilarityTask.ts
|
|
5936
|
-
import { CreateWorkflow as
|
|
5990
|
+
import { CreateWorkflow as CreateWorkflow43, GraphAsTask, Workflow as Workflow43 } from "@workglow/task-graph";
|
|
5937
5991
|
import {
|
|
5938
5992
|
cosineSimilarity,
|
|
5939
5993
|
hammingSimilarity,
|
|
@@ -6039,7 +6093,7 @@ class VectorSimilarityTask extends GraphAsTask {
|
|
|
6039
6093
|
var similarity = (input, config) => {
|
|
6040
6094
|
return new VectorSimilarityTask({}, config).run(input);
|
|
6041
6095
|
};
|
|
6042
|
-
|
|
6096
|
+
Workflow43.prototype.similarity = CreateWorkflow43(VectorSimilarityTask);
|
|
6043
6097
|
|
|
6044
6098
|
// src/task/index.ts
|
|
6045
6099
|
var registerAiTasks = () => {
|
|
@@ -6064,6 +6118,7 @@ var registerAiTasks = () => {
|
|
|
6064
6118
|
ImageEmbeddingTask,
|
|
6065
6119
|
ImageSegmentationTask,
|
|
6066
6120
|
ImageToTextTask,
|
|
6121
|
+
ModelInfoTask,
|
|
6067
6122
|
ObjectDetectionTask,
|
|
6068
6123
|
PoseLandmarkerTask,
|
|
6069
6124
|
QueryExpanderTask,
|
|
@@ -6118,6 +6173,7 @@ export {
|
|
|
6118
6173
|
queryExpander,
|
|
6119
6174
|
poseLandmarker,
|
|
6120
6175
|
objectDetection,
|
|
6176
|
+
modelInfo,
|
|
6121
6177
|
isAllowedToolName,
|
|
6122
6178
|
imageToText,
|
|
6123
6179
|
imageSegmentation,
|
|
@@ -6208,6 +6264,7 @@ export {
|
|
|
6208
6264
|
ModelRepository,
|
|
6209
6265
|
ModelRecordSchema,
|
|
6210
6266
|
ModelPrimaryKeyNames,
|
|
6267
|
+
ModelInfoTask,
|
|
6211
6268
|
ModelConfigSchema,
|
|
6212
6269
|
MODEL_REPOSITORY,
|
|
6213
6270
|
InMemoryModelRepository,
|
|
@@ -6259,4 +6316,4 @@ export {
|
|
|
6259
6316
|
AiJob
|
|
6260
6317
|
};
|
|
6261
6318
|
|
|
6262
|
-
//# debugId=
|
|
6319
|
+
//# debugId=30EA03AC63C4C0B564756E2164756E21
|