@stack-spot/portal-network 0.173.0 → 1.0.0-betaadp.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 +9 -0
- 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/client/adp-mock.d.ts +87 -0
- package/dist/client/adp-mock.d.ts.map +1 -0
- package/dist/client/adp-mock.js +246 -0
- package/dist/client/adp-mock.js.map +1 -0
- 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/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/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/package.json +6 -6
- package/src/api/agent-tools.ts +1 -0
- package/src/api/ai.ts +2 -1
- package/src/client/adp-mock.ts +240 -0
- package/src/client/agent-tools.ts +4 -8
- package/src/client/ai.ts +3 -3
- package/src/error/dictionary/agent-tools.ts +76 -0
- package/src/index.ts +1 -0
|
@@ -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
|
package/src/index.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export { CancelledError } from '@tanstack/react-query'
|
|
2
2
|
export { apiAddresses, getApiAddresses, getBaseUrlWithOverride, setApisOverride } from './api-addresses'
|
|
3
3
|
export { accountClient } from './client/account'
|
|
4
|
+
export * from './client/adp-mock'
|
|
4
5
|
export { agentClient } from './client/agent'
|
|
5
6
|
export { agentToolsClient } from './client/agent-tools'
|
|
6
7
|
export { aiClient } from './client/ai'
|