@workglow/ai 0.0.109 → 0.0.111
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 +141 -123
- package/dist/browser.js.map +22 -22
- package/dist/bun.js +141 -123
- package/dist/bun.js.map +22 -22
- package/dist/node.js +141 -123
- package/dist/node.js.map +22 -22
- package/dist/task/CountTokensTask.d.ts +25 -7
- package/dist/task/CountTokensTask.d.ts.map +1 -1
- package/dist/task/DocumentEnricherTask.d.ts.map +1 -1
- package/dist/task/ModelInfoTask.d.ts +5 -0
- package/dist/task/ModelInfoTask.d.ts.map +1 -1
- package/dist/task/RerankerTask.d.ts.map +1 -1
- package/dist/task/TextClassificationTask.d.ts +59 -21
- package/dist/task/TextClassificationTask.d.ts.map +1 -1
- package/dist/task/TextFillMaskTask.d.ts +70 -26
- package/dist/task/TextFillMaskTask.d.ts.map +1 -1
- package/dist/task/TextGenerationTask.d.ts +27 -8
- package/dist/task/TextGenerationTask.d.ts.map +1 -1
- package/dist/task/TextLanguageDetectionTask.d.ts +59 -21
- package/dist/task/TextLanguageDetectionTask.d.ts.map +1 -1
- package/dist/task/TextNamedEntityRecognitionTask.d.ts +70 -26
- package/dist/task/TextNamedEntityRecognitionTask.d.ts.map +1 -1
- package/dist/task/TextQuestionAnswerTask.d.ts +39 -11
- package/dist/task/TextQuestionAnswerTask.d.ts.map +1 -1
- package/dist/task/TextRewriterTask.d.ts +27 -8
- package/dist/task/TextRewriterTask.d.ts.map +1 -1
- package/dist/task/TextSummaryTask.d.ts +27 -8
- package/dist/task/TextSummaryTask.d.ts.map +1 -1
- package/dist/task/TextTranslationTask.d.ts +27 -8
- package/dist/task/TextTranslationTask.d.ts.map +1 -1
- package/dist/task/ToolCallingTask.d.ts +132 -53
- package/dist/task/ToolCallingTask.d.ts.map +1 -1
- package/dist/task/base/AiTask.d.ts.map +1 -1
- package/dist/task/index.d.ts +1 -1
- package/dist/task/index.d.ts.map +1 -1
- package/package.json +13 -11
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextNamedEntityRecognitionTask.d.ts","sourceRoot":"","sources":["../../src/task/TextNamedEntityRecognitionTask.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAAY,MAAM,sBAAsB,CAAC;AACpF,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAKvC,eAAO,MAAM,qCAAqC
|
|
1
|
+
{"version":3,"file":"TextNamedEntityRecognitionTask.d.ts","sourceRoot":"","sources":["../../src/task/TextNamedEntityRecognitionTask.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAAY,MAAM,sBAAsB,CAAC;AACpF,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAKvC,eAAO,MAAM,qCAAqC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsBf,CAAC;AAEpC,eAAO,MAAM,sCAAsC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiChB,CAAC;AAEpC,MAAM,MAAM,mCAAmC,GAAG,UAAU,CAC1D,OAAO,qCAAqC,CAC7C,CAAC;AACF,MAAM,MAAM,oCAAoC,GAAG,UAAU,CAC3D,OAAO,sCAAsC,CAC9C,CAAC;AAEF;;GAEG;AACH,qBAAa,8BAA+B,SAAQ,MAAM,CACxD,mCAAmC,EACnC,oCAAoC,CACrC;IACC,OAAc,IAAI,SAAoC;IACtD,OAAc,QAAQ,SAAmB;IACzC,OAAc,KAAK,SAA8B;IACjD,OAAc,WAAW,SAAuC;WAClD,WAAW,IAAI,cAAc;WAG7B,YAAY,IAAI,cAAc;CAG7C;AAED;;;;;GAKG;AACH,eAAO,MAAM,0BAA0B,GACrC,OAAO,mCAAmC,EAC1C,SAAS,kBAAkB;;;;;;;;;;EAK5B,CAAC;AAEF,OAAO,QAAQ,sBAAsB,CAAC;IACpC,UAAU,QAAQ;QAChB,0BAA0B,EAAE,cAAc,CACxC,mCAAmC,EACnC,oCAAoC,EACpC,kBAAkB,CACnB,CAAC;KACH;CACF"}
|
|
@@ -10,14 +10,32 @@ export declare const TextQuestionAnswerInputSchema: {
|
|
|
10
10
|
readonly type: "object";
|
|
11
11
|
readonly properties: {
|
|
12
12
|
readonly context: {
|
|
13
|
-
readonly
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
readonly anyOf: readonly [{
|
|
14
|
+
readonly type: "string";
|
|
15
|
+
readonly title: "Context";
|
|
16
|
+
readonly description: "The context of the question";
|
|
17
|
+
}, {
|
|
18
|
+
readonly type: "array";
|
|
19
|
+
readonly items: {
|
|
20
|
+
readonly type: "string";
|
|
21
|
+
readonly title: "Context";
|
|
22
|
+
readonly description: "The context of the question";
|
|
23
|
+
};
|
|
24
|
+
}];
|
|
16
25
|
};
|
|
17
26
|
readonly question: {
|
|
18
|
-
readonly
|
|
19
|
-
|
|
20
|
-
|
|
27
|
+
readonly anyOf: readonly [{
|
|
28
|
+
readonly type: "string";
|
|
29
|
+
readonly title: "Question";
|
|
30
|
+
readonly description: "The question to answer";
|
|
31
|
+
}, {
|
|
32
|
+
readonly type: "array";
|
|
33
|
+
readonly items: {
|
|
34
|
+
readonly type: "string";
|
|
35
|
+
readonly title: "Question";
|
|
36
|
+
readonly description: "The question to answer";
|
|
37
|
+
};
|
|
38
|
+
}];
|
|
21
39
|
};
|
|
22
40
|
readonly model: {
|
|
23
41
|
readonly oneOf: readonly [{
|
|
@@ -84,10 +102,20 @@ export declare const TextQuestionAnswerOutputSchema: {
|
|
|
84
102
|
readonly type: "object";
|
|
85
103
|
readonly properties: {
|
|
86
104
|
readonly text: {
|
|
87
|
-
readonly
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
105
|
+
readonly anyOf: readonly [{
|
|
106
|
+
readonly type: "string";
|
|
107
|
+
readonly title: "Text";
|
|
108
|
+
readonly description: "The generated text";
|
|
109
|
+
readonly "x-stream": "append";
|
|
110
|
+
}, {
|
|
111
|
+
readonly type: "array";
|
|
112
|
+
readonly items: {
|
|
113
|
+
readonly type: "string";
|
|
114
|
+
readonly title: "Text";
|
|
115
|
+
readonly description: "The generated text";
|
|
116
|
+
readonly "x-stream": "append";
|
|
117
|
+
};
|
|
118
|
+
}];
|
|
91
119
|
};
|
|
92
120
|
};
|
|
93
121
|
readonly required: readonly ["text"];
|
|
@@ -113,7 +141,7 @@ export declare class TextQuestionAnswerTask extends StreamingAiTask<TextQuestion
|
|
|
113
141
|
* @returns Promise resolving to the generated answer(s)
|
|
114
142
|
*/
|
|
115
143
|
export declare const textQuestionAnswer: (input: TextQuestionAnswerTaskInput, config?: JobQueueTaskConfig) => Promise<{
|
|
116
|
-
text: string;
|
|
144
|
+
text: string | string[];
|
|
117
145
|
}>;
|
|
118
146
|
declare module "@workglow/task-graph" {
|
|
119
147
|
interface Workflow {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextQuestionAnswerTask.d.ts","sourceRoot":"","sources":["../../src/task/TextQuestionAnswerTask.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAAY,MAAM,sBAAsB,CAAC;AACpF,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAE5D,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAuBzD,eAAO,MAAM,6BAA6B
|
|
1
|
+
{"version":3,"file":"TextQuestionAnswerTask.d.ts","sourceRoot":"","sources":["../../src/task/TextQuestionAnswerTask.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAAY,MAAM,sBAAsB,CAAC;AACpF,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAE5D,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAuBzD,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CASP,CAAC;AAEpC,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;CAOR,CAAC;AAEpC,MAAM,MAAM,2BAA2B,GAAG,UAAU,CAAC,OAAO,6BAA6B,CAAC,CAAC;AAC3F,MAAM,MAAM,4BAA4B,GAAG,UAAU,CAAC,OAAO,8BAA8B,CAAC,CAAC;AAE7F;;GAEG;AACH,qBAAa,sBAAuB,SAAQ,eAAe,CACzD,2BAA2B,EAC3B,4BAA4B,EAC5B,kBAAkB,CACnB;IACC,OAAc,IAAI,SAA4B;IAC9C,OAAc,QAAQ,SAAmB;IACzC,OAAc,KAAK,SAA0B;IAC7C,OAAc,WAAW,SAAuE;WAClF,WAAW,IAAI,cAAc;WAG7B,YAAY,IAAI,cAAc;CAG7C;AAED;;;;;GAKG;AACH,eAAO,MAAM,kBAAkB,GAC7B,OAAO,2BAA2B,EAClC,SAAS,kBAAkB;;EAG5B,CAAC;AAEF,OAAO,QAAQ,sBAAsB,CAAC;IACpC,UAAU,QAAQ;QAChB,kBAAkB,EAAE,cAAc,CAChC,2BAA2B,EAC3B,4BAA4B,EAC5B,kBAAkB,CACnB,CAAC;KACH;CACF"}
|
|
@@ -10,9 +10,18 @@ export declare const TextRewriterInputSchema: {
|
|
|
10
10
|
readonly type: "object";
|
|
11
11
|
readonly properties: {
|
|
12
12
|
readonly text: {
|
|
13
|
-
readonly
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
readonly anyOf: readonly [{
|
|
14
|
+
readonly type: "string";
|
|
15
|
+
readonly title: "Text";
|
|
16
|
+
readonly description: "The text to rewrite";
|
|
17
|
+
}, {
|
|
18
|
+
readonly type: "array";
|
|
19
|
+
readonly items: {
|
|
20
|
+
readonly type: "string";
|
|
21
|
+
readonly title: "Text";
|
|
22
|
+
readonly description: "The text to rewrite";
|
|
23
|
+
};
|
|
24
|
+
}];
|
|
16
25
|
};
|
|
17
26
|
readonly prompt: {
|
|
18
27
|
readonly type: "string";
|
|
@@ -84,10 +93,20 @@ export declare const TextRewriterOutputSchema: {
|
|
|
84
93
|
readonly type: "object";
|
|
85
94
|
readonly properties: {
|
|
86
95
|
readonly text: {
|
|
87
|
-
readonly
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
96
|
+
readonly anyOf: readonly [{
|
|
97
|
+
readonly type: "string";
|
|
98
|
+
readonly title: "Text";
|
|
99
|
+
readonly description: "The rewritten text";
|
|
100
|
+
readonly "x-stream": "append";
|
|
101
|
+
}, {
|
|
102
|
+
readonly type: "array";
|
|
103
|
+
readonly items: {
|
|
104
|
+
readonly type: "string";
|
|
105
|
+
readonly title: "Text";
|
|
106
|
+
readonly description: "The rewritten text";
|
|
107
|
+
readonly "x-stream": "append";
|
|
108
|
+
};
|
|
109
|
+
}];
|
|
91
110
|
};
|
|
92
111
|
};
|
|
93
112
|
readonly required: readonly ["text"];
|
|
@@ -113,7 +132,7 @@ export declare class TextRewriterTask extends StreamingAiTask<TextRewriterTaskIn
|
|
|
113
132
|
* @returns Promise resolving to the rewritten text output(s)
|
|
114
133
|
*/
|
|
115
134
|
export declare const textRewriter: (input: TextRewriterTaskInput, config?: JobQueueTaskConfig) => Promise<{
|
|
116
|
-
text: string;
|
|
135
|
+
text: string | string[];
|
|
117
136
|
}>;
|
|
118
137
|
declare module "@workglow/task-graph" {
|
|
119
138
|
interface Workflow {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextRewriterTask.d.ts","sourceRoot":"","sources":["../../src/task/TextRewriterTask.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAAY,MAAM,sBAAsB,CAAC;AACpF,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAE5D,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAIzD,eAAO,MAAM,uBAAuB
|
|
1
|
+
{"version":3,"file":"TextRewriterTask.d.ts","sourceRoot":"","sources":["../../src/task/TextRewriterTask.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAAY,MAAM,sBAAsB,CAAC;AACpF,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAE5D,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAIzD,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiBD,CAAC;AAEpC,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;CAYF,CAAC;AAEpC,MAAM,MAAM,qBAAqB,GAAG,UAAU,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAC/E,MAAM,MAAM,sBAAsB,GAAG,UAAU,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAEjF;;GAEG;AACH,qBAAa,gBAAiB,SAAQ,eAAe,CACnD,qBAAqB,EACrB,sBAAsB,CACvB;IACC,OAAc,IAAI,SAAsB;IACxC,OAAc,QAAQ,SAAmB;IACzC,OAAc,KAAK,SAAmB;IACtC,OAAc,WAAW,SAAqE;WAChF,WAAW,IAAI,cAAc;WAG7B,YAAY,IAAI,cAAc;CAG7C;AAED;;;;;GAKG;AACH,eAAO,MAAM,YAAY,GAAI,OAAO,qBAAqB,EAAE,SAAS,kBAAkB;;EAErF,CAAC;AAEF,OAAO,QAAQ,sBAAsB,CAAC;IACpC,UAAU,QAAQ;QAChB,YAAY,EAAE,cAAc,CAAC,qBAAqB,EAAE,sBAAsB,EAAE,kBAAkB,CAAC,CAAC;KACjG;CACF"}
|
|
@@ -10,9 +10,18 @@ export declare const TextSummaryInputSchema: {
|
|
|
10
10
|
readonly type: "object";
|
|
11
11
|
readonly properties: {
|
|
12
12
|
readonly text: {
|
|
13
|
-
readonly
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
readonly anyOf: readonly [{
|
|
14
|
+
readonly type: "string";
|
|
15
|
+
readonly title: "Text";
|
|
16
|
+
readonly description: "The text to summarize";
|
|
17
|
+
}, {
|
|
18
|
+
readonly type: "array";
|
|
19
|
+
readonly items: {
|
|
20
|
+
readonly type: "string";
|
|
21
|
+
readonly title: "Text";
|
|
22
|
+
readonly description: "The text to summarize";
|
|
23
|
+
};
|
|
24
|
+
}];
|
|
16
25
|
};
|
|
17
26
|
readonly model: {
|
|
18
27
|
readonly oneOf: readonly [{
|
|
@@ -79,10 +88,20 @@ export declare const TextSummaryOutputSchema: {
|
|
|
79
88
|
readonly type: "object";
|
|
80
89
|
readonly properties: {
|
|
81
90
|
readonly text: {
|
|
82
|
-
readonly
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
91
|
+
readonly anyOf: readonly [{
|
|
92
|
+
readonly type: "string";
|
|
93
|
+
readonly title: "Text";
|
|
94
|
+
readonly description: "The summarized text";
|
|
95
|
+
readonly "x-stream": "append";
|
|
96
|
+
}, {
|
|
97
|
+
readonly type: "array";
|
|
98
|
+
readonly items: {
|
|
99
|
+
readonly type: "string";
|
|
100
|
+
readonly title: "Text";
|
|
101
|
+
readonly description: "The summarized text";
|
|
102
|
+
readonly "x-stream": "append";
|
|
103
|
+
};
|
|
104
|
+
}];
|
|
86
105
|
};
|
|
87
106
|
};
|
|
88
107
|
readonly required: readonly ["text"];
|
|
@@ -108,7 +127,7 @@ export declare class TextSummaryTask extends StreamingAiTask<TextSummaryTaskInpu
|
|
|
108
127
|
* @returns Promise resolving to the summarized text output(s)
|
|
109
128
|
*/
|
|
110
129
|
export declare const textSummary: (input: TextSummaryTaskInput, config?: JobQueueTaskConfig) => Promise<{
|
|
111
|
-
text: string;
|
|
130
|
+
text: string | string[];
|
|
112
131
|
}>;
|
|
113
132
|
declare module "@workglow/task-graph" {
|
|
114
133
|
interface Workflow {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextSummaryTask.d.ts","sourceRoot":"","sources":["../../src/task/TextSummaryTask.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAAY,MAAM,sBAAsB,CAAC;AACpF,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAE5D,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAIzD,eAAO,MAAM,sBAAsB
|
|
1
|
+
{"version":3,"file":"TextSummaryTask.d.ts","sourceRoot":"","sources":["../../src/task/TextSummaryTask.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAAY,MAAM,sBAAsB,CAAC;AACpF,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAE5D,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAIzD,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAYA,CAAC;AAEpC,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;CAYD,CAAC;AAEpC,MAAM,MAAM,oBAAoB,GAAG,UAAU,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAC7E,MAAM,MAAM,qBAAqB,GAAG,UAAU,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAE/E;;GAEG;AAEH,qBAAa,eAAgB,SAAQ,eAAe,CAAC,oBAAoB,EAAE,qBAAqB,CAAC;IAC/F,OAAc,IAAI,SAAqB;IACvC,OAAc,QAAQ,SAAmB;IACzC,OAAc,KAAK,SAAkB;IACrC,OAAc,WAAW,SACgD;WAC3D,WAAW,IAAI,cAAc;WAG7B,YAAY,IAAI,cAAc;CAG7C;AAED;;;;;GAKG;AACH,eAAO,MAAM,WAAW,GAAU,OAAO,oBAAoB,EAAE,SAAS,kBAAkB;;EAEzF,CAAC;AAEF,OAAO,QAAQ,sBAAsB,CAAC;IACpC,UAAU,QAAQ;QAChB,WAAW,EAAE,cAAc,CAAC,oBAAoB,EAAE,qBAAqB,EAAE,kBAAkB,CAAC,CAAC;KAC9F;CACF"}
|
|
@@ -10,9 +10,18 @@ export declare const TextTranslationInputSchema: {
|
|
|
10
10
|
readonly type: "object";
|
|
11
11
|
readonly properties: {
|
|
12
12
|
readonly text: {
|
|
13
|
-
readonly
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
readonly anyOf: readonly [{
|
|
14
|
+
readonly type: "string";
|
|
15
|
+
readonly title: "Text";
|
|
16
|
+
readonly description: "The text to translate";
|
|
17
|
+
}, {
|
|
18
|
+
readonly type: "array";
|
|
19
|
+
readonly items: {
|
|
20
|
+
readonly type: "string";
|
|
21
|
+
readonly title: "Text";
|
|
22
|
+
readonly description: "The text to translate";
|
|
23
|
+
};
|
|
24
|
+
}];
|
|
16
25
|
};
|
|
17
26
|
readonly source_lang: {
|
|
18
27
|
readonly type: "string";
|
|
@@ -93,10 +102,20 @@ export declare const TextTranslationOutputSchema: {
|
|
|
93
102
|
readonly type: "object";
|
|
94
103
|
readonly properties: {
|
|
95
104
|
readonly text: {
|
|
96
|
-
readonly
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
105
|
+
readonly anyOf: readonly [{
|
|
106
|
+
readonly type: "string";
|
|
107
|
+
readonly title: "Text";
|
|
108
|
+
readonly description: "The translated text";
|
|
109
|
+
readonly "x-stream": "replace";
|
|
110
|
+
}, {
|
|
111
|
+
readonly type: "array";
|
|
112
|
+
readonly items: {
|
|
113
|
+
readonly type: "string";
|
|
114
|
+
readonly title: "Text";
|
|
115
|
+
readonly description: "The translated text";
|
|
116
|
+
readonly "x-stream": "replace";
|
|
117
|
+
};
|
|
118
|
+
}];
|
|
100
119
|
};
|
|
101
120
|
readonly target_lang: {
|
|
102
121
|
readonly type: "string";
|
|
@@ -129,7 +148,7 @@ export declare class TextTranslationTask extends StreamingAiTask<TextTranslation
|
|
|
129
148
|
* @returns Promise resolving to the translated text output(s)
|
|
130
149
|
*/
|
|
131
150
|
export declare const textTranslation: (input: TextTranslationTaskInput, config?: JobQueueTaskConfig) => Promise<{
|
|
132
|
-
text: string;
|
|
151
|
+
text: string | string[];
|
|
133
152
|
target_lang: string;
|
|
134
153
|
}>;
|
|
135
154
|
declare module "@workglow/task-graph" {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextTranslationTask.d.ts","sourceRoot":"","sources":["../../src/task/TextTranslationTask.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAAY,MAAM,sBAAsB,CAAC;AACpF,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAE5D,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAWzD,eAAO,MAAM,0BAA0B
|
|
1
|
+
{"version":3,"file":"TextTranslationTask.d.ts","sourceRoot":"","sources":["../../src/task/TextTranslationTask.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAAY,MAAM,sBAAsB,CAAC;AACpF,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAE5D,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAWzD,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwBJ,CAAC;AAEpC,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAaL,CAAC;AAEpC,MAAM,MAAM,wBAAwB,GAAG,UAAU,CAAC,OAAO,0BAA0B,CAAC,CAAC;AACrF,MAAM,MAAM,yBAAyB,GAAG,UAAU,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAEvF;;GAEG;AACH,qBAAa,mBAAoB,SAAQ,eAAe,CACtD,wBAAwB,EACxB,yBAAyB,CAC1B;IACC,OAAc,IAAI,SAAyB;IAC3C,OAAc,QAAQ,SAAmB;IACzC,OAAc,KAAK,SAAsB;IACzC,OAAc,WAAW,SAAwE;WACnF,WAAW,IAAI,cAAc;WAG7B,YAAY,IAAI,cAAc;CAG7C;AAED;;;;;GAKG;AACH,eAAO,MAAM,eAAe,GAAI,OAAO,wBAAwB,EAAE,SAAS,kBAAkB;;;EAE3F,CAAC;AAEF,OAAO,QAAQ,sBAAsB,CAAC;IACpC,UAAU,QAAQ;QAChB,eAAe,EAAE,cAAc,CAC7B,wBAAwB,EACxB,yBAAyB,EACzB,kBAAkB,CACnB,CAAC;KACH;CACF"}
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* Copyright
|
|
3
|
+
* Copyright 2026 Steven Roussey <sroussey@gmail.com>
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
*/
|
|
6
6
|
import { CreateWorkflow, JobQueueTaskConfig } from "@workglow/task-graph";
|
|
7
|
-
import { DataPortSchema, FromSchema, JsonSchema } from "@workglow/util";
|
|
7
|
+
import { DataPortSchema, FromSchema, JsonSchema, ServiceRegistry } from "@workglow/util";
|
|
8
8
|
import { StreamingAiTask } from "./base/StreamingAiTask";
|
|
9
9
|
/**
|
|
10
10
|
* A tool definition that can be passed to an LLM for tool calling.
|
|
11
11
|
* Can be created manually or generated from TaskRegistry entries via {@link taskTypesToTools}.
|
|
12
12
|
*/
|
|
13
13
|
export interface ToolDefinition {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
14
|
+
name: string;
|
|
15
|
+
description: string;
|
|
16
|
+
inputSchema: JsonSchema;
|
|
17
|
+
outputSchema?: JsonSchema;
|
|
18
18
|
}
|
|
19
19
|
/**
|
|
20
20
|
* A tool call returned by the LLM, requesting invocation of a specific tool.
|
|
21
21
|
*/
|
|
22
22
|
export interface ToolCall {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
23
|
+
id: string;
|
|
24
|
+
name: string;
|
|
25
|
+
input: Record<string, unknown>;
|
|
26
26
|
}
|
|
27
27
|
/**
|
|
28
28
|
* Controls which tools the model may call.
|
|
@@ -48,17 +48,47 @@ export declare function isAllowedToolName(name: string, allowedTools: ReadonlyAr
|
|
|
48
48
|
*/
|
|
49
49
|
export declare function filterValidToolCalls(toolCalls: Record<string, unknown>, allowedTools: ReadonlyArray<ToolDefinition>): Record<string, unknown>;
|
|
50
50
|
/**
|
|
51
|
-
* Converts an allow-list of task type names
|
|
52
|
-
*
|
|
51
|
+
* Converts an allow-list of task type names into {@link ToolDefinition} objects
|
|
52
|
+
* suitable for the ToolCallingTask input.
|
|
53
53
|
*
|
|
54
54
|
* Each task's `type`, `description`, `inputSchema()`, and `outputSchema()`
|
|
55
55
|
* are used to build the tool definition.
|
|
56
56
|
*
|
|
57
|
-
* @param taskNames - Array of task type names registered in
|
|
57
|
+
* @param taskNames - Array of task type names registered in the task constructors
|
|
58
|
+
* @param registry - Optional service registry for DI-based lookups
|
|
58
59
|
* @returns Array of ToolDefinition objects
|
|
59
60
|
* @throws Error if a task name is not found in the registry
|
|
60
61
|
*/
|
|
61
|
-
export declare function taskTypesToTools(taskNames: ReadonlyArray<string
|
|
62
|
+
export declare function taskTypesToTools(taskNames: ReadonlyArray<string>, registry?: ServiceRegistry): ToolDefinition[];
|
|
63
|
+
export declare const ToolDefinitionSchema: {
|
|
64
|
+
readonly type: "object";
|
|
65
|
+
readonly properties: {
|
|
66
|
+
readonly name: {
|
|
67
|
+
readonly type: "string";
|
|
68
|
+
readonly title: "Name";
|
|
69
|
+
readonly description: "The tool name";
|
|
70
|
+
};
|
|
71
|
+
readonly description: {
|
|
72
|
+
readonly type: "string";
|
|
73
|
+
readonly title: "Description";
|
|
74
|
+
readonly description: "A description of what the tool does";
|
|
75
|
+
};
|
|
76
|
+
readonly inputSchema: {
|
|
77
|
+
readonly type: "object";
|
|
78
|
+
readonly title: "Input Schema";
|
|
79
|
+
readonly description: "JSON Schema describing the tool's input parameters";
|
|
80
|
+
readonly additionalProperties: true;
|
|
81
|
+
};
|
|
82
|
+
readonly outputSchema: {
|
|
83
|
+
readonly type: "object";
|
|
84
|
+
readonly title: "Output Schema";
|
|
85
|
+
readonly description: "JSON Schema describing what the tool returns";
|
|
86
|
+
readonly additionalProperties: true;
|
|
87
|
+
};
|
|
88
|
+
};
|
|
89
|
+
readonly required: readonly ["name", "description", "inputSchema"];
|
|
90
|
+
readonly additionalProperties: false;
|
|
91
|
+
};
|
|
62
92
|
export declare const ToolCallingInputSchema: {
|
|
63
93
|
readonly type: "object";
|
|
64
94
|
readonly properties: {
|
|
@@ -120,9 +150,18 @@ export declare const ToolCallingInputSchema: {
|
|
|
120
150
|
readonly format: import(".").TypeModelSemantic;
|
|
121
151
|
};
|
|
122
152
|
readonly prompt: {
|
|
123
|
-
readonly
|
|
124
|
-
|
|
125
|
-
|
|
153
|
+
readonly anyOf: readonly [{
|
|
154
|
+
readonly type: "string";
|
|
155
|
+
readonly title: "Prompt";
|
|
156
|
+
readonly description: "The prompt to send to the model";
|
|
157
|
+
}, {
|
|
158
|
+
readonly type: "array";
|
|
159
|
+
readonly items: {
|
|
160
|
+
readonly type: "string";
|
|
161
|
+
readonly title: "Prompt";
|
|
162
|
+
readonly description: "The prompt to send to the model";
|
|
163
|
+
};
|
|
164
|
+
}];
|
|
126
165
|
};
|
|
127
166
|
readonly systemPrompt: {
|
|
128
167
|
readonly type: "string";
|
|
@@ -131,36 +170,43 @@ export declare const ToolCallingInputSchema: {
|
|
|
131
170
|
};
|
|
132
171
|
readonly tools: {
|
|
133
172
|
readonly type: "array";
|
|
173
|
+
readonly format: "tasks";
|
|
134
174
|
readonly title: "Tools";
|
|
135
175
|
readonly description: "Tool definitions available for the model to call";
|
|
136
176
|
readonly items: {
|
|
137
|
-
readonly
|
|
138
|
-
|
|
139
|
-
readonly
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
177
|
+
readonly oneOf: readonly [{
|
|
178
|
+
readonly type: "string";
|
|
179
|
+
readonly format: "tasks";
|
|
180
|
+
readonly description: "Task type name";
|
|
181
|
+
}, {
|
|
182
|
+
readonly type: "object";
|
|
183
|
+
readonly properties: {
|
|
184
|
+
readonly name: {
|
|
185
|
+
readonly type: "string";
|
|
186
|
+
readonly title: "Name";
|
|
187
|
+
readonly description: "The tool name";
|
|
188
|
+
};
|
|
189
|
+
readonly description: {
|
|
190
|
+
readonly type: "string";
|
|
191
|
+
readonly title: "Description";
|
|
192
|
+
readonly description: "A description of what the tool does";
|
|
193
|
+
};
|
|
194
|
+
readonly inputSchema: {
|
|
195
|
+
readonly type: "object";
|
|
196
|
+
readonly title: "Input Schema";
|
|
197
|
+
readonly description: "JSON Schema describing the tool's input parameters";
|
|
198
|
+
readonly additionalProperties: true;
|
|
199
|
+
};
|
|
200
|
+
readonly outputSchema: {
|
|
201
|
+
readonly type: "object";
|
|
202
|
+
readonly title: "Output Schema";
|
|
203
|
+
readonly description: "JSON Schema describing what the tool returns";
|
|
204
|
+
readonly additionalProperties: true;
|
|
205
|
+
};
|
|
160
206
|
};
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
207
|
+
readonly required: readonly ["name", "description", "inputSchema"];
|
|
208
|
+
readonly additionalProperties: false;
|
|
209
|
+
}];
|
|
164
210
|
};
|
|
165
211
|
};
|
|
166
212
|
readonly toolChoice: {
|
|
@@ -192,23 +238,54 @@ export declare const ToolCallingOutputSchema: {
|
|
|
192
238
|
readonly type: "object";
|
|
193
239
|
readonly properties: {
|
|
194
240
|
readonly text: {
|
|
195
|
-
readonly
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
241
|
+
readonly anyOf: readonly [{
|
|
242
|
+
readonly type: "string";
|
|
243
|
+
readonly title: "Text";
|
|
244
|
+
readonly description: "Any text content generated by the model";
|
|
245
|
+
readonly "x-stream": "append";
|
|
246
|
+
}, {
|
|
247
|
+
readonly type: "array";
|
|
248
|
+
readonly items: {
|
|
249
|
+
readonly type: "string";
|
|
250
|
+
readonly title: "Text";
|
|
251
|
+
readonly description: "Any text content generated by the model";
|
|
252
|
+
readonly "x-stream": "append";
|
|
253
|
+
};
|
|
254
|
+
}];
|
|
199
255
|
};
|
|
200
256
|
readonly toolCalls: {
|
|
201
|
-
readonly
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
257
|
+
readonly anyOf: readonly [{
|
|
258
|
+
readonly type: "object";
|
|
259
|
+
readonly title: "Tool Calls";
|
|
260
|
+
readonly description: "Tool invocations requested by the model, keyed by call id";
|
|
261
|
+
readonly additionalProperties: true;
|
|
262
|
+
readonly "x-stream": "object";
|
|
263
|
+
}, {
|
|
264
|
+
readonly type: "array";
|
|
265
|
+
readonly items: {
|
|
266
|
+
readonly type: "object";
|
|
267
|
+
readonly title: "Tool Calls";
|
|
268
|
+
readonly description: "Tool invocations requested by the model, keyed by call id";
|
|
269
|
+
readonly additionalProperties: true;
|
|
270
|
+
readonly "x-stream": "object";
|
|
271
|
+
};
|
|
272
|
+
}];
|
|
206
273
|
};
|
|
207
274
|
};
|
|
208
275
|
readonly required: readonly ["text", "toolCalls"];
|
|
209
276
|
readonly additionalProperties: false;
|
|
210
277
|
};
|
|
211
|
-
|
|
278
|
+
/**
|
|
279
|
+
* Runtime input type for ToolCallingTask.
|
|
280
|
+
*
|
|
281
|
+
* The schema uses `oneOf: [string, object]` so the UI can accept both task-name
|
|
282
|
+
* references and inline tool definitions, but the input resolver converts all
|
|
283
|
+
* strings to {@link ToolDefinition} objects before execution. The `tools` field
|
|
284
|
+
* is therefore narrowed to `ToolDefinition[]` here.
|
|
285
|
+
*/
|
|
286
|
+
export type ToolCallingTaskInput = Omit<FromSchema<typeof ToolCallingInputSchema>, "tools"> & {
|
|
287
|
+
readonly tools: ToolDefinition[];
|
|
288
|
+
};
|
|
212
289
|
export type ToolCallingTaskOutput = FromSchema<typeof ToolCallingOutputSchema>;
|
|
213
290
|
export declare class ToolCallingTask extends StreamingAiTask<ToolCallingTaskInput, ToolCallingTaskOutput, JobQueueTaskConfig> {
|
|
214
291
|
static type: string;
|
|
@@ -222,9 +299,11 @@ export declare class ToolCallingTask extends StreamingAiTask<ToolCallingTaskInpu
|
|
|
222
299
|
* Convenience function to run a tool calling task.
|
|
223
300
|
*/
|
|
224
301
|
export declare const toolCalling: (input: ToolCallingTaskInput, config?: JobQueueTaskConfig) => Promise<{
|
|
225
|
-
text: string;
|
|
302
|
+
text: string | string[];
|
|
226
303
|
toolCalls: {
|
|
227
304
|
[x: string]: unknown;
|
|
305
|
+
}[] | {
|
|
306
|
+
[x: string]: unknown;
|
|
228
307
|
};
|
|
229
308
|
}>;
|
|
230
309
|
declare module "@workglow/task-graph" {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ToolCallingTask.d.ts","sourceRoot":"","sources":["../../src/task/ToolCallingTask.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,O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.ts","sourceRoot":"","sources":["../../../src/task/base/AiTask.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;GAEG;AAEH,OAAO,EAAE,GAAG,
|
|
1
|
+
{"version":3,"file":"AiTask.d.ts","sourceRoot":"","sources":["../../../src/task/base/AiTask.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;GAEG;AAEH,OAAO,EAAE,GAAG,EAAY,MAAM,qBAAqB,CAAC;AACpD,OAAO,EACL,KAAK,uBAAuB,EAC5B,YAAY,EACZ,kBAAkB,EAElB,SAAS,EACT,KAAK,UAAU,EAEhB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAmB,KAAK,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAEvE,OAAO,EAAS,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAGpD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAS3D,MAAM,WAAW,iBAAkB,SAAQ,SAAS;IAClD,KAAK,EAAE,MAAM,GAAG,WAAW,CAAC;CAC7B;AAED;;;;;;GAMG;AACH,qBAAa,MAAM,CACjB,KAAK,SAAS,iBAAiB,GAAG,iBAAiB,EACnD,MAAM,SAAS,UAAU,GAAG,UAAU,EACtC,MAAM,SAAS,kBAAkB,GAAG,kBAAkB,CACtD,SAAQ,YAAY,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,CAAC;IAC3C,OAAc,IAAI,EAAE,MAAM,CAAY;IAEtC;;;OAGG;gBACS,KAAK,GAAE,OAAO,CAAC,KAAK,CAAM,EAAE,MAAM,GAAE,MAAqB;IAkBrE;;;;;;;;;OASG;cACsB,WAAW,CAAC,KAAK,EAAE,KAAK,GAAG,OAAO,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC;IAkC9E;;;;;OAKG;IACY,SAAS,CACtB,KAAK,EAAE,KAAK,EACZ,SAAS,CAAC,EAAE,MAAM,GACjB,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC,CAAC;IAc1C;;;OAGG;cACsB,mBAAmB,CAAC,KAAK,EAAE,KAAK,GAAG,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC;IAKvF;;;;;;OAMG;IACY,eAAe,CAC5B,KAAK,EAAE,KAAK,EACZ,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,uBAAuB,GAC/B,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC;IAe9B;;;;;;;;OAQG;IACG,aAAa,CAAC,KAAK,EAAE,KAAK,GAAG,OAAO,CAAC,OAAO,CAAC;IAmD7C,WAAW,CAAC,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,eAAe,GAAG,OAAO,CAAC,KAAK,CAAC;CAoC3E"}
|
package/dist/task/index.d.ts
CHANGED
|
@@ -39,8 +39,8 @@ import { TextNamedEntityRecognitionTask } from "./TextNamedEntityRecognitionTask
|
|
|
39
39
|
import { TextQuestionAnswerTask } from "./TextQuestionAnswerTask";
|
|
40
40
|
import { TextRewriterTask } from "./TextRewriterTask";
|
|
41
41
|
import { TextSummaryTask } from "./TextSummaryTask";
|
|
42
|
-
import { ToolCallingTask } from "./ToolCallingTask";
|
|
43
42
|
import { TextTranslationTask } from "./TextTranslationTask";
|
|
43
|
+
import { ToolCallingTask } from "./ToolCallingTask";
|
|
44
44
|
import { TopicSegmenterTask } from "./TopicSegmenterTask";
|
|
45
45
|
import { UnloadModelTask } from "./UnloadModelTask";
|
|
46
46
|
import { VectorQuantizeTask } from "./VectorQuantizeTask";
|
package/dist/task/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/task/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB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