@stack-spot/portal-network 0.172.2 → 0.172.4-beta.1
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/CHANGELOG.md +198 -0
- package/dist/api/account.d.ts +19 -11
- package/dist/api/account.d.ts.map +1 -1
- package/dist/api/account.js +2 -2
- package/dist/api/account.js.map +1 -1
- package/dist/api/agent-tools.d.ts +1 -0
- package/dist/api/agent-tools.d.ts.map +1 -1
- package/dist/api/agent-tools.js.map +1 -1
- package/dist/api/ai.d.ts +2 -1
- package/dist/api/ai.d.ts.map +1 -1
- package/dist/api/ai.js.map +1 -1
- package/dist/api/codeShift.d.ts +488 -21
- package/dist/api/codeShift.d.ts.map +1 -1
- package/dist/api/codeShift.js +204 -0
- package/dist/api/codeShift.js.map +1 -1
- package/dist/client/account.d.ts +16 -0
- package/dist/client/account.d.ts.map +1 -1
- package/dist/client/account.js +10 -1
- package/dist/client/account.js.map +1 -1
- package/dist/client/agent-tools.d.ts.map +1 -1
- package/dist/client/agent-tools.js +3 -8
- package/dist/client/agent-tools.js.map +1 -1
- package/dist/client/ai.js +3 -3
- package/dist/client/ai.js.map +1 -1
- package/dist/client/code-shift.d.ts +174 -26
- package/dist/client/code-shift.d.ts.map +1 -1
- package/dist/client/code-shift.js +97 -7
- package/dist/client/code-shift.js.map +1 -1
- package/dist/error/dictionary/agent-tools.d.ts +75 -0
- package/dist/error/dictionary/agent-tools.d.ts.map +1 -0
- package/dist/error/dictionary/agent-tools.js +75 -0
- package/dist/error/dictionary/agent-tools.js.map +1 -0
- package/package.json +2 -2
- package/readme.md +1 -1
- package/src/api/account.ts +21 -12
- package/src/api/agent-tools.ts +4 -0
- package/src/api/agent.ts +2 -0
- package/src/api/ai.ts +2 -1
- package/src/api/codeShift.ts +849 -32
- package/src/api/notification.ts +2 -0
- package/src/client/account.ts +5 -0
- package/src/client/agent-tools.ts +4 -8
- package/src/client/ai.ts +4 -3
- package/src/client/code-shift.ts +68 -7
- package/src/error/dictionary/agent-tools.ts +76 -0
package/src/api/notification.ts
CHANGED
package/src/client/account.ts
CHANGED
|
@@ -40,6 +40,7 @@ import {
|
|
|
40
40
|
disassociateGroupToServiceCredential, enableFidoCredentials,
|
|
41
41
|
enableSecret,
|
|
42
42
|
enterpriseContact,
|
|
43
|
+
findAssociations,
|
|
43
44
|
findSecrets1,
|
|
44
45
|
getAccess,
|
|
45
46
|
getAccount1,
|
|
@@ -892,6 +893,10 @@ class AccountClient extends ReactQueryNetworkClient {
|
|
|
892
893
|
* Delete FIDO key
|
|
893
894
|
*/
|
|
894
895
|
deleteFidoKey = this.mutation(deleteFidoKey)
|
|
896
|
+
/**
|
|
897
|
+
* Find Secret Associations
|
|
898
|
+
*/
|
|
899
|
+
findSecretAssociations = this.infiniteQuery(findAssociations, { accumulator: 'items' })
|
|
895
900
|
}
|
|
896
901
|
|
|
897
902
|
export const accountClient = new AccountClient()
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { HttpError } from '@oazapfts/runtime'
|
|
2
2
|
import { getApiAddresses } from '../api-addresses'
|
|
3
|
-
import { addFavoriteV1AgentsAgentIdFavoritePost, AgentVisibilityLevelEnum, createAgentV1AgentsPost, createToolkitToolsV1ToolkitsToolkitIdToolsPost, createToolkitV1ToolkitsPost, defaults, deleteAgentV1AgentsAgentIdDelete, deleteFavoriteV1AgentsAgentIdFavoriteDelete, deleteToolkitToolsV1ToolkitsToolkitIdToolsDelete, deleteToolkitV1ToolkitsToolkitIdDelete, editToolkitToolV1ToolkitsToolkitIdToolsToolIdPut, forkAgentV1AgentsAgentIdForkPost, forkToolkitV1ToolkitsToolkitIdForkPost, getAgentV1AgentsAgentIdGet, getPublicToolKitsV1BuiltinToolkitGet, getToolkitToolV1ToolkitsToolkitIdToolsToolIdGet, getToolkitV1ToolkitsToolkitIdGet,
|
|
3
|
+
import { addFavoriteV1AgentsAgentIdFavoritePost, AgentVisibilityLevelEnum, createAgentV1AgentsPost, createToolkitToolsV1ToolkitsToolkitIdToolsPost, createToolkitV1ToolkitsPost, defaults, deleteAgentV1AgentsAgentIdDelete, deleteFavoriteV1AgentsAgentIdFavoriteDelete, deleteToolkitToolsV1ToolkitsToolkitIdToolsDelete, deleteToolkitV1ToolkitsToolkitIdDelete, editToolkitToolV1ToolkitsToolkitIdToolsToolIdPut, forkAgentV1AgentsAgentIdForkPost, forkToolkitV1ToolkitsToolkitIdForkPost, getAgentV1AgentsAgentIdGet, getPublicToolKitsV1BuiltinToolkitGet, getToolkitToolV1ToolkitsToolkitIdToolsToolIdGet, getToolkitV1ToolkitsToolkitIdGet, listAgentsUsingToolsV1ToolkitsToolkitIdToolsAgentsPost, listAgentsV1AgentsGet, listMultiAgentsV1AgentsMultiAgentsGet, listToolkitsV1ToolkitsGet, publishAgentV1AgentsAgentIdPublishPost, searchAgentsV1AgentsSearchPost, shareV1AgentsAgentIdSharePost, updateAgentV1AgentsAgentIdPatch, updateToolkitV1ToolkitsToolkitIdPatch, VisibilityLevelEnum } from '../api/agent-tools'
|
|
4
|
+
import { DefaultAPIError } from '../error/DefaultAPIError'
|
|
5
|
+
import { agentToolsDictionary } from '../error/dictionary/agent-tools'
|
|
4
6
|
import { StackspotAPIError } from '../error/StackspotAPIError'
|
|
5
7
|
import { ReactQueryNetworkClient } from '../network/ReactQueryNetworkClient'
|
|
6
8
|
import { FetchEventStream } from '../network/types'
|
|
@@ -17,13 +19,7 @@ class AgentToolsClient extends ReactQueryNetworkClient {
|
|
|
17
19
|
}
|
|
18
20
|
|
|
19
21
|
protected buildStackSpotError(error: HttpError): StackspotAPIError {
|
|
20
|
-
return new
|
|
21
|
-
status: error.status,
|
|
22
|
-
headers: error.headers,
|
|
23
|
-
stack: error.stack,
|
|
24
|
-
// @ts-ignore API documentation is wrong
|
|
25
|
-
message: (error?.data as HttpValidationError | undefined)?.details?.map(d => d?.msg)?.join('\n'),
|
|
26
|
-
})
|
|
22
|
+
return new DefaultAPIError(error.data, error.status, agentToolsDictionary, error.headers)
|
|
27
23
|
}
|
|
28
24
|
|
|
29
25
|
tools = this.query(removeAuthorizationParam(getPublicToolKitsV1BuiltinToolkitGet))
|
package/src/client/ai.ts
CHANGED
|
@@ -47,7 +47,7 @@ import { ReactQueryNetworkClient } from '../network/ReactQueryNetworkClient'
|
|
|
47
47
|
import { removeAuthorizationParam } from '../utils/remove-authorization-param'
|
|
48
48
|
import { StreamedJson } from '../utils/StreamedJson'
|
|
49
49
|
import { formatJson } from '../utils/string'
|
|
50
|
-
import {
|
|
50
|
+
import { agentToolsClient } from './agent-tools'
|
|
51
51
|
import {
|
|
52
52
|
ChatAgentTool,
|
|
53
53
|
ChatResponseWithSteps,
|
|
@@ -260,10 +260,10 @@ class AIClient extends ReactQueryNetworkClient {
|
|
|
260
260
|
|
|
261
261
|
private static async toolsOfAgent(agentId?: string) {
|
|
262
262
|
try {
|
|
263
|
-
const agent = agentId ? await
|
|
263
|
+
const agent = agentId ? await agentToolsClient.agent.query({ agentId }) : undefined
|
|
264
264
|
if (!agent) return []
|
|
265
265
|
const tools: (Omit<ChatAgentTool, 'duration' | 'prompt' | 'output'>)[] = []
|
|
266
|
-
agent.toolkits?.
|
|
266
|
+
agent.toolkits?.builtin_toolkits?.forEach(kit => kit.tools?.forEach(({ id, name, description }) => {
|
|
267
267
|
if (id) tools.push({ image: kit.image_url, id, name: name || id, description })
|
|
268
268
|
}))
|
|
269
269
|
return tools
|
|
@@ -393,3 +393,4 @@ class AIClient extends ReactQueryNetworkClient {
|
|
|
393
393
|
}
|
|
394
394
|
|
|
395
395
|
export const aiClient = new AIClient()
|
|
396
|
+
|
package/src/client/code-shift.ts
CHANGED
|
@@ -48,6 +48,16 @@ import {
|
|
|
48
48
|
updateRepositoryServiceV1ReposRepositoryIdPut,
|
|
49
49
|
validateScmUrlServiceV1ReposValidateScmUrlPost,
|
|
50
50
|
listUserServiceV1UsersGet,
|
|
51
|
+
analyticsProgramGroupsDetailsV1AnalyticsProgramGroupsDetailsGet,
|
|
52
|
+
analyticsProgramGroupsDetailsDownloadV1AnalyticsProgramGroupsDetailsDownloadGet,
|
|
53
|
+
getModuleInputsV1ModulesModuleIdInputsGet,
|
|
54
|
+
analyticsRepositoryDetailedReportDownloadV1AnalyticsRepositoriesDetailsDownloadGet,
|
|
55
|
+
analyticsRepositoryDetailedReportV1AnalyticsRepositoriesDetailsGet,
|
|
56
|
+
listRepositoryDownloadServiceV1ReposDownloadGet,
|
|
57
|
+
listProgramGroupDownloadServiceV1ProgramGroupsDownloadGet,
|
|
58
|
+
getModuleV1ModulesModuleIdGet,
|
|
59
|
+
analyticsProgramGroupsTargetDetailsV1AnalyticsProgramGroupsTargetDetailsGet,
|
|
60
|
+
analyticsProgramGroupsTargetDetailsDownloadV1AnalyticsProgramGroupsTargetDetailsDownloadGet,
|
|
51
61
|
} from '../api/codeShift'
|
|
52
62
|
import { DefaultAPIError } from '../error/DefaultAPIError'
|
|
53
63
|
import { codeShiftDictionary } from '../error/dictionary/code-shift'
|
|
@@ -89,6 +99,10 @@ class CodeShift extends ReactQueryNetworkClient {
|
|
|
89
99
|
* Updates a repository
|
|
90
100
|
*/
|
|
91
101
|
updateRepository = this.mutation(removeAuthorizationParam(updateRepositoryServiceV1ReposRepositoryIdPut))
|
|
102
|
+
/**
|
|
103
|
+
* List Repository Download Service
|
|
104
|
+
*/
|
|
105
|
+
repositoryDownload = this.query(removeAuthorizationParam(listRepositoryDownloadServiceV1ReposDownloadGet))
|
|
92
106
|
/**
|
|
93
107
|
* Get a report for a pull request by id.
|
|
94
108
|
*/
|
|
@@ -97,6 +111,14 @@ class CodeShift extends ReactQueryNetworkClient {
|
|
|
97
111
|
* Gets modules.
|
|
98
112
|
*/
|
|
99
113
|
modules = this.query(removeAuthorizationParam(listModulesServiceV1ModulesGet))
|
|
114
|
+
/**
|
|
115
|
+
* Gets module by id.
|
|
116
|
+
*/
|
|
117
|
+
module = this.query(removeAuthorizationParam(getModuleV1ModulesModuleIdGet))
|
|
118
|
+
/**
|
|
119
|
+
* Gets module inputs.
|
|
120
|
+
*/
|
|
121
|
+
modulesInputs = this.query(removeAuthorizationParam(getModuleInputsV1ModulesModuleIdInputsGet))
|
|
100
122
|
/**
|
|
101
123
|
* Creates a module.
|
|
102
124
|
*/
|
|
@@ -192,6 +214,10 @@ class CodeShift extends ReactQueryNetworkClient {
|
|
|
192
214
|
* Deletes a program group.
|
|
193
215
|
*/
|
|
194
216
|
deleteProgramGroup = this.mutation(removeAuthorizationParam(deleteProgramGroupServiceV1ProgramGroupsProgramGroupIdDelete))
|
|
217
|
+
/**
|
|
218
|
+
* List Program Group Download Service
|
|
219
|
+
*/
|
|
220
|
+
programGroupDownload = this.query(removeAuthorizationParam(listProgramGroupDownloadServiceV1ProgramGroupsDownloadGet))
|
|
195
221
|
/**
|
|
196
222
|
* Gets list of tags.
|
|
197
223
|
*/
|
|
@@ -204,7 +230,6 @@ class CodeShift extends ReactQueryNetworkClient {
|
|
|
204
230
|
* Get Branches for a Repository
|
|
205
231
|
*/
|
|
206
232
|
getBranches = this.query(removeAuthorizationParam(listBranchesServiceV1ReposBranchesGet))
|
|
207
|
-
|
|
208
233
|
/**
|
|
209
234
|
* General Report Success And Errors
|
|
210
235
|
*/
|
|
@@ -234,9 +259,11 @@ class CodeShift extends ReactQueryNetworkClient {
|
|
|
234
259
|
removeAuthorizationParam(analyticsProgramGroupsLastReportStatusV1AnalyticsProgramGroupsLastReportStatusGet),
|
|
235
260
|
)
|
|
236
261
|
/**
|
|
237
|
-
* Analytics Program Groups
|
|
262
|
+
* Analytics Program Groups Last Report Status Download
|
|
238
263
|
*/
|
|
239
|
-
|
|
264
|
+
analyticsProgramGroupsLastReportStatusDownload = this.query(
|
|
265
|
+
removeAuthorizationParam(analyticsProgramGroupsLastReportStatusDownloadV1AnalyticsProgramGroupsLastReportStatusDownloadGet),
|
|
266
|
+
)
|
|
240
267
|
/**
|
|
241
268
|
* Analytics User Usage
|
|
242
269
|
*/
|
|
@@ -252,11 +279,9 @@ class CodeShift extends ReactQueryNetworkClient {
|
|
|
252
279
|
removeAuthorizationParam(analyticsRepositoryUsageDownloadV1AnalyticsRepositoriesUsageDownloadGet),
|
|
253
280
|
)
|
|
254
281
|
/**
|
|
255
|
-
* Analytics Program Groups
|
|
282
|
+
* Analytics Program Groups Usage
|
|
256
283
|
*/
|
|
257
|
-
|
|
258
|
-
removeAuthorizationParam(analyticsProgramGroupsLastReportStatusDownloadV1AnalyticsProgramGroupsLastReportStatusDownloadGet),
|
|
259
|
-
)
|
|
284
|
+
analyticsProgramGroupsUsage = this.query(removeAuthorizationParam(analyticsProgramGroupsUsageV1AnalyticsProgramGroupsUsageGet))
|
|
260
285
|
/**
|
|
261
286
|
* Analytics Program Groups Usage Download
|
|
262
287
|
*/
|
|
@@ -269,6 +294,42 @@ class CodeShift extends ReactQueryNetworkClient {
|
|
|
269
294
|
getUsersService = this.query(
|
|
270
295
|
removeAuthorizationParam(listUserServiceV1UsersGet),
|
|
271
296
|
)
|
|
297
|
+
/**
|
|
298
|
+
* Analytics Program Groups Details
|
|
299
|
+
*/
|
|
300
|
+
analyticsProgramGroupsDetails = this.query(
|
|
301
|
+
removeAuthorizationParam(analyticsProgramGroupsDetailsV1AnalyticsProgramGroupsDetailsGet),
|
|
302
|
+
)
|
|
303
|
+
/**
|
|
304
|
+
* Analytics Program Groups Details Download
|
|
305
|
+
*/
|
|
306
|
+
analyticsProgramGroupsDetailsDownload = this.query(
|
|
307
|
+
removeAuthorizationParam(analyticsProgramGroupsDetailsDownloadV1AnalyticsProgramGroupsDetailsDownloadGet),
|
|
308
|
+
)
|
|
309
|
+
/**
|
|
310
|
+
* Analytics Program Groups Details
|
|
311
|
+
*/
|
|
312
|
+
analyticsRepositoryDetails = this.query(
|
|
313
|
+
removeAuthorizationParam(analyticsRepositoryDetailedReportV1AnalyticsRepositoriesDetailsGet),
|
|
314
|
+
)
|
|
315
|
+
/**
|
|
316
|
+
* Analytics Program Groups Details Download
|
|
317
|
+
*/
|
|
318
|
+
analyticsRepositoryDetailsDownload = this.query(
|
|
319
|
+
removeAuthorizationParam(analyticsRepositoryDetailedReportDownloadV1AnalyticsRepositoriesDetailsDownloadGet),
|
|
320
|
+
)
|
|
321
|
+
/**
|
|
322
|
+
* Analytics Program Groups Target Details
|
|
323
|
+
*/
|
|
324
|
+
analyticsProgramGroupsTargetDetails = this.query(
|
|
325
|
+
removeAuthorizationParam(analyticsProgramGroupsTargetDetailsV1AnalyticsProgramGroupsTargetDetailsGet),
|
|
326
|
+
)
|
|
327
|
+
/**
|
|
328
|
+
* Analytics Program Groups Target Details Download
|
|
329
|
+
*/
|
|
330
|
+
analyticsProgramGroupsTargetDetailsDownload = this.query(
|
|
331
|
+
removeAuthorizationParam(analyticsProgramGroupsTargetDetailsDownloadV1AnalyticsProgramGroupsTargetDetailsDownloadGet),
|
|
332
|
+
)
|
|
272
333
|
}
|
|
273
334
|
|
|
274
335
|
export const codeShiftClient = new CodeShift()
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { Dictionary } from '@stack-spot/portal-translate'
|
|
2
|
+
|
|
3
|
+
export const agentToolsDictionary = {
|
|
4
|
+
en: {
|
|
5
|
+
AGENT_1000_INVALID_JWT: 'Invalid JWT token',
|
|
6
|
+
AGENT_1001_DECODE_JWT_ERROR: 'Error decoding JWT token',
|
|
7
|
+
AGENTS_6000_FORBIDDEN_1: 'Insufficient permissions',
|
|
8
|
+
AGENTS_6000_FORBIDDEN_2: 'You do not have permission to access the specified secret.',
|
|
9
|
+
AGENTS_6000_FORBIDDEN_3: 'Toolkit publication is restricted to account secrets or if secrets are not present.',
|
|
10
|
+
AGENT_1002_STRUCT_OUTPUT_WITH_BUILTIN_TOOLS_NOT_PERMITED: 'Structured output cannot be used alongside with builtin tools',
|
|
11
|
+
AGENT_1003_REQUIRED_LLM_PARAM_NOT_PROVIDED: 'Required parameter of llm model was not provided',
|
|
12
|
+
AGENT_1004_INVALID_LLM_PARAM: "The parameter '{param}' is invalid",
|
|
13
|
+
AGENT_1005_INVALID_KNOWLEDGE_SOURCE_ID: 'Knowledge source is invalid',
|
|
14
|
+
AGENT_1006_INVALID_LLM_PARAM_VALUE_TYPE: 'LLM param value is invalid',
|
|
15
|
+
AGENT_1007_LLM_PARAM_VALUE_IS_REQUIRED: 'LLM param value is required',
|
|
16
|
+
AGENT_1008_INVALID_ULID_FOR_MODEL_ID: 'Invalid ulid passed for model id',
|
|
17
|
+
AGENT_1009_INVALID_STRUCTURE_OUTPUT_SCHEMA: 'Structure output schema is invalid. Please, check our documentation or contact our support',
|
|
18
|
+
AGENT_1010_STRUCTURED_OUTPUT_SCHEMA_CONTAINS_INVALID_DATA: 'Your structure output schema contains invalid data. Please, check our documentation or contact our support',
|
|
19
|
+
AGENT_1011_AGENT_WITH_SLUG_ALREADY_EXISTS: 'An agent with this slug already exists',
|
|
20
|
+
AGENT_1013_INVALID_VISIBILITY: 'Visibility is invalid',
|
|
21
|
+
AGENT_1015_AGENT_HAS_PERSONAL_SECRET_TOOL: 'It is not possible to publish this agent, because it has a tool with a personal secret',
|
|
22
|
+
AGENT_2002_INVALID_VISIBILITY_CHANGE: 'Cannot change visibility',
|
|
23
|
+
AGENT_2003_SECRETS_WITH_SAME_TYPE: 'Secrets with the same type are not allowed.',
|
|
24
|
+
TOOL_1200_TOOL_IN_USE: 'You have a tool that is already in use by an Agent and therefore cannot be removed.',
|
|
25
|
+
AGENT_1101_TOOLKIT_IN_USE: 'The toolkit is already in use by an Agent and therefore cannot be removed.',
|
|
26
|
+
AGENT_1101_TOOLKIT_INVALID_CREDENTIAL_TYPE: 'Your toolkit has an invalid type of authorization. Only Client Credentials, and API Key are accepted.',
|
|
27
|
+
AGENT_1102_TOOLKIT_AUTHENTICATION_FAILED: 'An error occurred during authentication in the toolkit.',
|
|
28
|
+
AGENT_1105_TOOLKIT_WITH_PERSONAL_SECRET: 'It is not possible to share the agent, as it has a tool with a personal secret. Remove the tool or replace it with an organization secret.',
|
|
29
|
+
AGENT_1012_AGENT_NOT_FOUND: 'Agent with id was not found',
|
|
30
|
+
AGENT_1014_AGENT_TOOL_NOT_FOUND: 'Agent Tool with id was not found',
|
|
31
|
+
AGENT_1100_TOOLKIT_NOT_FOUND: 'Toolkit with id was not found',
|
|
32
|
+
TOOL_1201_TOOL_NOT_FOUND: 'Tool was not found',
|
|
33
|
+
TOOL_1202_INVALID_SUB_AGENT_ASSIGNMENT: 'Cannot assign sub-agents, this agent is already a sub-agent of another agent.',
|
|
34
|
+
TOOL_1203_INVALID_SUB_AGENT_SELF_ASSIGNMENT: 'Agent cannot be assigned as its own tool. Please select a different agent.',
|
|
35
|
+
TOOL_1204_INVALID_SUB_AGENT_AS_ORCHESTRATOR: 'Cannot assign an orchestrator agent as a sub-agent to another orchestrator. Only single-level agent delegation is supported.',
|
|
36
|
+
AGENT_5000_UNEXPECTED_ERROR: 'An unexpected error occurred. Try again later or contact our support',
|
|
37
|
+
AGENT_2000_ACCOUNT_API_ERROR: 'Error with Account API integration',
|
|
38
|
+
AGENT_2001_IAM_API_ERROR: 'Error with IAM API integration',
|
|
39
|
+
},
|
|
40
|
+
pt: {
|
|
41
|
+
AGENT_1000_INVALID_JWT: 'Token JWT inválido',
|
|
42
|
+
AGENT_1001_DECODE_JWT_ERROR: 'Erro ao decodificar o token JWT',
|
|
43
|
+
AGENTS_6000_FORBIDDEN_1: 'Permissões insuficientes',
|
|
44
|
+
AGENTS_6000_FORBIDDEN_2: 'Você não tem permissão para acessar o segredo especificado.',
|
|
45
|
+
AGENTS_6000_FORBIDDEN_3: 'A publicação do toolkit é restrita a segredos de conta ou se segredos não estiverem presentes.',
|
|
46
|
+
AGENT_1002_STRUCT_OUTPUT_WITH_BUILTIN_TOOLS_NOT_PERMITED: 'A saída estruturada não pode ser usada juntamente com ferramentas internas.',
|
|
47
|
+
AGENT_1003_REQUIRED_LLM_PARAM_NOT_PROVIDED: 'Parâmetro obrigatório do modelo LLM não foi fornecido',
|
|
48
|
+
AGENT_1004_INVALID_LLM_PARAM: "O parâmetro '{param}' é inválido",
|
|
49
|
+
AGENT_1005_INVALID_KNOWLEDGE_SOURCE_ID: 'Fonte de conhecimento inválida',
|
|
50
|
+
AGENT_1006_INVALID_LLM_PARAM_VALUE_TYPE: 'Valor do parâmetro LLM é inválido',
|
|
51
|
+
AGENT_1007_LLM_PARAM_VALUE_IS_REQUIRED: 'Valor do parâmetro LLM é obrigatório',
|
|
52
|
+
AGENT_1008_INVALID_ULID_FOR_MODEL_ID: 'ULID inválido fornecido para o ID do modelo',
|
|
53
|
+
AGENT_1009_INVALID_STRUCTURE_OUTPUT_SCHEMA: 'O schema de saída da estrutura é inválido. Por favor, verifique nossa documentação ou entre em contato com o suporte',
|
|
54
|
+
AGENT_1010_STRUCTURED_OUTPUT_SCHEMA_CONTAINS_INVALID_DATA: 'Seu schema de saída da estrutura contém dados inválidos. Por favor, verifique nossa documentação ou entre em contato com o suporte',
|
|
55
|
+
AGENT_1011_AGENT_WITH_SLUG_ALREADY_EXISTS: 'Já existe um agente com este slug',
|
|
56
|
+
AGENT_1013_INVALID_VISIBILITY: 'Visibilidade inválida',
|
|
57
|
+
AGENT_1015_AGENT_HAS_PERSONAL_SECRET_TOOL: 'Não é possível publicar este agente, pois ele possui uma ferramenta com segredo pessoal',
|
|
58
|
+
AGENT_2002_INVALID_VISIBILITY_CHANGE: 'Não é possível alterar a visibilidade',
|
|
59
|
+
AGENT_2003_SECRETS_WITH_SAME_TYPE: 'Segredos do mesmo tipo não são permitidos.',
|
|
60
|
+
TOOL_1200_TOOL_IN_USE: 'Você possui uma ferramenta que já está em uso por um agente e, portanto, não pode ser removida.',
|
|
61
|
+
AGENT_1101_TOOLKIT_IN_USE: 'O toolkit já está em uso por um agente e, portanto, não pode ser removido.',
|
|
62
|
+
AGENT_1101_TOOLKIT_INVALID_CREDENTIAL_TYPE: 'Seu toolkit possui um tipo de autorização inválido. Apenas Client Credentials e API Key são aceitos.',
|
|
63
|
+
AGENT_1102_TOOLKIT_AUTHENTICATION_FAILED: 'Ocorreu um erro durante a autenticação no toolkit.',
|
|
64
|
+
AGENT_1105_TOOLKIT_WITH_PERSONAL_SECRET: 'Não é possível compartilhar o agente, pois ele possui uma ferramenta com segredo pessoal. Remova a ferramenta ou substitua por um segredo da organização.',
|
|
65
|
+
AGENT_1012_AGENT_NOT_FOUND: 'Agente com o ID informado não foi encontrado',
|
|
66
|
+
AGENT_1014_AGENT_TOOL_NOT_FOUND: 'Ferramenta do agente com o ID informado não foi encontrada',
|
|
67
|
+
AGENT_1100_TOOLKIT_NOT_FOUND: 'Toolkit com o ID informado não foi encontrado',
|
|
68
|
+
TOOL_1201_TOOL_NOT_FOUND: 'Ferramenta não encontrada',
|
|
69
|
+
TOOL_1202_INVALID_SUB_AGENT_ASSIGNMENT: 'Não é possível atribuir subagentes, este agente já é subagente de outro agente.',
|
|
70
|
+
TOOL_1203_INVALID_SUB_AGENT_SELF_ASSIGNMENT: 'O agente não pode ser atribuído como sua própria ferramenta. Por favor, selecione outro agente.',
|
|
71
|
+
TOOL_1204_INVALID_SUB_AGENT_AS_ORCHESTRATOR: 'Não é possível atribuir um agente orquestrador como subagente de outro orquestrador. Apenas delegação de agente em um único nível é suportada.',
|
|
72
|
+
AGENT_5000_UNEXPECTED_ERROR: 'Ocorreu um erro inesperado. Tente novamente mais tarde ou entre em contato com o suporte',
|
|
73
|
+
AGENT_2000_ACCOUNT_API_ERROR: 'Erro na integração com a API de Conta',
|
|
74
|
+
AGENT_2001_IAM_API_ERROR: 'Erro na integração com a API IAM',
|
|
75
|
+
},
|
|
76
|
+
} satisfies Dictionary
|