@greatapps/greatagents 0.1.15 → 0.1.17

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@greatapps/greatagents",
3
- "version": "0.1.15",
3
+ "version": "0.1.17",
4
4
  "description": "Schemas para GreatAgents",
5
5
  "main": "./src/product.js",
6
6
  "type": "module"
package/src/product.js CHANGED
@@ -6,14 +6,6 @@ import agents from './modules/agents/index.js';
6
6
  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
- import tools from './modules/tools/index.js';
10
- import tool_types from './modules/tool_types/index.js';
11
- import tool_categories from './modules/tool_categories/index.js';
12
- import tool_credentials from './modules/tool_credentials/index.js';
13
- import credential_types from './modules/credential_types/index.js';
14
- import agent_tools from './modules/agent_tools/index.js';
15
- import tool_execution_logs from './modules/tool_execution_logs/index.js';
16
- import tool_parameters from './modules/tool_parameters/index.js';
17
9
 
18
10
  /* Shared */
19
11
 
@@ -43,15 +35,7 @@ export default {
43
35
  agents,
44
36
  objectives,
45
37
  contacts,
46
- conversations,
47
- tools,
48
- tool_types,
49
- tool_categories,
50
- tool_credentials,
51
- credential_types,
52
- agent_tools,
53
- tool_execution_logs,
54
- tool_parameters
38
+ conversations
55
39
  },
56
40
  documentation: {
57
41
  title: "GreatAgents API",
@@ -1,15 +0,0 @@
1
- import { properties } from "./properties.js";
2
-
3
- export default {
4
- product: "greatagents",
5
- name: "agent_tools",
6
- cache: { ttlView: 30, ttlList: 0 },
7
- params: [ "id_account" ],
8
- properties: properties,
9
- constraints: {
10
- unique: [
11
- ["id_agent", "id_tool"]
12
- ]
13
- },
14
- routes: {}
15
- };
@@ -1,126 +0,0 @@
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
- filterable: true,
52
- index: true,
53
- reference: {
54
- module: "agents",
55
- label: "title",
56
- value: "id"
57
- },
58
- interface: {
59
- label: {
60
- "pt-br": "Agente",
61
- "en": "Agent"
62
- },
63
- component: "select"
64
- }
65
- },
66
- id_tool: {
67
- type: "number",
68
- required: true,
69
- filterable: true,
70
- index: true,
71
- reference: {
72
- module: "tools",
73
- label: "name",
74
- value: "id"
75
- },
76
- interface: {
77
- label: {
78
- "pt-br": "Ferramenta",
79
- "en": "Tool"
80
- },
81
- component: "select"
82
- }
83
- },
84
- custom_config: {
85
- type: "string",
86
- interface: {
87
- label: {
88
- "pt-br": "Configuração Customizada",
89
- "en": "Custom Configuration"
90
- },
91
- component: "textarea",
92
- placeholder: {
93
- "pt-br": "JSON com override de configurações da ferramenta",
94
- "en": "JSON with tool configuration overrides"
95
- }
96
- }
97
- },
98
- priority: {
99
- type: "number",
100
- default: 0,
101
- filterable: true,
102
- interface: {
103
- label: {
104
- "pt-br": "Prioridade",
105
- "en": "Priority"
106
- },
107
- component: "number",
108
- placeholder: {
109
- "pt-br": "Ordem de execução",
110
- "en": "Execution order"
111
- }
112
- }
113
- },
114
- enabled: {
115
- type: "boolean",
116
- default: true,
117
- filterable: true,
118
- interface: {
119
- label: {
120
- "pt-br": "Habilitado",
121
- "en": "Enabled"
122
- },
123
- component: "boolean"
124
- }
125
- }
126
- };
@@ -1,10 +0,0 @@
1
- import { properties } from "./properties.js";
2
-
3
- export default {
4
- product: "greatagents",
5
- name: "credential_types",
6
- cache: { ttlView: 30, ttlList: 0 },
7
- params: [ "id_account" ],
8
- properties: properties,
9
- routes: {}
10
- };
@@ -1,108 +0,0 @@
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: 50
55
- },
56
- interface: {
57
- label: {
58
- "pt-br": "Nome do Tipo",
59
- "en": "Type Name"
60
- },
61
- component: "string",
62
- placeholder: {
63
- "pt-br": "Ex: api_key, bearer, oauth2, basic_auth, mtls, custom_header",
64
- "en": "Ex: api_key, bearer, oauth2, basic_auth, mtls, custom_header"
65
- }
66
- }
67
- },
68
- description: {
69
- type: "string",
70
- interface: {
71
- label: {
72
- "pt-br": "Descrição",
73
- "en": "Description"
74
- },
75
- component: "textarea",
76
- placeholder: {
77
- "pt-br": "Descreva este tipo de credencial",
78
- "en": "Describe this credential type"
79
- }
80
- }
81
- },
82
- fields_schema: {
83
- type: "string",
84
- interface: {
85
- label: {
86
- "pt-br": "Schema dos Campos",
87
- "en": "Fields Schema"
88
- },
89
- component: "textarea",
90
- placeholder: {
91
- "pt-br": "JSON Schema dos campos necessários para esta credencial",
92
- "en": "JSON Schema of required fields for this credential"
93
- }
94
- }
95
- },
96
- active: {
97
- type: "boolean",
98
- default: true,
99
- filterable: true,
100
- interface: {
101
- label: {
102
- "pt-br": "Ativo",
103
- "en": "Active"
104
- },
105
- component: "boolean"
106
- }
107
- }
108
- };
@@ -1,10 +0,0 @@
1
- import { properties } from "./properties.js";
2
-
3
- export default {
4
- product: "greatagents",
5
- name: "tool_categories",
6
- cache: { ttlView: 30, ttlList: 0 },
7
- params: [ "id_account" ],
8
- properties: properties,
9
- routes: {}
10
- };
@@ -1,116 +0,0 @@
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: 100
55
- },
56
- interface: {
57
- label: {
58
- "pt-br": "Nome da Categoria",
59
- "en": "Category Name"
60
- },
61
- component: "string",
62
- placeholder: {
63
- "pt-br": "Nome da categoria de ferramentas",
64
- "en": "Tool category name"
65
- }
66
- }
67
- },
68
- description: {
69
- type: "string",
70
- interface: {
71
- label: {
72
- "pt-br": "Descrição",
73
- "en": "Description"
74
- },
75
- component: "textarea",
76
- placeholder: {
77
- "pt-br": "Descreva esta categoria",
78
- "en": "Describe this category"
79
- }
80
- }
81
- },
82
- icon: {
83
- type: "string",
84
- validation: {
85
- maxLength: 50
86
- },
87
- interface: {
88
- label: {
89
- "pt-br": "Ícone",
90
- "en": "Icon"
91
- },
92
- component: "string",
93
- placeholder: {
94
- "pt-br": "Nome do ícone",
95
- "en": "Icon name"
96
- }
97
- }
98
- },
99
- color: {
100
- type: "string",
101
- validation: {
102
- maxLength: 7
103
- },
104
- interface: {
105
- label: {
106
- "pt-br": "Cor",
107
- "en": "Color"
108
- },
109
- component: "string",
110
- placeholder: {
111
- "pt-br": "Código hexadecimal da cor (ex: #FF0000)",
112
- "en": "Hexadecimal color code (ex: #FF0000)"
113
- }
114
- }
115
- }
116
- };
@@ -1,10 +0,0 @@
1
- import { properties } from "./properties.js";
2
-
3
- export default {
4
- product: "greatagents",
5
- name: "tool_credentials",
6
- cache: { ttlView: 30, ttlList: 0 },
7
- params: [ "id_account" ],
8
- properties: properties,
9
- routes: {}
10
- };
@@ -1,176 +0,0 @@
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
- filterable: true,
52
- index: true,
53
- reference: {
54
- module: "tools",
55
- label: "name",
56
- value: "id"
57
- },
58
- interface: {
59
- label: {
60
- "pt-br": "Ferramenta",
61
- "en": "Tool"
62
- },
63
- component: "select"
64
- }
65
- },
66
- id_credential_type: {
67
- type: "number",
68
- required: true,
69
- filterable: true,
70
- reference: {
71
- module: "credential_types",
72
- label: "name",
73
- value: "id"
74
- },
75
- interface: {
76
- label: {
77
- "pt-br": "Tipo de Credencial",
78
- "en": "Credential Type"
79
- },
80
- component: "select"
81
- }
82
- },
83
- name: {
84
- type: "string",
85
- required: true,
86
- filterable: true,
87
- searchable: true,
88
- validation: {
89
- maxLength: 100
90
- },
91
- interface: {
92
- label: {
93
- "pt-br": "Nome da Credencial",
94
- "en": "Credential Name"
95
- },
96
- component: "string",
97
- placeholder: {
98
- "pt-br": "Identificador da credencial",
99
- "en": "Credential identifier"
100
- }
101
- }
102
- },
103
- encrypted_data: {
104
- type: "string",
105
- interface: {
106
- label: {
107
- "pt-br": "Dados Criptografados",
108
- "en": "Encrypted Data"
109
- },
110
- component: "textarea",
111
- placeholder: {
112
- "pt-br": "Dados sensíveis criptografados",
113
- "en": "Encrypted sensitive data"
114
- }
115
- }
116
- },
117
- metadata: {
118
- type: "string",
119
- interface: {
120
- label: {
121
- "pt-br": "Metadados",
122
- "en": "Metadata"
123
- },
124
- component: "textarea",
125
- placeholder: {
126
- "pt-br": "JSON com metadados não sensíveis",
127
- "en": "JSON with non-sensitive metadata"
128
- }
129
- }
130
- },
131
- expires_at: {
132
- type: "date",
133
- filterable: true,
134
- interface: {
135
- label: {
136
- "pt-br": "Data de Expiração",
137
- "en": "Expiration Date"
138
- },
139
- component: "date"
140
- }
141
- },
142
- rotated_at: {
143
- type: "date",
144
- filterable: true,
145
- interface: {
146
- label: {
147
- "pt-br": "Última Rotação",
148
- "en": "Last Rotation"
149
- },
150
- component: "date"
151
- }
152
- },
153
- version: {
154
- type: "number",
155
- default: 1,
156
- interface: {
157
- label: {
158
- "pt-br": "Versão",
159
- "en": "Version"
160
- },
161
- component: "number"
162
- }
163
- },
164
- active: {
165
- type: "boolean",
166
- default: true,
167
- filterable: true,
168
- interface: {
169
- label: {
170
- "pt-br": "Ativo",
171
- "en": "Active"
172
- },
173
- component: "boolean"
174
- }
175
- }
176
- };
@@ -1,10 +0,0 @@
1
- import { properties } from "./properties.js";
2
-
3
- export default {
4
- product: "greatagents",
5
- name: "tool_execution_logs",
6
- cache: { ttlView: 30, ttlList: 0 },
7
- params: [ "id_account" ],
8
- properties: properties,
9
- routes: {}
10
- };
@@ -1,184 +0,0 @@
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
- filterable: true,
52
- index: true,
53
- reference: {
54
- module: "tools",
55
- label: "name",
56
- value: "id"
57
- },
58
- interface: {
59
- label: {
60
- "pt-br": "Ferramenta",
61
- "en": "Tool"
62
- },
63
- component: "select"
64
- }
65
- },
66
- id_agent: {
67
- type: "number",
68
- filterable: true,
69
- index: true,
70
- reference: {
71
- module: "agents",
72
- label: "title",
73
- value: "id"
74
- },
75
- interface: {
76
- label: {
77
- "pt-br": "Agente",
78
- "en": "Agent"
79
- },
80
- component: "select"
81
- }
82
- },
83
- execution_time: {
84
- type: "number",
85
- filterable: true,
86
- interface: {
87
- label: {
88
- "pt-br": "Tempo de Execução (ms)",
89
- "en": "Execution Time (ms)"
90
- },
91
- component: "number",
92
- placeholder: {
93
- "pt-br": "Tempo em milissegundos",
94
- "en": "Time in milliseconds"
95
- }
96
- }
97
- },
98
- status: {
99
- type: "string",
100
- filterable: true,
101
- validation: {
102
- maxLength: 20
103
- },
104
- interface: {
105
- label: {
106
- "pt-br": "Status",
107
- "en": "Status"
108
- },
109
- component: "select",
110
- placeholder: {
111
- "pt-br": "success, error, timeout",
112
- "en": "success, error, timeout"
113
- }
114
- }
115
- },
116
- input_data: {
117
- type: "string",
118
- interface: {
119
- label: {
120
- "pt-br": "Dados de Entrada",
121
- "en": "Input Data"
122
- },
123
- component: "textarea",
124
- placeholder: {
125
- "pt-br": "JSON dos parâmetros de entrada",
126
- "en": "JSON of input parameters"
127
- }
128
- }
129
- },
130
- output_data: {
131
- type: "string",
132
- interface: {
133
- label: {
134
- "pt-br": "Dados de Saída",
135
- "en": "Output Data"
136
- },
137
- component: "textarea",
138
- placeholder: {
139
- "pt-br": "JSON da resposta",
140
- "en": "JSON response"
141
- }
142
- }
143
- },
144
- error_message: {
145
- type: "string",
146
- interface: {
147
- label: {
148
- "pt-br": "Mensagem de Erro",
149
- "en": "Error Message"
150
- },
151
- component: "textarea",
152
- placeholder: {
153
- "pt-br": "Mensagem de erro se houver",
154
- "en": "Error message if any"
155
- }
156
- }
157
- },
158
- metadata: {
159
- type: "string",
160
- interface: {
161
- label: {
162
- "pt-br": "Metadados",
163
- "en": "Metadata"
164
- },
165
- component: "textarea",
166
- placeholder: {
167
- "pt-br": "JSON com informações adicionais",
168
- "en": "JSON with additional information"
169
- }
170
- }
171
- },
172
- executed_at: {
173
- type: "date",
174
- filterable: true,
175
- index: true,
176
- interface: {
177
- label: {
178
- "pt-br": "Executado Em",
179
- "en": "Executed At"
180
- },
181
- component: "date"
182
- }
183
- }
184
- };
@@ -1,10 +0,0 @@
1
- import { properties } from "./properties.js";
2
-
3
- export default {
4
- product: "greatagents",
5
- name: "tool_parameters",
6
- cache: { ttlView: 30, ttlList: 0 },
7
- params: [ "id_account" ],
8
- properties: properties,
9
- routes: {}
10
- };
@@ -1,176 +0,0 @@
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
- filterable: true,
52
- index: true,
53
- reference: {
54
- module: "tools",
55
- label: "name",
56
- value: "id"
57
- },
58
- interface: {
59
- label: {
60
- "pt-br": "Ferramenta",
61
- "en": "Tool"
62
- },
63
- component: "select"
64
- }
65
- },
66
- name: {
67
- type: "string",
68
- required: true,
69
- filterable: true,
70
- searchable: true,
71
- validation: {
72
- maxLength: 100
73
- },
74
- interface: {
75
- label: {
76
- "pt-br": "Nome do Parâmetro",
77
- "en": "Parameter Name"
78
- },
79
- component: "string",
80
- placeholder: {
81
- "pt-br": "Nome do parâmetro",
82
- "en": "Parameter name"
83
- }
84
- }
85
- },
86
- parameter_type: {
87
- type: "string",
88
- filterable: true,
89
- validation: {
90
- maxLength: 10
91
- },
92
- interface: {
93
- label: {
94
- "pt-br": "Tipo de Parâmetro",
95
- "en": "Parameter Type"
96
- },
97
- component: "select",
98
- placeholder: {
99
- "pt-br": "input ou output",
100
- "en": "input or output"
101
- }
102
- }
103
- },
104
- data_type: {
105
- type: "string",
106
- filterable: true,
107
- validation: {
108
- maxLength: 20
109
- },
110
- interface: {
111
- label: {
112
- "pt-br": "Tipo de Dado",
113
- "en": "Data Type"
114
- },
115
- component: "select",
116
- placeholder: {
117
- "pt-br": "string, number, boolean, object, array",
118
- "en": "string, number, boolean, object, array"
119
- }
120
- }
121
- },
122
- required: {
123
- type: "boolean",
124
- default: false,
125
- filterable: true,
126
- interface: {
127
- label: {
128
- "pt-br": "Obrigatório",
129
- "en": "Required"
130
- },
131
- component: "boolean"
132
- }
133
- },
134
- description: {
135
- type: "string",
136
- interface: {
137
- label: {
138
- "pt-br": "Descrição",
139
- "en": "Description"
140
- },
141
- component: "textarea",
142
- placeholder: {
143
- "pt-br": "Descrição do parâmetro",
144
- "en": "Parameter description"
145
- }
146
- }
147
- },
148
- validation_schema: {
149
- type: "string",
150
- interface: {
151
- label: {
152
- "pt-br": "Schema de Validação",
153
- "en": "Validation Schema"
154
- },
155
- component: "textarea",
156
- placeholder: {
157
- "pt-br": "JSON Schema específico deste parâmetro",
158
- "en": "JSON Schema specific to this parameter"
159
- }
160
- }
161
- },
162
- default_value: {
163
- type: "string",
164
- interface: {
165
- label: {
166
- "pt-br": "Valor Padrão",
167
- "en": "Default Value"
168
- },
169
- component: "string",
170
- placeholder: {
171
- "pt-br": "Valor padrão do parâmetro",
172
- "en": "Default parameter value"
173
- }
174
- }
175
- }
176
- };
@@ -1,10 +0,0 @@
1
- import { properties } from "./properties.js";
2
-
3
- export default {
4
- product: "greatagents",
5
- name: "tool_types",
6
- cache: { ttlView: 30, ttlList: 0 },
7
- params: [ "id_account" ],
8
- properties: properties,
9
- routes: {}
10
- };
@@ -1,109 +0,0 @@
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
- unique: true,
52
- filterable: true,
53
- searchable: true,
54
- validation: {
55
- maxLength: 50
56
- },
57
- interface: {
58
- label: {
59
- "pt-br": "Nome do Tipo",
60
- "en": "Type Name"
61
- },
62
- component: "string",
63
- placeholder: {
64
- "pt-br": "Ex: http, mcp, a2a, script",
65
- "en": "Ex: http, mcp, a2a, script"
66
- }
67
- }
68
- },
69
- description: {
70
- type: "string",
71
- interface: {
72
- label: {
73
- "pt-br": "Descrição",
74
- "en": "Description"
75
- },
76
- component: "textarea",
77
- placeholder: {
78
- "pt-br": "Descreva este tipo de ferramenta",
79
- "en": "Describe this tool type"
80
- }
81
- }
82
- },
83
- config_schema: {
84
- type: "string",
85
- interface: {
86
- label: {
87
- "pt-br": "Schema de Configuração",
88
- "en": "Configuration Schema"
89
- },
90
- component: "textarea",
91
- placeholder: {
92
- "pt-br": "JSON Schema para validar config de ferramentas deste tipo",
93
- "en": "JSON Schema to validate config for tools of this type"
94
- }
95
- }
96
- },
97
- active: {
98
- type: "boolean",
99
- default: true,
100
- filterable: true,
101
- interface: {
102
- label: {
103
- "pt-br": "Ativo",
104
- "en": "Active"
105
- },
106
- component: "boolean"
107
- }
108
- }
109
- };
@@ -1,10 +0,0 @@
1
- import { properties } from "./properties.js";
2
-
3
- export default {
4
- product: "greatagents",
5
- name: "tools",
6
- cache: { ttlView: 30, ttlList: 0 },
7
- params: [ "id_account" ],
8
- properties: properties,
9
- routes: {}
10
- };
@@ -1,253 +0,0 @@
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
- filterable: true,
52
- index: true,
53
- reference: {
54
- module: "agents",
55
- label: "title",
56
- value: "id"
57
- },
58
- interface: {
59
- label: {
60
- "pt-br": "Agente",
61
- "en": "Agent"
62
- },
63
- component: "select"
64
- }
65
- },
66
- id_tool_type: {
67
- type: "number",
68
- required: true,
69
- filterable: true,
70
- reference: {
71
- module: "tool_types",
72
- label: "name",
73
- value: "id"
74
- },
75
- interface: {
76
- label: {
77
- "pt-br": "Tipo de Ferramenta",
78
- "en": "Tool Type"
79
- },
80
- component: "select"
81
- }
82
- },
83
- id_tool_category: {
84
- type: "number",
85
- filterable: true,
86
- reference: {
87
- module: "tool_categories",
88
- label: "name",
89
- value: "id"
90
- },
91
- interface: {
92
- label: {
93
- "pt-br": "Categoria",
94
- "en": "Category"
95
- },
96
- component: "select"
97
- }
98
- },
99
- name: {
100
- type: "string",
101
- required: true,
102
- filterable: true,
103
- searchable: true,
104
- validation: {
105
- maxLength: 100
106
- },
107
- interface: {
108
- label: {
109
- "pt-br": "Nome da Ferramenta",
110
- "en": "Tool Name"
111
- },
112
- component: "string",
113
- placeholder: {
114
- "pt-br": "Nome único para identificar a ferramenta",
115
- "en": "Unique name to identify the tool"
116
- }
117
- }
118
- },
119
- description: {
120
- type: "string",
121
- interface: {
122
- label: {
123
- "pt-br": "Descrição",
124
- "en": "Description"
125
- },
126
- component: "textarea",
127
- placeholder: {
128
- "pt-br": "Descreva quando e como o LLM deve usar esta ferramenta",
129
- "en": "Describe when and how the LLM should use this tool"
130
- }
131
- }
132
- },
133
- config: {
134
- type: "string",
135
- interface: {
136
- label: {
137
- "pt-br": "Configuração",
138
- "en": "Configuration"
139
- },
140
- component: "textarea",
141
- placeholder: {
142
- "pt-br": "JSON com configurações específicas do tipo de ferramenta",
143
- "en": "JSON with tool type specific configurations"
144
- }
145
- }
146
- },
147
- parameters_schema: {
148
- type: "string",
149
- interface: {
150
- label: {
151
- "pt-br": "Schema de Parâmetros",
152
- "en": "Parameters Schema"
153
- },
154
- component: "textarea",
155
- placeholder: {
156
- "pt-br": "JSON Schema para validação de entrada",
157
- "en": "JSON Schema for input validation"
158
- }
159
- }
160
- },
161
- output_schema: {
162
- type: "string",
163
- interface: {
164
- label: {
165
- "pt-br": "Schema de Saída",
166
- "en": "Output Schema"
167
- },
168
- component: "textarea",
169
- placeholder: {
170
- "pt-br": "JSON Schema para saída esperada",
171
- "en": "JSON Schema for expected output"
172
- }
173
- }
174
- },
175
- timeout: {
176
- type: "number",
177
- default: 30000,
178
- filterable: true,
179
- interface: {
180
- label: {
181
- "pt-br": "Timeout (ms)",
182
- "en": "Timeout (ms)"
183
- },
184
- component: "number",
185
- placeholder: {
186
- "pt-br": "Tempo limite em milissegundos",
187
- "en": "Timeout in milliseconds"
188
- }
189
- }
190
- },
191
- max_retries: {
192
- type: "number",
193
- default: 3,
194
- interface: {
195
- label: {
196
- "pt-br": "Máximo de Tentativas",
197
- "en": "Max Retries"
198
- },
199
- component: "number"
200
- }
201
- },
202
- retry_delay: {
203
- type: "number",
204
- default: 1000,
205
- interface: {
206
- label: {
207
- "pt-br": "Delay entre Tentativas (ms)",
208
- "en": "Retry Delay (ms)"
209
- },
210
- component: "number"
211
- }
212
- },
213
- rate_limit: {
214
- type: "number",
215
- interface: {
216
- label: {
217
- "pt-br": "Limite de Taxa (req/min)",
218
- "en": "Rate Limit (req/min)"
219
- },
220
- component: "number",
221
- placeholder: {
222
- "pt-br": "Requisições por minuto",
223
- "en": "Requests per minute"
224
- }
225
- }
226
- },
227
- active: {
228
- type: "boolean",
229
- default: true,
230
- filterable: true,
231
- interface: {
232
- label: {
233
- "pt-br": "Ativo",
234
- "en": "Active"
235
- },
236
- component: "boolean"
237
- }
238
- },
239
- version: {
240
- type: "string",
241
- interface: {
242
- label: {
243
- "pt-br": "Versão",
244
- "en": "Version"
245
- },
246
- component: "string",
247
- placeholder: {
248
- "pt-br": "Versão da configuração",
249
- "en": "Configuration version"
250
- }
251
- }
252
- }
253
- };