shuttlepro-shared 1.3.60 → 1.3.61

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/models/Chatbot.js CHANGED
@@ -14,6 +14,36 @@ const ChatbotSchema = new Schema(
14
14
  type: Number,
15
15
  default: 300,
16
16
  },
17
+ agent: {
18
+ type: Boolean,
19
+ default: false,
20
+ },
21
+ enabledAgents: [
22
+ {
23
+ name: { type: String, default: "" },
24
+ systemPrompt: { type: String, default: "" },
25
+ additionalPrompt: { type: String, default: "" },
26
+ tools: [
27
+ {
28
+ name: { type: String, default: "" },
29
+ description: { type: String, default: "" },
30
+ fields: [
31
+ {
32
+ field: { type: String, default: "" },
33
+ type: { type: String, default: "" },
34
+ required: { type: Boolean, default: false },
35
+ description: { type: String, default: "" },
36
+ },
37
+ ],
38
+ templates: {
39
+ successTemplate: { type: String, default: "" },
40
+ errorTemplate: { type: String, default: "" },
41
+ bottomMessage: { type: String, default: "" },
42
+ },
43
+ },
44
+ ],
45
+ },
46
+ ],
17
47
  },
18
48
  { timestamps: true, toJSON: { virtuals: true }, toObject: { virtuals: true } }
19
49
  );
@@ -337,6 +337,15 @@ const workspaceSchema = new mongoose.Schema(
337
337
  secretToken: { type: String, default: "" },
338
338
  workspaceId: { type: String, default: "" },
339
339
  },
340
+ llm: {
341
+ model: { type: String, default: "" },
342
+ provider: { type: String, default: "" },
343
+ temperature: { type: String, default: "" },
344
+ apiKey: {
345
+ type: String,
346
+ default: "",
347
+ },
348
+ },
340
349
  },
341
350
  { timestamps: true, toJSON: { virtuals: true }, toObject: { virtuals: true } }
342
351
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shuttlepro-shared",
3
- "version": "1.3.60",
3
+ "version": "1.3.61",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {