@nocobase/ai 2.1.0-beta.25 → 2.1.0-beta.27
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.
|
@@ -21,4 +21,10 @@ export declare class DefaultToolsManager implements ToolsManager {
|
|
|
21
21
|
private syncDynamicTools;
|
|
22
22
|
}
|
|
23
23
|
export declare function defineTools(options: ToolsOptions): ToolsOptions;
|
|
24
|
+
export declare const SYSTEM_TOOLS: {
|
|
25
|
+
WEB_SEARCH: string;
|
|
26
|
+
KNOWLEDGE_BASE: string;
|
|
27
|
+
WORK_FLOW_TASK_OUTPUT: string;
|
|
28
|
+
};
|
|
29
|
+
export declare const listSystemTools: () => string[];
|
|
24
30
|
export * from './types';
|
|
@@ -39,7 +39,9 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
39
39
|
var tools_manager_exports = {};
|
|
40
40
|
__export(tools_manager_exports, {
|
|
41
41
|
DefaultToolsManager: () => DefaultToolsManager,
|
|
42
|
-
|
|
42
|
+
SYSTEM_TOOLS: () => SYSTEM_TOOLS,
|
|
43
|
+
defineTools: () => defineTools,
|
|
44
|
+
listSystemTools: () => listSystemTools
|
|
43
45
|
});
|
|
44
46
|
module.exports = __toCommonJS(tools_manager_exports);
|
|
45
47
|
var import_utils = require("@nocobase/utils");
|
|
@@ -129,9 +131,17 @@ function defineTools(options) {
|
|
|
129
131
|
return options;
|
|
130
132
|
}
|
|
131
133
|
__name(defineTools, "defineTools");
|
|
134
|
+
const SYSTEM_TOOLS = {
|
|
135
|
+
WEB_SEARCH: "subAgentWebSearch",
|
|
136
|
+
KNOWLEDGE_BASE: "knowledge-base-retrieve",
|
|
137
|
+
WORK_FLOW_TASK_OUTPUT: "aiEmployeeWorkflowTaskOutput"
|
|
138
|
+
};
|
|
139
|
+
const listSystemTools = /* @__PURE__ */ __name(() => Object.values(SYSTEM_TOOLS), "listSystemTools");
|
|
132
140
|
// Annotate the CommonJS export names for ESM import in node:
|
|
133
141
|
0 && (module.exports = {
|
|
134
142
|
DefaultToolsManager,
|
|
143
|
+
SYSTEM_TOOLS,
|
|
135
144
|
defineTools,
|
|
145
|
+
listSystemTools,
|
|
136
146
|
...require("./types")
|
|
137
147
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nocobase/ai",
|
|
3
|
-
"version": "2.1.0-beta.
|
|
3
|
+
"version": "2.1.0-beta.27",
|
|
4
4
|
"description": "",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "./lib/index.js",
|
|
@@ -17,10 +17,10 @@
|
|
|
17
17
|
"@langchain/mcp-adapters": "^1.1.3",
|
|
18
18
|
"@langchain/ollama": "^1.2.2",
|
|
19
19
|
"@langchain/openai": "^1.2.7",
|
|
20
|
-
"@nocobase/data-source-manager": "2.1.0-beta.
|
|
21
|
-
"@nocobase/logger": "2.1.0-beta.
|
|
22
|
-
"@nocobase/resourcer": "2.1.0-beta.
|
|
23
|
-
"@nocobase/utils": "2.1.0-beta.
|
|
20
|
+
"@nocobase/data-source-manager": "2.1.0-beta.27",
|
|
21
|
+
"@nocobase/logger": "2.1.0-beta.27",
|
|
22
|
+
"@nocobase/resourcer": "2.1.0-beta.27",
|
|
23
|
+
"@nocobase/utils": "2.1.0-beta.27",
|
|
24
24
|
"d3-dsv": "2",
|
|
25
25
|
"fast-glob": "^3.3.2",
|
|
26
26
|
"flexsearch": "^0.8.2",
|
|
@@ -37,5 +37,5 @@
|
|
|
37
37
|
"url": "git+https://github.com/nocobase/nocobase.git",
|
|
38
38
|
"directory": "packages/ai"
|
|
39
39
|
},
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "6d9e2d4ac3c6bf40951c8eb252860e47aa3a3c37"
|
|
41
41
|
}
|
|
@@ -105,4 +105,12 @@ export function defineTools(options: ToolsOptions) {
|
|
|
105
105
|
return options;
|
|
106
106
|
}
|
|
107
107
|
|
|
108
|
+
export const SYSTEM_TOOLS = {
|
|
109
|
+
WEB_SEARCH: 'subAgentWebSearch',
|
|
110
|
+
KNOWLEDGE_BASE: 'knowledge-base-retrieve',
|
|
111
|
+
WORK_FLOW_TASK_OUTPUT: 'aiEmployeeWorkflowTaskOutput',
|
|
112
|
+
};
|
|
113
|
+
|
|
114
|
+
export const listSystemTools = () => Object.values(SYSTEM_TOOLS);
|
|
115
|
+
|
|
108
116
|
export * from './types';
|