@trii/types 2.10.435 → 2.10.437

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.
@@ -1,4 +1,4 @@
1
- import { NodeChatBotIA } from "./Nodes";
1
+ import { NodeAIChatBot } from "./Nodes";
2
2
  import { NodeApi } from "./Nodes/NodeApi";
3
3
  import { NodeConditional } from "./Nodes/NodeConditional";
4
4
  import { NodeContactSearch } from "./Nodes/NodeContactSearch";
@@ -48,7 +48,7 @@ declare enum NodeType {
48
48
  TIME_WAIT_UNTIL = 83,
49
49
  CONDITIONAL = 71,
50
50
  REDIRECT = 72,
51
- CHATBOT_IA = 91
51
+ AI_CHATBOT = 91
52
52
  }
53
53
  declare class NodePosition {
54
54
  x: number;
@@ -73,7 +73,7 @@ declare class NodeData {
73
73
  timeWaitUntil?: NodeTimeWaitUntil | null;
74
74
  conditional?: NodeConditional | null;
75
75
  redirect?: NodeRedirect | null;
76
- chatbotIA?: NodeChatBotIA | null;
76
+ aiChatBot?: NodeAIChatBot | null;
77
77
  }
78
78
  declare class Node {
79
79
  id: string;
@@ -21,7 +21,7 @@ var NodeType;
21
21
  NodeType[NodeType["TIME_WAIT_UNTIL"] = 83] = "TIME_WAIT_UNTIL";
22
22
  NodeType[NodeType["CONDITIONAL"] = 71] = "CONDITIONAL";
23
23
  NodeType[NodeType["REDIRECT"] = 72] = "REDIRECT";
24
- NodeType[NodeType["CHATBOT_IA"] = 91] = "CHATBOT_IA";
24
+ NodeType[NodeType["AI_CHATBOT"] = 91] = "AI_CHATBOT";
25
25
  })(NodeType || (exports.NodeType = NodeType = {}));
26
26
  class NodePosition {
27
27
  }
@@ -0,0 +1,15 @@
1
+ export declare class NodeAIChatBot {
2
+ id: string;
3
+ name: string;
4
+ enableStatics: boolean | false;
5
+ llmModel?: NodeNodeChatBotModel;
6
+ llmTemperature?: number | 0.7;
7
+ llmMaxTokens?: number | 1000;
8
+ llmTopP?: number | 1;
9
+ prompt?: string | "";
10
+ retryCount?: number | 3;
11
+ retryDelay?: number | 1000;
12
+ apiKey?: string | "";
13
+ nextNodeId?: string | "";
14
+ }
15
+ export type NodeNodeChatBotModel = "gpt-3.5-turbo" | "gpt-4" | "gpt-4-turbo" | "llama2" | "llama2-chat" | "llama2-7b-chat" | "llama2-13b-chat" | "llama2-70b-chat" | "llama2-7b" | "llama2-13b" | "llama2-70b" | "mistral" | "mistral-chat" | "mistral-7b-chat" | "mistral-7b";
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.NodeAIChatBot = void 0;
4
+ class NodeAIChatBot {
5
+ }
6
+ exports.NodeAIChatBot = NodeAIChatBot;
@@ -16,4 +16,4 @@ export * from './NodeStart';
16
16
  export * from './NodeTimeScheduleControl';
17
17
  export * from './NodeTimeTimer';
18
18
  export * from './NodeTimeWaitUntil';
19
- export * from './NodeChatBotIA';
19
+ export * from './NodeAIChatBot';
@@ -32,4 +32,4 @@ __exportStar(require("./NodeStart"), exports);
32
32
  __exportStar(require("./NodeTimeScheduleControl"), exports);
33
33
  __exportStar(require("./NodeTimeTimer"), exports);
34
34
  __exportStar(require("./NodeTimeWaitUntil"), exports);
35
- __exportStar(require("./NodeChatBotIA"), exports);
35
+ __exportStar(require("./NodeAIChatBot"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trii/types",
3
- "version": "2.10.435",
3
+ "version": "2.10.437",
4
4
  "description": "Types definitions for Trii projects - ",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",