@nocobase/ai 2.1.0-beta.29 → 2.1.0-beta.32
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.
|
@@ -102,6 +102,7 @@ const _DefaultAIEmployeeManager = class _DefaultAIEmployeeManager {
|
|
|
102
102
|
greeting: employee.greeting,
|
|
103
103
|
about: null,
|
|
104
104
|
defaultPrompt: employee.systemPrompt,
|
|
105
|
+
chatSettings: employee.chatSettings,
|
|
105
106
|
skillSettings: {
|
|
106
107
|
skills: employee.skills,
|
|
107
108
|
tools: employee.tools
|
|
@@ -132,6 +133,7 @@ const _DefaultAIEmployeeManager = class _DefaultAIEmployeeManager {
|
|
|
132
133
|
bio: employee.bio ?? current.bio,
|
|
133
134
|
greeting: employee.greeting ?? current.greeting,
|
|
134
135
|
defaultPrompt: employee.systemPrompt,
|
|
136
|
+
chatSettings: employee.chatSettings ?? current.chatSettings,
|
|
135
137
|
skillSettings: {
|
|
136
138
|
skills: [...employee.skills ?? []],
|
|
137
139
|
tools: [...mergedTools]
|
|
@@ -29,6 +29,12 @@ export type AIEmployeeOptions = {
|
|
|
29
29
|
description?: string;
|
|
30
30
|
skills?: string[];
|
|
31
31
|
tools?: AIEmployeeToolSetting[];
|
|
32
|
+
chatSettings?: {
|
|
33
|
+
systemPromptMode?: 'default' | 'raw' | 'none';
|
|
34
|
+
enableSkills?: boolean;
|
|
35
|
+
enableTools?: boolean;
|
|
36
|
+
[key: string]: unknown;
|
|
37
|
+
};
|
|
32
38
|
avatar?: string;
|
|
33
39
|
nickname?: string;
|
|
34
40
|
position?: string;
|
|
@@ -44,6 +50,7 @@ export type AIEmployeeEntry = Omit<AIEmployeeOptions, 'skills' | 'tools' | 'syst
|
|
|
44
50
|
skills: string[];
|
|
45
51
|
tools: AIEmployeeToolSetting[];
|
|
46
52
|
};
|
|
53
|
+
chatSettings?: AIEmployeeOptions['chatSettings'];
|
|
47
54
|
};
|
|
48
55
|
export type AIEmployeeFilter = {
|
|
49
56
|
builtIn?: boolean;
|
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.32",
|
|
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.32",
|
|
21
|
+
"@nocobase/logger": "2.1.0-beta.32",
|
|
22
|
+
"@nocobase/resourcer": "2.1.0-beta.32",
|
|
23
|
+
"@nocobase/utils": "2.1.0-beta.32",
|
|
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": "659c5efe992da7118d33c768bbd9e837a2c4716f"
|
|
41
41
|
}
|
|
@@ -88,6 +88,7 @@ export class DefaultAIEmployeeManager implements AIEmployeeManager {
|
|
|
88
88
|
greeting: employee.greeting,
|
|
89
89
|
about: null,
|
|
90
90
|
defaultPrompt: employee.systemPrompt,
|
|
91
|
+
chatSettings: employee.chatSettings,
|
|
91
92
|
skillSettings: {
|
|
92
93
|
skills: employee.skills,
|
|
93
94
|
tools: employee.tools,
|
|
@@ -116,6 +117,7 @@ export class DefaultAIEmployeeManager implements AIEmployeeManager {
|
|
|
116
117
|
bio: employee.bio ?? current.bio,
|
|
117
118
|
greeting: employee.greeting ?? current.greeting,
|
|
118
119
|
defaultPrompt: employee.systemPrompt,
|
|
120
|
+
chatSettings: employee.chatSettings ?? current.chatSettings,
|
|
119
121
|
skillSettings: {
|
|
120
122
|
skills: [...(employee.skills ?? [])],
|
|
121
123
|
tools: [...mergedTools],
|
|
@@ -33,6 +33,12 @@ export type AIEmployeeOptions = {
|
|
|
33
33
|
description?: string;
|
|
34
34
|
skills?: string[];
|
|
35
35
|
tools?: AIEmployeeToolSetting[];
|
|
36
|
+
chatSettings?: {
|
|
37
|
+
systemPromptMode?: 'default' | 'raw' | 'none';
|
|
38
|
+
enableSkills?: boolean;
|
|
39
|
+
enableTools?: boolean;
|
|
40
|
+
[key: string]: unknown;
|
|
41
|
+
};
|
|
36
42
|
avatar?: string;
|
|
37
43
|
nickname?: string;
|
|
38
44
|
position?: string;
|
|
@@ -49,6 +55,7 @@ export type AIEmployeeEntry = Omit<AIEmployeeOptions, 'skills' | 'tools' | 'syst
|
|
|
49
55
|
skills: string[];
|
|
50
56
|
tools: AIEmployeeToolSetting[];
|
|
51
57
|
};
|
|
58
|
+
chatSettings?: AIEmployeeOptions['chatSettings'];
|
|
52
59
|
};
|
|
53
60
|
|
|
54
61
|
export type AIEmployeeFilter = {
|