@greatapps/greatagents 0.1.19 → 0.1.20
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/package.json +1 -1
- package/src/modules/agent_tools/index.js +10 -0
- package/src/modules/agent_tools/properties.js +121 -0
- package/src/modules/tool_credentials/index.js +10 -0
- package/src/modules/tool_credentials/properties.js +142 -0
- package/src/modules/tools/index.js +10 -0
- package/src/modules/tools/properties.js +129 -0
- package/src/product.js +7 -1
package/package.json
CHANGED
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
export const properties = {
|
|
2
|
+
id: {
|
|
3
|
+
type: "number",
|
|
4
|
+
filterable: true,
|
|
5
|
+
unique: true,
|
|
6
|
+
autoIncrement: true,
|
|
7
|
+
index: true
|
|
8
|
+
},
|
|
9
|
+
deleted: {
|
|
10
|
+
type: "boolean",
|
|
11
|
+
default: false,
|
|
12
|
+
filterable: true
|
|
13
|
+
},
|
|
14
|
+
datetime_add: {
|
|
15
|
+
type: "date",
|
|
16
|
+
filterable: true,
|
|
17
|
+
updatable: false
|
|
18
|
+
},
|
|
19
|
+
datetime_alt: {
|
|
20
|
+
type: "date",
|
|
21
|
+
filterable: true,
|
|
22
|
+
updatable: true
|
|
23
|
+
},
|
|
24
|
+
datetime_del: {
|
|
25
|
+
type: "date",
|
|
26
|
+
filterable: true
|
|
27
|
+
},
|
|
28
|
+
id_account: {
|
|
29
|
+
type: "number",
|
|
30
|
+
required: true,
|
|
31
|
+
updatable: false,
|
|
32
|
+
filterable: true,
|
|
33
|
+
reference: {
|
|
34
|
+
module: "accounts",
|
|
35
|
+
label: "name",
|
|
36
|
+
value: "id",
|
|
37
|
+
disabled: true
|
|
38
|
+
},
|
|
39
|
+
interface: {
|
|
40
|
+
label: {
|
|
41
|
+
"pt-br": "Conta",
|
|
42
|
+
"en": "Account"
|
|
43
|
+
},
|
|
44
|
+
component: "select",
|
|
45
|
+
disabled: true
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
id_agent: {
|
|
49
|
+
type: "number",
|
|
50
|
+
required: true,
|
|
51
|
+
updatable: false,
|
|
52
|
+
filterable: true,
|
|
53
|
+
index: true,
|
|
54
|
+
reference: {
|
|
55
|
+
module: "agents",
|
|
56
|
+
label: "title",
|
|
57
|
+
value: "id",
|
|
58
|
+
},
|
|
59
|
+
interface: {
|
|
60
|
+
label: {
|
|
61
|
+
"pt-br": "Agente",
|
|
62
|
+
"en": "Agent"
|
|
63
|
+
},
|
|
64
|
+
component: "select",
|
|
65
|
+
disabled: true
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
id_tool: {
|
|
69
|
+
type: "number",
|
|
70
|
+
required: true,
|
|
71
|
+
updatable: false,
|
|
72
|
+
filterable: true,
|
|
73
|
+
index: true,
|
|
74
|
+
reference: {
|
|
75
|
+
module: "tools",
|
|
76
|
+
label: "name",
|
|
77
|
+
value: "id",
|
|
78
|
+
},
|
|
79
|
+
interface: {
|
|
80
|
+
label: {
|
|
81
|
+
"pt-br": "Ferramenta",
|
|
82
|
+
"en": "Tool"
|
|
83
|
+
},
|
|
84
|
+
component: "select"
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
enabled: {
|
|
88
|
+
type: "boolean",
|
|
89
|
+
default: true,
|
|
90
|
+
filterable: true,
|
|
91
|
+
interface: {
|
|
92
|
+
label: {
|
|
93
|
+
"pt-br": "Habilitado",
|
|
94
|
+
"en": "Enabled"
|
|
95
|
+
},
|
|
96
|
+
component: "checkbox"
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
parameter_mappings: {
|
|
100
|
+
type: "string",
|
|
101
|
+
required: false,
|
|
102
|
+
interface: {
|
|
103
|
+
label: {
|
|
104
|
+
"pt-br": "Mapeamento de Parâmetros",
|
|
105
|
+
"en": "Parameter Mappings"
|
|
106
|
+
},
|
|
107
|
+
component: "textarea"
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
custom_instructions: {
|
|
111
|
+
type: "string",
|
|
112
|
+
required: false,
|
|
113
|
+
interface: {
|
|
114
|
+
label: {
|
|
115
|
+
"pt-br": "Instruções Personalizadas",
|
|
116
|
+
"en": "Custom Instructions"
|
|
117
|
+
},
|
|
118
|
+
component: "textarea"
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
};
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
export const properties = {
|
|
2
|
+
id: {
|
|
3
|
+
type: "number",
|
|
4
|
+
filterable: true,
|
|
5
|
+
unique: true,
|
|
6
|
+
autoIncrement: true,
|
|
7
|
+
index: true
|
|
8
|
+
},
|
|
9
|
+
deleted: {
|
|
10
|
+
type: "boolean",
|
|
11
|
+
default: false,
|
|
12
|
+
filterable: true
|
|
13
|
+
},
|
|
14
|
+
datetime_add: {
|
|
15
|
+
type: "date",
|
|
16
|
+
filterable: true,
|
|
17
|
+
updatable: false
|
|
18
|
+
},
|
|
19
|
+
datetime_alt: {
|
|
20
|
+
type: "date",
|
|
21
|
+
filterable: true,
|
|
22
|
+
updatable: true
|
|
23
|
+
},
|
|
24
|
+
datetime_del: {
|
|
25
|
+
type: "date",
|
|
26
|
+
filterable: true
|
|
27
|
+
},
|
|
28
|
+
id_account: {
|
|
29
|
+
type: "number",
|
|
30
|
+
required: true,
|
|
31
|
+
updatable: false,
|
|
32
|
+
filterable: true,
|
|
33
|
+
reference: {
|
|
34
|
+
module: "accounts",
|
|
35
|
+
label: "name",
|
|
36
|
+
value: "id",
|
|
37
|
+
disabled: true
|
|
38
|
+
},
|
|
39
|
+
interface: {
|
|
40
|
+
label: {
|
|
41
|
+
"pt-br": "Conta",
|
|
42
|
+
"en": "Account"
|
|
43
|
+
},
|
|
44
|
+
component: "select",
|
|
45
|
+
disabled: true
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
id_tool: {
|
|
49
|
+
type: "number",
|
|
50
|
+
required: true,
|
|
51
|
+
updatable: false,
|
|
52
|
+
filterable: true,
|
|
53
|
+
index: true,
|
|
54
|
+
reference: {
|
|
55
|
+
module: "tools",
|
|
56
|
+
label: "name",
|
|
57
|
+
value: "id",
|
|
58
|
+
},
|
|
59
|
+
interface: {
|
|
60
|
+
label: {
|
|
61
|
+
"pt-br": "Ferramenta",
|
|
62
|
+
"en": "Tool"
|
|
63
|
+
},
|
|
64
|
+
component: "select",
|
|
65
|
+
disabled: true
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
id_agent: {
|
|
69
|
+
type: "number",
|
|
70
|
+
required: true,
|
|
71
|
+
updatable: false,
|
|
72
|
+
filterable: true,
|
|
73
|
+
index: true,
|
|
74
|
+
reference: {
|
|
75
|
+
module: "agents",
|
|
76
|
+
label: "title",
|
|
77
|
+
value: "id",
|
|
78
|
+
},
|
|
79
|
+
interface: {
|
|
80
|
+
label: {
|
|
81
|
+
"pt-br": "Agente",
|
|
82
|
+
"en": "Agent"
|
|
83
|
+
},
|
|
84
|
+
component: "select",
|
|
85
|
+
disabled: true
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
authorized_by_contact: {
|
|
89
|
+
type: "number",
|
|
90
|
+
required: false,
|
|
91
|
+
filterable: true,
|
|
92
|
+
interface: {
|
|
93
|
+
label: {
|
|
94
|
+
"pt-br": "Autorizado por",
|
|
95
|
+
"en": "Authorized by"
|
|
96
|
+
},
|
|
97
|
+
component: "input",
|
|
98
|
+
disabled: true
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
credentials_encrypted: {
|
|
102
|
+
type: "string",
|
|
103
|
+
required: false,
|
|
104
|
+
interface: {
|
|
105
|
+
label: {
|
|
106
|
+
"pt-br": "Credenciais",
|
|
107
|
+
"en": "Credentials"
|
|
108
|
+
},
|
|
109
|
+
component: "textarea",
|
|
110
|
+
disabled: true
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
expires_at: {
|
|
114
|
+
type: "date",
|
|
115
|
+
required: false,
|
|
116
|
+
filterable: true,
|
|
117
|
+
interface: {
|
|
118
|
+
label: {
|
|
119
|
+
"pt-br": "Expira em",
|
|
120
|
+
"en": "Expires at"
|
|
121
|
+
},
|
|
122
|
+
component: "date",
|
|
123
|
+
disabled: true
|
|
124
|
+
}
|
|
125
|
+
},
|
|
126
|
+
status: {
|
|
127
|
+
type: "string",
|
|
128
|
+
required: false,
|
|
129
|
+
filterable: true,
|
|
130
|
+
default: "active",
|
|
131
|
+
validation: {
|
|
132
|
+
maxLength: 20
|
|
133
|
+
},
|
|
134
|
+
interface: {
|
|
135
|
+
label: {
|
|
136
|
+
"pt-br": "Status",
|
|
137
|
+
"en": "Status"
|
|
138
|
+
},
|
|
139
|
+
component: "select"
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
};
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
export const properties = {
|
|
2
|
+
id: {
|
|
3
|
+
type: "number",
|
|
4
|
+
filterable: true,
|
|
5
|
+
unique: true,
|
|
6
|
+
autoIncrement: true,
|
|
7
|
+
index: true
|
|
8
|
+
},
|
|
9
|
+
deleted: {
|
|
10
|
+
type: "boolean",
|
|
11
|
+
default: false,
|
|
12
|
+
filterable: true
|
|
13
|
+
},
|
|
14
|
+
datetime_add: {
|
|
15
|
+
type: "date",
|
|
16
|
+
filterable: true,
|
|
17
|
+
updatable: false
|
|
18
|
+
},
|
|
19
|
+
datetime_alt: {
|
|
20
|
+
type: "date",
|
|
21
|
+
filterable: true,
|
|
22
|
+
updatable: true
|
|
23
|
+
},
|
|
24
|
+
datetime_del: {
|
|
25
|
+
type: "date",
|
|
26
|
+
filterable: true
|
|
27
|
+
},
|
|
28
|
+
id_account: {
|
|
29
|
+
type: "number",
|
|
30
|
+
required: true,
|
|
31
|
+
updatable: false,
|
|
32
|
+
filterable: true,
|
|
33
|
+
reference: {
|
|
34
|
+
module: "accounts",
|
|
35
|
+
label: "name",
|
|
36
|
+
value: "id",
|
|
37
|
+
disabled: true
|
|
38
|
+
},
|
|
39
|
+
interface: {
|
|
40
|
+
label: {
|
|
41
|
+
"pt-br": "Conta",
|
|
42
|
+
"en": "Account"
|
|
43
|
+
},
|
|
44
|
+
component: "select",
|
|
45
|
+
disabled: true
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
name: {
|
|
49
|
+
type: "string",
|
|
50
|
+
required: true,
|
|
51
|
+
filterable: true,
|
|
52
|
+
searchable: true,
|
|
53
|
+
validation: {
|
|
54
|
+
maxLength: 255
|
|
55
|
+
},
|
|
56
|
+
interface: {
|
|
57
|
+
label: {
|
|
58
|
+
"pt-br": "Nome da Ferramenta",
|
|
59
|
+
"en": "Tool Name"
|
|
60
|
+
},
|
|
61
|
+
component: "input"
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
slug: {
|
|
65
|
+
type: "string",
|
|
66
|
+
required: true,
|
|
67
|
+
filterable: true,
|
|
68
|
+
validation: {
|
|
69
|
+
maxLength: 100
|
|
70
|
+
},
|
|
71
|
+
interface: {
|
|
72
|
+
label: {
|
|
73
|
+
"pt-br": "Slug",
|
|
74
|
+
"en": "Slug"
|
|
75
|
+
},
|
|
76
|
+
component: "input"
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
type: {
|
|
80
|
+
type: "string",
|
|
81
|
+
required: true,
|
|
82
|
+
filterable: true,
|
|
83
|
+
default: "none",
|
|
84
|
+
validation: {
|
|
85
|
+
maxLength: 50
|
|
86
|
+
},
|
|
87
|
+
interface: {
|
|
88
|
+
label: {
|
|
89
|
+
"pt-br": "Tipo de Autenticação",
|
|
90
|
+
"en": "Auth Type"
|
|
91
|
+
},
|
|
92
|
+
component: "select"
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
description: {
|
|
96
|
+
type: "string",
|
|
97
|
+
required: false,
|
|
98
|
+
interface: {
|
|
99
|
+
label: {
|
|
100
|
+
"pt-br": "Descrição",
|
|
101
|
+
"en": "Description"
|
|
102
|
+
},
|
|
103
|
+
component: "textarea"
|
|
104
|
+
}
|
|
105
|
+
},
|
|
106
|
+
auth_config: {
|
|
107
|
+
type: "string",
|
|
108
|
+
required: false,
|
|
109
|
+
interface: {
|
|
110
|
+
label: {
|
|
111
|
+
"pt-br": "Configuração de Autenticação",
|
|
112
|
+
"en": "Auth Configuration"
|
|
113
|
+
},
|
|
114
|
+
component: "textarea",
|
|
115
|
+
disabled: true
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
function_definitions: {
|
|
119
|
+
type: "string",
|
|
120
|
+
required: false,
|
|
121
|
+
interface: {
|
|
122
|
+
label: {
|
|
123
|
+
"pt-br": "Definições de Função",
|
|
124
|
+
"en": "Function Definitions"
|
|
125
|
+
},
|
|
126
|
+
component: "textarea"
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
};
|
package/src/product.js
CHANGED
|
@@ -7,6 +7,9 @@ import objectives from './modules/objectives/index.js';
|
|
|
7
7
|
import contacts from './modules/contacts/index.js';
|
|
8
8
|
import conversations from './modules/conversations/index.js';
|
|
9
9
|
import prompt_versions from './modules/prompt_versions/index.js';
|
|
10
|
+
import tools from './modules/tools/index.js';
|
|
11
|
+
import agent_tools from './modules/agent_tools/index.js';
|
|
12
|
+
import tool_credentials from './modules/tool_credentials/index.js';
|
|
10
13
|
|
|
11
14
|
/* Shared */
|
|
12
15
|
|
|
@@ -37,7 +40,10 @@ export default {
|
|
|
37
40
|
objectives,
|
|
38
41
|
contacts,
|
|
39
42
|
conversations,
|
|
40
|
-
prompt_versions
|
|
43
|
+
prompt_versions,
|
|
44
|
+
tools,
|
|
45
|
+
agent_tools,
|
|
46
|
+
tool_credentials
|
|
41
47
|
},
|
|
42
48
|
documentation: {
|
|
43
49
|
title: "GreatAgents API",
|