@trii/types 2.10.478 → 2.10.479
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.
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { INode } from "./Flow";
|
|
2
|
+
export interface INodeCategory {
|
|
3
|
+
id: string;
|
|
4
|
+
name: string;
|
|
5
|
+
definition: INode;
|
|
6
|
+
}
|
|
7
|
+
export declare const triggerNodeTypeList: INodeCategory[];
|
|
8
|
+
export declare const actionNodeTypeList: INodeCategory[];
|
|
9
|
+
export declare const toolNodeTypeList: INodeCategory[];
|
|
10
|
+
export declare const agentNodeTypeList: INodeCategory[];
|
|
11
|
+
export interface ICategory {
|
|
12
|
+
name: string;
|
|
13
|
+
nodes: INodeCategory[];
|
|
14
|
+
}
|
|
15
|
+
export declare const CategoryList: ICategory[];
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CategoryList = exports.agentNodeTypeList = exports.toolNodeTypeList = exports.actionNodeTypeList = exports.triggerNodeTypeList = void 0;
|
|
4
|
+
const NodeStart_1 = require("./Nodes/NodeStart");
|
|
5
|
+
exports.triggerNodeTypeList = [
|
|
6
|
+
{
|
|
7
|
+
id: 'StartNewConversation',
|
|
8
|
+
name: 'Start by New Conversation',
|
|
9
|
+
definition: NodeStart_1.defaultNodeStartNewConversation
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
id: 'EndConversation',
|
|
13
|
+
name: 'End Conversation',
|
|
14
|
+
definition: NodeStart_1.defaultNodeStartNewConversation
|
|
15
|
+
}
|
|
16
|
+
];
|
|
17
|
+
exports.actionNodeTypeList = [
|
|
18
|
+
{
|
|
19
|
+
id: 'Api',
|
|
20
|
+
name: 'API Call',
|
|
21
|
+
definition: NodeStart_1.defaultNodeStartNewConversation
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
id: 'Conditional',
|
|
25
|
+
name: 'Conditional',
|
|
26
|
+
definition: NodeStart_1.defaultNodeStartNewConversation
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
id: 'Redirect',
|
|
30
|
+
name: 'Redirect',
|
|
31
|
+
definition: NodeStart_1.defaultNodeStartNewConversation
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
id: 'Function',
|
|
35
|
+
name: 'Function',
|
|
36
|
+
definition: NodeStart_1.defaultNodeStartNewConversation
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
id: 'Message',
|
|
40
|
+
name: 'Message',
|
|
41
|
+
definition: NodeStart_1.defaultNodeStartNewConversation
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
id: 'Wait',
|
|
45
|
+
name: 'Wait',
|
|
46
|
+
definition: NodeStart_1.defaultNodeStartNewConversation
|
|
47
|
+
}
|
|
48
|
+
];
|
|
49
|
+
exports.toolNodeTypeList = [
|
|
50
|
+
{
|
|
51
|
+
id: 'Calculator',
|
|
52
|
+
name: 'Tool',
|
|
53
|
+
definition: NodeStart_1.defaultNodeStartNewConversation
|
|
54
|
+
}
|
|
55
|
+
];
|
|
56
|
+
exports.agentNodeTypeList = [
|
|
57
|
+
{
|
|
58
|
+
id: 'AIChatBot',
|
|
59
|
+
name: 'AI Chat Bot',
|
|
60
|
+
definition: NodeStart_1.defaultNodeStartNewConversation
|
|
61
|
+
}
|
|
62
|
+
];
|
|
63
|
+
exports.CategoryList = [
|
|
64
|
+
{
|
|
65
|
+
name: 'Triggers',
|
|
66
|
+
nodes: exports.triggerNodeTypeList
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
name: 'Actions',
|
|
70
|
+
nodes: exports.actionNodeTypeList
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
name: 'Tools',
|
|
74
|
+
nodes: exports.toolNodeTypeList
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
name: 'Agents',
|
|
78
|
+
nodes: exports.agentNodeTypeList
|
|
79
|
+
}
|
|
80
|
+
];
|
|
@@ -38,4 +38,6 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
39
|
exports.Nodes = void 0;
|
|
40
40
|
__exportStar(require("./Flow"), exports);
|
|
41
|
+
__exportStar(require("./FlowInfo"), exports);
|
|
42
|
+
__exportStar(require("./Definitions"), exports);
|
|
41
43
|
exports.Nodes = __importStar(require("./Nodes/index"));
|