@greatapps/greatagents 0.1.13 → 0.1.15

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,253 @@
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
+ };
package/src/product.js CHANGED
@@ -6,6 +6,14 @@ 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';
9
17
 
10
18
  /* Shared */
11
19
 
@@ -35,7 +43,15 @@ export default {
35
43
  agents,
36
44
  objectives,
37
45
  contacts,
38
- conversations
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
39
55
  },
40
56
  documentation: {
41
57
  title: "GreatAgents API",