@acorex-platform/module-ai-management-client 0.0.38 → 0.0.48
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/fesm2022/acorex-platform-module-ai-management-client-contracts-entities-agent.mjs +30 -0
- package/fesm2022/acorex-platform-module-ai-management-client-contracts-entities-agent.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-ai-management-client-contracts-entities-assist.mjs +16 -0
- package/fesm2022/acorex-platform-module-ai-management-client-contracts-entities-assist.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-ai-management-client-contracts-entities-mcp-server.mjs +30 -0
- package/fesm2022/acorex-platform-module-ai-management-client-contracts-entities-mcp-server.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-ai-management-client-contracts-entities-model.mjs +52 -15
- package/fesm2022/acorex-platform-module-ai-management-client-contracts-entities-model.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-ai-management-client-contracts-entities-open-ai-endpoint.mjs +30 -0
- package/fesm2022/acorex-platform-module-ai-management-client-contracts-entities-open-ai-endpoint.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-ai-management-client-contracts-entities-rule.mjs +30 -0
- package/fesm2022/acorex-platform-module-ai-management-client-contracts-entities-rule.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-ai-management-client-contracts-entities-run-log.mjs +430 -0
- package/fesm2022/acorex-platform-module-ai-management-client-contracts-entities-run-log.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-ai-management-client-contracts-entities-skill.mjs +30 -0
- package/fesm2022/acorex-platform-module-ai-management-client-contracts-entities-skill.mjs.map +1 -1
- package/fesm2022/{acorex-platform-module-ai-management-client-contracts-entity-catalog-acorex-platform-module-ai-management-client-contracts-entity-catalog-oTY4z5q8.mjs → acorex-platform-module-ai-management-client-contracts-entity-catalog-acorex-platform-module-ai-management-client-contracts-entity-catalog-D8jl5iFT.mjs} +25 -8
- package/fesm2022/acorex-platform-module-ai-management-client-contracts-entity-catalog-acorex-platform-module-ai-management-client-contracts-entity-catalog-D8jl5iFT.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-ai-management-client-contracts-entity-catalog-agent.entity-C75X-uZh.mjs → acorex-platform-module-ai-management-client-contracts-entity-catalog-agent.entity-Dj7dZRjE.mjs} +16 -2
- package/fesm2022/acorex-platform-module-ai-management-client-contracts-entity-catalog-agent.entity-Dj7dZRjE.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-ai-management-client-contracts-entity-catalog-assist.entity-DrlJo7CZ.mjs → acorex-platform-module-ai-management-client-contracts-entity-catalog-assist.entity-DUlikO9I.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-ai-management-client-contracts-entity-catalog-assist.entity-DrlJo7CZ.mjs.map → acorex-platform-module-ai-management-client-contracts-entity-catalog-assist.entity-DUlikO9I.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-ai-management-client-contracts-entity-catalog-mcp-server.entity-UxFvQ92v.mjs → acorex-platform-module-ai-management-client-contracts-entity-catalog-mcp-server.entity-BVI_7IhH.mjs} +16 -2
- package/fesm2022/acorex-platform-module-ai-management-client-contracts-entity-catalog-mcp-server.entity-BVI_7IhH.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-ai-management-client-contracts-entity-catalog-model.entity-DEdFUAPx.mjs → acorex-platform-module-ai-management-client-contracts-entity-catalog-model.entity-Xd45s9xE.mjs} +38 -17
- package/fesm2022/acorex-platform-module-ai-management-client-contracts-entity-catalog-model.entity-Xd45s9xE.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-ai-management-client-contracts-entity-catalog-open-ai-endpoint.entity-CygH9dU_.mjs → acorex-platform-module-ai-management-client-contracts-entity-catalog-open-ai-endpoint.entity-CWsUMad_.mjs} +16 -2
- package/fesm2022/acorex-platform-module-ai-management-client-contracts-entity-catalog-open-ai-endpoint.entity-CWsUMad_.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-ai-management-client-contracts-entity-catalog-rule.entity-Ddul_n4_.mjs → acorex-platform-module-ai-management-client-contracts-entity-catalog-rule.entity-Z6wYZrFU.mjs} +16 -2
- package/fesm2022/acorex-platform-module-ai-management-client-contracts-entity-catalog-rule.entity-Z6wYZrFU.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-ai-management-client-contracts-entity-catalog-run-log.entity-B2PG0QN0.mjs +343 -0
- package/fesm2022/acorex-platform-module-ai-management-client-contracts-entity-catalog-run-log.entity-B2PG0QN0.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-ai-management-client-contracts-entity-catalog-skill.entity-CeMnKpRg.mjs → acorex-platform-module-ai-management-client-contracts-entity-catalog-skill.entity-sNsPtjnT.mjs} +16 -2
- package/fesm2022/acorex-platform-module-ai-management-client-contracts-entity-catalog-skill.entity-sNsPtjnT.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-ai-management-client-contracts-entity-catalog.mjs +1 -1
- package/fesm2022/acorex-platform-module-ai-management-client-contracts.mjs +598 -526
- package/fesm2022/acorex-platform-module-ai-management-client-contracts.mjs.map +1 -1
- package/fesm2022/{acorex-platform-module-ai-management-client-list-ai-query-registry-catalog.query-BX0uU1YX.mjs → acorex-platform-module-ai-management-client-list-ai-query-registry-catalog.query-BxL3pxzj.mjs} +3 -3
- package/fesm2022/acorex-platform-module-ai-management-client-list-ai-query-registry-catalog.query-BxL3pxzj.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-ai-management-client-local-entities.mjs +1 -0
- package/fesm2022/acorex-platform-module-ai-management-client-local-entities.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-ai-management-client.mjs +281 -117
- package/fesm2022/acorex-platform-module-ai-management-client.mjs.map +1 -1
- package/package.json +5 -1
- package/types/acorex-platform-module-ai-management-client-contracts-entities-run-log.d.ts +5 -0
- package/types/acorex-platform-module-ai-management-client-contracts.d.ts +149 -85
- package/types/acorex-platform-module-ai-management-client.d.ts +27 -19
- package/fesm2022/acorex-platform-module-ai-management-client-contracts-entity-catalog-acorex-platform-module-ai-management-client-contracts-entity-catalog-oTY4z5q8.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-ai-management-client-contracts-entity-catalog-agent.entity-C75X-uZh.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-ai-management-client-contracts-entity-catalog-mcp-server.entity-UxFvQ92v.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-ai-management-client-contracts-entity-catalog-model.entity-DEdFUAPx.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-ai-management-client-contracts-entity-catalog-open-ai-endpoint.entity-CygH9dU_.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-ai-management-client-contracts-entity-catalog-rule.entity-Ddul_n4_.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-ai-management-client-contracts-entity-catalog-skill.entity-CeMnKpRg.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-ai-management-client-list-ai-query-registry-catalog.query-BX0uU1YX.mjs.map +0 -1
|
@@ -1,7 +1,23 @@
|
|
|
1
1
|
import { AXPWidgetsList } from '@acorex-platform/framework-shared/core';
|
|
2
|
-
import { createAllQueryView, entityMasterCrudActions } from '@acorex-platform/framework-shared/entity';
|
|
3
|
-
import { R as RootConfig } from './acorex-platform-module-ai-management-client-contracts-entity-catalog-acorex-platform-module-ai-management-client-contracts-entity-catalog-
|
|
2
|
+
import { createAllQueryView, entityMasterCrudActions, entityMasterEditAction, entityMasterRecordActions } from '@acorex-platform/framework-shared/entity';
|
|
3
|
+
import { R as RootConfig } from './acorex-platform-module-ai-management-client-contracts-entity-catalog-acorex-platform-module-ai-management-client-contracts-entity-catalog-D8jl5iFT.mjs';
|
|
4
4
|
|
|
5
|
+
//#region ---- Imports ----
|
|
6
|
+
//#endregion
|
|
7
|
+
//#region ---- Constants ----
|
|
8
|
+
/** USD per 1M tokens. NumberBox defaults to 0 decimals, which turns 2.75 into 275. */
|
|
9
|
+
const PRICE_PER_MILLION_NUMBER_BOX = {
|
|
10
|
+
dataType: 'number',
|
|
11
|
+
interface: {
|
|
12
|
+
type: AXPWidgetsList.Editors.NumberBox,
|
|
13
|
+
options: {
|
|
14
|
+
minValue: 0,
|
|
15
|
+
decimals: 4,
|
|
16
|
+
spinButton: false,
|
|
17
|
+
},
|
|
18
|
+
},
|
|
19
|
+
nullable: true,
|
|
20
|
+
};
|
|
5
21
|
//#endregion
|
|
6
22
|
//#region ---- Entity ----
|
|
7
23
|
async function factoryModel() {
|
|
@@ -10,6 +26,20 @@ async function factoryModel() {
|
|
|
10
26
|
name: RootConfig.entities.model.name,
|
|
11
27
|
title: RootConfig.entities.model.title,
|
|
12
28
|
icon: RootConfig.entities.model.icon,
|
|
29
|
+
searchTags: [
|
|
30
|
+
'ai',
|
|
31
|
+
'model',
|
|
32
|
+
'llm',
|
|
33
|
+
'chat-model',
|
|
34
|
+
'gemini',
|
|
35
|
+
'openai',
|
|
36
|
+
'tokens',
|
|
37
|
+
'provider',
|
|
38
|
+
'مدل هوش مصنوعی',
|
|
39
|
+
'مدلهای هوش مصنوعی',
|
|
40
|
+
'هوش مصنوعی',
|
|
41
|
+
'چت',
|
|
42
|
+
],
|
|
13
43
|
plugins: [
|
|
14
44
|
{
|
|
15
45
|
name: 'disable',
|
|
@@ -165,30 +195,21 @@ async function factoryModel() {
|
|
|
165
195
|
title: '@ai-management:models.entities.model.fields.input-price-per-million.title',
|
|
166
196
|
description: '@ai-management:models.entities.model.fields.input-price-per-million.description',
|
|
167
197
|
groupId: 'model-configuration',
|
|
168
|
-
schema: {
|
|
169
|
-
interface: { type: AXPWidgetsList.Editors.NumberBox },
|
|
170
|
-
nullable: true,
|
|
171
|
-
},
|
|
198
|
+
schema: { ...PRICE_PER_MILLION_NUMBER_BOX },
|
|
172
199
|
},
|
|
173
200
|
{
|
|
174
201
|
name: 'outputPricePerMillion',
|
|
175
202
|
title: '@ai-management:models.entities.model.fields.output-price-per-million.title',
|
|
176
203
|
description: '@ai-management:models.entities.model.fields.output-price-per-million.description',
|
|
177
204
|
groupId: 'model-configuration',
|
|
178
|
-
schema: {
|
|
179
|
-
interface: { type: AXPWidgetsList.Editors.NumberBox },
|
|
180
|
-
nullable: true,
|
|
181
|
-
},
|
|
205
|
+
schema: { ...PRICE_PER_MILLION_NUMBER_BOX },
|
|
182
206
|
},
|
|
183
207
|
{
|
|
184
208
|
name: 'cachedInputPricePerMillion',
|
|
185
209
|
title: '@ai-management:models.entities.model.fields.cached-input-price-per-million.title',
|
|
186
210
|
description: '@ai-management:models.entities.model.fields.cached-input-price-per-million.description',
|
|
187
211
|
groupId: 'model-configuration',
|
|
188
|
-
schema: {
|
|
189
|
-
interface: { type: AXPWidgetsList.Editors.NumberBox },
|
|
190
|
-
nullable: true,
|
|
191
|
-
},
|
|
212
|
+
schema: { ...PRICE_PER_MILLION_NUMBER_BOX },
|
|
192
213
|
},
|
|
193
214
|
{
|
|
194
215
|
name: 'openAiEndpointIsDisabled',
|
|
@@ -261,10 +282,10 @@ async function factoryModel() {
|
|
|
261
282
|
{ name: 'outputPricePerMillion', layout: { positions: { lg: { colSpan: 4 } } } },
|
|
262
283
|
{ name: 'cachedInputPricePerMillion', layout: { positions: { lg: { colSpan: 4 } } } },
|
|
263
284
|
],
|
|
264
|
-
actions: [],
|
|
285
|
+
actions: [entityMasterEditAction(), ...entityMasterRecordActions()],
|
|
265
286
|
},
|
|
266
287
|
list: {
|
|
267
|
-
actions: [...entityMasterCrudActions()],
|
|
288
|
+
actions: [...entityMasterCrudActions({ edit: true })],
|
|
268
289
|
views: [createAllQueryView({ sorts: [{ name: 'name', dir: 'asc' }] })],
|
|
269
290
|
},
|
|
270
291
|
},
|
|
@@ -275,4 +296,4 @@ async function factoryModel() {
|
|
|
275
296
|
//#endregion
|
|
276
297
|
|
|
277
298
|
export { factoryModel };
|
|
278
|
-
//# sourceMappingURL=acorex-platform-module-ai-management-client-contracts-entity-catalog-model.entity-
|
|
299
|
+
//# sourceMappingURL=acorex-platform-module-ai-management-client-contracts-entity-catalog-model.entity-Xd45s9xE.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-ai-management-client-contracts-entity-catalog-model.entity-Xd45s9xE.mjs","sources":["../../../../libs/modules/ai-management/contracts/src/entities/model/model.entity.ts"],"sourcesContent":["//#region ---- Imports ----\nimport { AXPWidgetsList } from '@acorex-platform/framework-shared/core';\nimport {\n AXPEntity,\n createAllQueryView,\n entityMasterCrudActions,\n entityMasterEditAction,\n entityMasterRecordActions,\n} from '@acorex-platform/framework-shared/entity';\nimport { RootConfig } from '../../root-config';\n\n//#endregion\n\n//#region ---- Constants ----\n\n/** USD per 1M tokens. NumberBox defaults to 0 decimals, which turns 2.75 into 275. */\nconst PRICE_PER_MILLION_NUMBER_BOX = {\n dataType: 'number' as const,\n interface: {\n type: AXPWidgetsList.Editors.NumberBox,\n options: {\n minValue: 0,\n decimals: 4,\n spinButton: false,\n },\n },\n nullable: true,\n};\n\n//#endregion\n\n//#region ---- Entity ----\n\nexport async function factoryModel(): Promise<AXPEntity | null> {\n const entityDef: AXPEntity = {\n module: RootConfig.module.name,\n name: RootConfig.entities.model.name,\n title: RootConfig.entities.model.title,\n icon: RootConfig.entities.model.icon,\n searchTags: [\n 'ai',\n 'model',\n 'llm',\n 'chat-model',\n 'gemini',\n 'openai',\n 'tokens',\n 'provider',\n 'مدل هوش مصنوعی',\n 'مدلهای هوش مصنوعی',\n 'هوش مصنوعی',\n 'چت',\n ],\n plugins: [\n {\n name: 'disable',\n options: {\n disableFieldReadonly: '{{ context.eval(\"openAiEndpointIsDisabled\") === true }}',\n },\n },\n ],\n formats: {\n individual: RootConfig.entities.model.title,\n plural: RootConfig.entities.model.titlePlural,\n searchResult: {\n title: '{{ title }}',\n description: '{{ description }}',\n },\n },\n groups: [\n { id: 'basic-info', title: '@general:terms.interface.basic-info' },\n { id: 'model-configuration', title: '@ai-management:models.entities.model.groups.configuration.title' },\n ],\n properties: [\n {\n name: 'id',\n title: 'ID',\n groupId: 'basic-info',\n schema: { visible: false, nullable: false, readonly: true, unique: { enabled: true } },\n },\n {\n name: 'title',\n title: '@general:terms.common.title',\n groupId: 'basic-info',\n schema: { interface: { type: AXPWidgetsList.Editors.TextBox } },\n options: { sort: { enabled: true }, filter: { inline: { enabled: true }, advance: { enabled: true } } },\n },\n {\n name: 'description',\n title: '@general:terms.common.description',\n groupId: 'basic-info',\n schema: { interface: { type: AXPWidgetsList.Editors.LargeTextBox, options: { rows: 2 } } },\n options: { sort: { enabled: true }, filter: { inline: { enabled: true }, advance: { enabled: true } } },\n },\n {\n name: 'name',\n title: '@ai-management:models.entities.model.fields.api-model-id.title',\n groupId: 'model-configuration',\n schema: { interface: { type: AXPWidgetsList.Editors.TextBox } },\n options: { sort: { enabled: true }, filter: { inline: { enabled: true }, advance: { enabled: true } } },\n // validations: [{ rule: 'required' }],\n },\n {\n name: 'modelPurposes',\n title: '@ai-management:models.entities.model.fields.model-purposes.title',\n description: '@ai-management:models.entities.model.fields.model-purposes.description',\n groupId: 'model-configuration',\n schema: {\n defaultValue: ['chat'],\n nullable: true,\n interface: {\n type: AXPWidgetsList.Editors.TagEditor,\n options: {\n placeholder: '@ai-management:models.entities.model.fields.model-purposes.placeholder',\n allowDuplicate: false,\n },\n },\n },\n options: { filter: { inline: { enabled: true } } },\n },\n {\n name: 'chatTransport',\n title: '@ai-management:models.entities.model.fields.chat-transport.title',\n groupId: 'model-configuration',\n schema: {\n interface: {\n type: AXPWidgetsList.Editors.SelectBox,\n options: {\n valueField: 'value',\n textField: 'text',\n dataSource: [\n {\n value: 'gemini',\n text: '@ai-management:models.entities.model.fields.chat-transport.options.gemini',\n },\n {\n value: 'openai',\n text: '@ai-management:models.entities.model.fields.chat-transport.options.openai',\n },\n ],\n },\n triggers: [\n {\n event: \"{{ events.context('chatTransport') }}\",\n action:\n \"{{ const t = String(context.eval('chatTransport') ?? '').toLowerCase(); if (t === 'gemini') { context.set('openAiEndpointId', null); } }}\",\n },\n ],\n },\n },\n options: { filter: { inline: { enabled: true } } },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'openAiEndpointId',\n title: '@ai-management:models.entities.model.fields.open-ai-endpoint.title',\n description: '@ai-management:models.entities.model.fields.open-ai-endpoint.description',\n groupId: 'model-configuration',\n schema: {\n nullable: true,\n readonly:\n '{{ [\"gemini\",\"openai\",\"demis\"].includes(String(context.eval(\"chatTransport\") ?? \"\").toLowerCase()) }}',\n interface: {\n type: AXPWidgetsList.Editors.LookupBox,\n options: {\n entity: RootConfig.entities.openAiEndpoint.fullName,\n look: 'select',\n multiple: false,\n textField: 'title',\n valueField: 'id',\n },\n },\n },\n options: { filter: { inline: { enabled: true } } },\n },\n {\n name: 'maxContextTokens',\n title: '@ai-management:models.entities.model.fields.max-context-tokens.title',\n description: '@ai-management:models.entities.model.fields.max-context-tokens.description',\n groupId: 'model-configuration',\n schema: {\n interface: { type: AXPWidgetsList.Editors.NumberBox },\n nullable: true,\n },\n },\n {\n name: 'maxOutputTokens',\n title: '@ai-management:models.entities.model.fields.max-output-tokens.title',\n description: '@ai-management:models.entities.model.fields.max-output-tokens.description',\n groupId: 'model-configuration',\n schema: {\n interface: { type: AXPWidgetsList.Editors.NumberBox },\n nullable: true,\n },\n },\n {\n name: 'maxInputTokens',\n title: '@ai-management:models.entities.model.fields.max-input-tokens.title',\n description: '@ai-management:models.entities.model.fields.max-input-tokens.description',\n groupId: 'model-configuration',\n schema: {\n interface: { type: AXPWidgetsList.Editors.NumberBox },\n nullable: true,\n },\n },\n {\n name: 'inputPricePerMillion',\n title: '@ai-management:models.entities.model.fields.input-price-per-million.title',\n description: '@ai-management:models.entities.model.fields.input-price-per-million.description',\n groupId: 'model-configuration',\n schema: { ...PRICE_PER_MILLION_NUMBER_BOX },\n },\n {\n name: 'outputPricePerMillion',\n title: '@ai-management:models.entities.model.fields.output-price-per-million.title',\n description: '@ai-management:models.entities.model.fields.output-price-per-million.description',\n groupId: 'model-configuration',\n schema: { ...PRICE_PER_MILLION_NUMBER_BOX },\n },\n {\n name: 'cachedInputPricePerMillion',\n title: '@ai-management:models.entities.model.fields.cached-input-price-per-million.title',\n description: '@ai-management:models.entities.model.fields.cached-input-price-per-million.description',\n groupId: 'model-configuration',\n schema: { ...PRICE_PER_MILLION_NUMBER_BOX },\n },\n {\n name: 'openAiEndpointIsDisabled',\n title: '@ai-management:models.entities.model.fields.open-ai-endpoint-is-disabled.title',\n description: '@ai-management:models.entities.model.fields.open-ai-endpoint-is-disabled.description',\n groupId: 'model-configuration',\n schema: {\n visible: false,\n nullable: true,\n readonly: true,\n defaultValue: false,\n },\n },\n ],\n columns: [\n { name: 'name', title: '@ai-management:models.entities.model.fields.api-model-id.title', showAs: { type: AXPWidgetsList.Editors.TextBox } },\n { name: 'title', title: '@general:terms.common.title', showAs: { type: AXPWidgetsList.Editors.TextBox } },\n { name: 'chatTransport', title: '@ai-management:models.entities.model.fields.chat-transport.title', showAs: { type: AXPWidgetsList.Editors.TextBox } },\n ],\n interfaces: {\n master: {\n create: {\n sections: [{ id: 'basic-info' }, { id: 'model-configuration' }],\n properties: [\n { name: 'title', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'description', layout: { positions: { lg: { colSpan: 12 } } } },\n { name: 'name', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'modelPurposes', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'chatTransport', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'openAiEndpointId', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'maxContextTokens', layout: { positions: { lg: { colSpan: 4 } } } },\n { name: 'maxOutputTokens', layout: { positions: { lg: { colSpan: 4 } } } },\n { name: 'maxInputTokens', layout: { positions: { lg: { colSpan: 4 } } } },\n { name: 'inputPricePerMillion', layout: { positions: { lg: { colSpan: 4 } } } },\n { name: 'outputPricePerMillion', layout: { positions: { lg: { colSpan: 4 } } } },\n { name: 'cachedInputPricePerMillion', layout: { positions: { lg: { colSpan: 4 } } } },\n ],\n },\n update: {\n sections: [{ id: 'basic-info' }, { id: 'model-configuration' }],\n properties: [\n { name: 'title', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'description', layout: { positions: { lg: { colSpan: 12 } } } },\n { name: 'name', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'modelPurposes', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'chatTransport', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'openAiEndpointId', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'maxContextTokens', layout: { positions: { lg: { colSpan: 4 } } } },\n { name: 'maxOutputTokens', layout: { positions: { lg: { colSpan: 4 } } } },\n { name: 'maxInputTokens', layout: { positions: { lg: { colSpan: 4 } } } },\n { name: 'inputPricePerMillion', layout: { positions: { lg: { colSpan: 4 } } } },\n { name: 'outputPricePerMillion', layout: { positions: { lg: { colSpan: 4 } } } },\n { name: 'cachedInputPricePerMillion', layout: { positions: { lg: { colSpan: 4 } } } },\n ],\n },\n single: {\n title: '{{ name || modelId }}',\n sections: [{ id: 'basic-info' }, { id: 'model-configuration' }],\n properties: [\n { name: 'title', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'description', layout: { positions: { lg: { colSpan: 12 } } } },\n { name: 'name', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'modelPurposes', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'chatTransport', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'openAiEndpointId', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'maxContextTokens', layout: { positions: { lg: { colSpan: 4 } } } },\n { name: 'maxOutputTokens', layout: { positions: { lg: { colSpan: 4 } } } },\n { name: 'maxInputTokens', layout: { positions: { lg: { colSpan: 4 } } } },\n { name: 'inputPricePerMillion', layout: { positions: { lg: { colSpan: 4 } } } },\n { name: 'outputPricePerMillion', layout: { positions: { lg: { colSpan: 4 } } } },\n { name: 'cachedInputPricePerMillion', layout: { positions: { lg: { colSpan: 4 } } } },\n ],\n actions: [entityMasterEditAction(), ...entityMasterRecordActions()],\n },\n list: {\n actions: [...entityMasterCrudActions({ edit: true })],\n views: [createAllQueryView({ sorts: [{ name: 'name', dir: 'asc' }] })],\n },\n },\n },\n };\n return entityDef;\n}\n\n//#endregion\n"],"names":[],"mappings":";;;;AAAA;AAWA;AAEA;AAEA;AACA,MAAM,4BAA4B,GAAG;AACnC,IAAA,QAAQ,EAAE,QAAiB;AAC3B,IAAA,SAAS,EAAE;AACT,QAAA,IAAI,EAAE,cAAc,CAAC,OAAO,CAAC,SAAS;AACtC,QAAA,OAAO,EAAE;AACP,YAAA,QAAQ,EAAE,CAAC;AACX,YAAA,QAAQ,EAAE,CAAC;AACX,YAAA,UAAU,EAAE,KAAK;AAClB,SAAA;AACF,KAAA;AACD,IAAA,QAAQ,EAAE,IAAI;CACf;AAED;AAEA;AAEO,eAAe,YAAY,GAAA;AAChC,IAAA,MAAM,SAAS,GAAc;AAC3B,QAAA,MAAM,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI;AAC9B,QAAA,IAAI,EAAE,UAAU,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI;AACpC,QAAA,KAAK,EAAE,UAAU,CAAC,QAAQ,CAAC,KAAK,CAAC,KAAK;AACtC,QAAA,IAAI,EAAE,UAAU,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI;AACpC,QAAA,UAAU,EAAE;YACV,IAAI;YACJ,OAAO;YACP,KAAK;YACL,YAAY;YACZ,QAAQ;YACR,QAAQ;YACR,QAAQ;YACR,UAAU;YACV,gBAAgB;YAChB,oBAAoB;YACpB,YAAY;YACZ,IAAI;AACL,SAAA;AACD,QAAA,OAAO,EAAE;AACP,YAAA;AACE,gBAAA,IAAI,EAAE,SAAS;AACf,gBAAA,OAAO,EAAE;AACP,oBAAA,oBAAoB,EAAE,yDAAyD;AAChF,iBAAA;AACF,aAAA;AACF,SAAA;AACD,QAAA,OAAO,EAAE;AACP,YAAA,UAAU,EAAE,UAAU,CAAC,QAAQ,CAAC,KAAK,CAAC,KAAK;AAC3C,YA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,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC,CAAC;AACvE,iBAAA;AACF,aAAA;AACF,SAAA;KACF;AACD,IAAA,OAAO,SAAS;AAClB;AAEA;;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AXPWidgetsList } from '@acorex-platform/framework-shared/core';
|
|
2
2
|
import { createAllQueryView, entityMasterCrudActions } from '@acorex-platform/framework-shared/entity';
|
|
3
|
-
import { R as RootConfig } from './acorex-platform-module-ai-management-client-contracts-entity-catalog-acorex-platform-module-ai-management-client-contracts-entity-catalog-
|
|
3
|
+
import { R as RootConfig } from './acorex-platform-module-ai-management-client-contracts-entity-catalog-acorex-platform-module-ai-management-client-contracts-entity-catalog-D8jl5iFT.mjs';
|
|
4
4
|
|
|
5
5
|
//#endregion
|
|
6
6
|
//#region ---- Entity ----
|
|
@@ -10,6 +10,20 @@ async function openAiEndpointFactory() {
|
|
|
10
10
|
name: RootConfig.entities.openAiEndpoint.name,
|
|
11
11
|
title: RootConfig.entities.openAiEndpoint.title,
|
|
12
12
|
icon: RootConfig.entities.openAiEndpoint.icon,
|
|
13
|
+
searchTags: [
|
|
14
|
+
'ai',
|
|
15
|
+
'openai',
|
|
16
|
+
'open-ai-endpoint',
|
|
17
|
+
'api-endpoint',
|
|
18
|
+
'llm',
|
|
19
|
+
'chat-completions',
|
|
20
|
+
'provider',
|
|
21
|
+
'api-key',
|
|
22
|
+
'Endpoint OpenAI',
|
|
23
|
+
'Endpointهای OpenAI',
|
|
24
|
+
'هوش مصنوعی',
|
|
25
|
+
'اتصال',
|
|
26
|
+
],
|
|
13
27
|
plugins: [{ name: 'disable' }],
|
|
14
28
|
formats: {
|
|
15
29
|
individual: RootConfig.entities.openAiEndpoint.title,
|
|
@@ -129,4 +143,4 @@ async function openAiEndpointFactory() {
|
|
|
129
143
|
//#endregion
|
|
130
144
|
|
|
131
145
|
export { openAiEndpointFactory };
|
|
132
|
-
//# sourceMappingURL=acorex-platform-module-ai-management-client-contracts-entity-catalog-open-ai-endpoint.entity-
|
|
146
|
+
//# sourceMappingURL=acorex-platform-module-ai-management-client-contracts-entity-catalog-open-ai-endpoint.entity-CWsUMad_.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-ai-management-client-contracts-entity-catalog-open-ai-endpoint.entity-CWsUMad_.mjs","sources":["../../../../libs/modules/ai-management/contracts/src/entities/open-ai-endpoint/open-ai-endpoint.entity.ts"],"sourcesContent":["import { AXPWidgetsList } from '@acorex-platform/framework-shared/core';\nimport { AXPEntity, createAllQueryView, entityMasterCrudActions } from '@acorex-platform/framework-shared/entity';\n//#region ---- Imports ----\nimport { RootConfig } from '../../root-config';\n\n//#endregion\n\n//#region ---- Entity ----\n\nexport async function openAiEndpointFactory(): Promise<AXPEntity | null> {\n const entityDef: AXPEntity = {\n module: RootConfig.module.name,\n name: RootConfig.entities.openAiEndpoint.name,\n title: RootConfig.entities.openAiEndpoint.title,\n icon: RootConfig.entities.openAiEndpoint.icon,\n searchTags: [\n 'ai',\n 'openai',\n 'open-ai-endpoint',\n 'api-endpoint',\n 'llm',\n 'chat-completions',\n 'provider',\n 'api-key',\n 'Endpoint OpenAI',\n 'Endpointهای OpenAI',\n 'هوش مصنوعی',\n 'اتصال',\n ],\n plugins: [{ name: 'disable' }],\n formats: {\n individual: RootConfig.entities.openAiEndpoint.title,\n plural: RootConfig.entities.openAiEndpoint.titlePlural,\n searchResult: {\n title: '{{ title }}',\n description: '{{ description }}',\n },\n },\n groups: [\n { id: 'basic-info', title: '@general:terms.interface.basic-info' },\n { id: 'connection', title: '@ai-management:open-ai-endpoints.entities.endpoint.groups.connection.title' },\n ],\n properties: [\n {\n name: 'id',\n title: 'ID',\n groupId: 'basic-info',\n schema: { visible: false, nullable: false, readonly: true, unique: { enabled: true } },\n },\n {\n name: 'title',\n title: '@general:terms.common.title',\n groupId: 'basic-info',\n schema: { interface: { type: AXPWidgetsList.Editors.TextBox } },\n options: { sort: { enabled: true }, filter: { inline: { enabled: true } } },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'description',\n title: '@general:terms.common.description',\n groupId: 'basic-info',\n schema: { interface: { type: AXPWidgetsList.Editors.LargeTextBox, options: { rows: 2 } } },\n },\n {\n name: 'apiBase',\n title: '@ai-management:open-ai-endpoints.entities.endpoint.fields.api-base.title',\n description: '@ai-management:open-ai-endpoints.entities.endpoint.fields.api-base.description',\n groupId: 'connection',\n schema: { interface: { type: AXPWidgetsList.Editors.TextBox } },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'apiKey',\n title: '@ai-management:open-ai-endpoints.entities.endpoint.fields.api-key.title',\n description: '@ai-management:open-ai-endpoints.entities.endpoint.fields.api-key.description',\n groupId: 'connection',\n schema: { nullable: true, interface: { type: AXPWidgetsList.Editors.TextBox } },\n },\n {\n name: 'stream',\n title: '@ai-management:open-ai-endpoints.entities.endpoint.fields.stream.title',\n description: '@ai-management:open-ai-endpoints.entities.endpoint.fields.stream.description',\n groupId: 'connection',\n schema: {\n nullable: true,\n interface: { type: AXPWidgetsList.Editors.ToggleSwitch },\n },\n },\n ],\n columns: [\n { name: 'title', title: '@general:terms.common.title', showAs: { type: AXPWidgetsList.Editors.TextBox } },\n {\n name: 'apiBase',\n title: '@ai-management:open-ai-endpoints.entities.endpoint.fields.api-base.title',\n showAs: { type: AXPWidgetsList.Editors.TextBox },\n },\n {\n name: 'stream',\n title: '@ai-management:open-ai-endpoints.entities.endpoint.fields.stream.title',\n showAs: { type: AXPWidgetsList.Editors.ToggleSwitch },\n },\n ],\n interfaces: {\n master: {\n create: {\n sections: [{ id: 'basic-info' }, { id: 'connection' }],\n properties: [\n { name: 'title', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'description', layout: { positions: { lg: { colSpan: 12 } } } },\n { name: 'apiBase', layout: { positions: { lg: { colSpan: 12 } } } },\n { name: 'apiKey', layout: { positions: { lg: { colSpan: 12 } } } },\n { name: 'stream', layout: { positions: { lg: { colSpan: 12 } } } },\n ],\n },\n update: {\n sections: [{ id: 'basic-info' }, { id: 'connection' }],\n properties: [\n { name: 'title', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'description', layout: { positions: { lg: { colSpan: 12 } } } },\n { name: 'apiBase', layout: { positions: { lg: { colSpan: 12 } } } },\n { name: 'apiKey', layout: { positions: { lg: { colSpan: 12 } } } },\n { name: 'stream', layout: { positions: { lg: { colSpan: 12 } } } },\n ],\n },\n single: {\n title: '{{ title }}',\n sections: [{ id: 'basic-info' }, { id: 'connection' }],\n properties: [\n { name: 'title', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'description', layout: { positions: { lg: { colSpan: 12 } } } },\n { name: 'apiBase', layout: { positions: { lg: { colSpan: 12 } } } },\n { name: 'apiKey', layout: { positions: { lg: { colSpan: 12 } } } },\n { name: 'stream', layout: { positions: { lg: { colSpan: 12 } } } },\n ],\n actions: [],\n },\n list: {\n actions: [...entityMasterCrudActions()],\n views: [createAllQueryView({ sorts: [{ name: 'title', dir: 'asc' }] })],\n },\n },\n },\n };\n return entityDef;\n}\n\n//#endregion\n"],"names":[],"mappings":";;;;AAKA;AAEA;AAEO,eAAe,qBAAqB,GAAA;AACzC,IAAA,MAAM,SAAS,GAAc;AAC3B,QAAA,MAAM,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI;AAC9B,QAAA,IAAI,EAAE,UAAU,CAAC,QAAQ,CAAC,cAAc,CAAC,IAAI;AAC7C,QAAA,KAAK,EAAE,UAAU,CAAC,QAAQ,CAAC,cAAc,CAAC,KAAK;AAC/C,QAAA,IAAI,EAAE,UAAU,CAAC,QAAQ,CAAC,cAAc,CAAC,IAAI;AAC7C,QAAA,UAAU,EAAE;YACV,IAAI;YACJ,QAAQ;YACR,kBAAkB;YAClB,cAAc;YACd,KAAK;YACL,kBAAkB;YAClB,UAAU;YACV,SAAS;YACT,iBAAiB;YACjB,oBAAoB;YACpB,YAA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AI,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE;AAChE,wBAAA,EAAE,IAAI,EAAE,aAAa,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE;AACvE,wBAAA,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE;AACnE,wBAAA,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE;AAClE,wBAAA,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE;AACnE,qBAAA;AACD,oBAAA,OAAO,EAAE,EAAE;AACZ,iBAAA;AACD,gBAAA,IAAI,EAAE;AACJ,oBAAA,OAAO,EAAE,CAAC,GAAG,uBAAuB,EAAE,CAAC;oBACvC,KAAK,EAAE,CAAC,kBAAkB,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC,CAAC;AACxE,iBAAA;AACF,aAAA;AACF,SAAA;KACF;AACD,IAAA,OAAO,SAAS;AAClB;AAEA;;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AXPWidgetsList } from '@acorex-platform/framework-shared/core';
|
|
2
2
|
import { createAllQueryView, entityMasterCrudActions, entityMasterRecordActions } from '@acorex-platform/framework-shared/entity';
|
|
3
|
-
import { R as RootConfig } from './acorex-platform-module-ai-management-client-contracts-entity-catalog-acorex-platform-module-ai-management-client-contracts-entity-catalog-
|
|
3
|
+
import { R as RootConfig } from './acorex-platform-module-ai-management-client-contracts-entity-catalog-acorex-platform-module-ai-management-client-contracts-entity-catalog-D8jl5iFT.mjs';
|
|
4
4
|
|
|
5
5
|
//#endregion
|
|
6
6
|
//#region ---- Entity ----
|
|
@@ -10,6 +10,20 @@ async function ruleFactory() {
|
|
|
10
10
|
name: RootConfig.entities.rule.name,
|
|
11
11
|
title: RootConfig.entities.rule.title,
|
|
12
12
|
icon: RootConfig.entities.rule.icon,
|
|
13
|
+
searchTags: [
|
|
14
|
+
'ai',
|
|
15
|
+
'rule',
|
|
16
|
+
'system-prompt',
|
|
17
|
+
'prompt',
|
|
18
|
+
'instruction',
|
|
19
|
+
'markdown',
|
|
20
|
+
'behavior',
|
|
21
|
+
'guardrail',
|
|
22
|
+
'قانون',
|
|
23
|
+
'قوانین',
|
|
24
|
+
'هوش مصنوعی',
|
|
25
|
+
'پرامت',
|
|
26
|
+
],
|
|
13
27
|
formats: {
|
|
14
28
|
individual: RootConfig.entities.rule.title,
|
|
15
29
|
plural: RootConfig.entities.rule.titlePlural,
|
|
@@ -115,4 +129,4 @@ async function ruleFactory() {
|
|
|
115
129
|
//#endregion
|
|
116
130
|
|
|
117
131
|
export { ruleFactory };
|
|
118
|
-
//# sourceMappingURL=acorex-platform-module-ai-management-client-contracts-entity-catalog-rule.entity-
|
|
132
|
+
//# sourceMappingURL=acorex-platform-module-ai-management-client-contracts-entity-catalog-rule.entity-Z6wYZrFU.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-ai-management-client-contracts-entity-catalog-rule.entity-Z6wYZrFU.mjs","sources":["../../../../libs/modules/ai-management/contracts/src/entities/rule/rule.entity.ts"],"sourcesContent":["import { AXPWidgetsList } from '@acorex-platform/framework-shared/core';\nimport { AXPEntity, createAllQueryView, entityMasterCrudActions, entityMasterRecordActions } from '@acorex-platform/framework-shared/entity';\n//#region ---- Imports ----\nimport { RootConfig } from '../../root-config';\n\n//#endregion\n\n//#region ---- Entity ----\n\nexport async function ruleFactory(): Promise<AXPEntity | null> {\n const entityDef: AXPEntity = {\n module: RootConfig.module.name,\n name: RootConfig.entities.rule.name,\n title: RootConfig.entities.rule.title,\n icon: RootConfig.entities.rule.icon,\n searchTags: [\n 'ai',\n 'rule',\n 'system-prompt',\n 'prompt',\n 'instruction',\n 'markdown',\n 'behavior',\n 'guardrail',\n 'قانون',\n 'قوانین',\n 'هوش مصنوعی',\n 'پرامت',\n ],\n formats: {\n individual: RootConfig.entities.rule.title,\n plural: RootConfig.entities.rule.titlePlural,\n searchResult: {\n title: '{{ title }}',\n description: '{{ name }}',\n },\n },\n groups: [\n { id: 'basic-info', title: '@general:terms.interface.basic-info' },\n { id: 'rule-content', title: '@ai-management:rules.entities.rule.groups.rule-content' },\n ],\n properties: [\n {\n name: 'id',\n title: 'ID',\n groupId: 'basic-info',\n schema: { visible: false, nullable: false, readonly: true, unique: { enabled: true } },\n },\n {\n name: 'name',\n title: '@general:terms.common.name',\n groupId: 'basic-info',\n schema: { interface: { type: AXPWidgetsList.Editors.TextBox } },\n options: { sort: { enabled: true }, filter: { advance: { enabled: true }, inline: { enabled: true } } },\n validations: [{ rule: 'required' }, { rule: 'unique' }],\n description: '@ai-management:rules.entities.rule.fields.name.description',\n },\n {\n name: 'title',\n title: '@general:terms.common.title',\n groupId: 'basic-info',\n schema: { interface: { type: AXPWidgetsList.Editors.TextBox } },\n options: { sort: { enabled: true }, filter: { inline: { enabled: true } } },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'description',\n title: '@general:terms.common.description',\n groupId: 'basic-info',\n schema: { interface: { type: AXPWidgetsList.Editors.LargeTextBox, options: { rows: 3 } } },\n },\n {\n name: 'markdown',\n title: '@ai-management:rules.entities.rule.fields.markdown.title',\n description: '@ai-management:rules.entities.rule.fields.markdown.description',\n groupId: 'rule-content',\n schema: {\n interface: { type: AXPWidgetsList.Editors.LargeTextBox, options: { rows: 12 } },\n },\n validations: [{ rule: 'required' }],\n },\n ],\n columns: [\n { name: 'name', title: '@general:terms.common.name', showAs: { type: AXPWidgetsList.Editors.TextBox } },\n { name: 'title', title: '@general:terms.common.title', showAs: { type: AXPWidgetsList.Editors.TextBox } },\n {\n name: 'description',\n title: '@general:terms.common.description',\n showAs: { type: AXPWidgetsList.Editors.TextBox },\n },\n ],\n interfaces: {\n master: {\n create: {\n sections: [{ id: 'basic-info' }, { id: 'rule-content' }],\n properties: [\n { name: 'name', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'title', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'description', layout: { positions: { lg: { colSpan: 12 } } } },\n { name: 'markdown', layout: { positions: { lg: { colSpan: 12 } } } },\n ],\n },\n update: {\n sections: [{ id: 'basic-info' }, { id: 'rule-content' }],\n properties: [\n { name: 'name', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'title', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'description', layout: { positions: { lg: { colSpan: 12 } } } },\n { name: 'markdown', layout: { positions: { lg: { colSpan: 12 } } } },\n ],\n },\n single: {\n title: '{{ title }}',\n sections: [{ id: 'basic-info' }, { id: 'rule-content' }],\n properties: [\n { name: 'name', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'title', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'description', layout: { positions: { lg: { colSpan: 12 } } } },\n { name: 'markdown', layout: { positions: { lg: { colSpan: 12 } } } },\n ],\n actions: [...entityMasterRecordActions()],\n },\n list: {\n actions: [...entityMasterCrudActions()],\n views: [createAllQueryView({ sorts: [{ name: 'name', dir: 'asc' }] })],\n },\n },\n },\n };\n return entityDef;\n}\n\n//#endregion\n"],"names":[],"mappings":";;;;AAKA;AAEA;AAEO,eAAe,WAAW,GAAA;AAC/B,IAAA,MAAM,SAAS,GAAc;AAC3B,QAAA,MAAM,EAAE,UAAU,CAAC,MAAM,CAAC,I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AAU,EAAE;AACV,wBAAA,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE;AAC/D,wBAAA,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE;AAChE,wBAAA,EAAE,IAAI,EAAE,aAAa,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE;AACvE,wBAAA,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE;AACrE,qBAAA;AACD,oBAAA,OAAO,EAAE,CAAC,GAAG,yBAAyB,EAAE,CAAC;AAC1C,iBAAA;AACD,gBAAA,IAAI,EAAE;AACJ,oBAAA,OAAO,EAAE,CAAC,GAAG,uBAAuB,EAAE,CAAC;oBACvC,KAAK,EAAE,CAAC,kBAAkB,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC,CAAC;AACvE,iBAAA;AACF,aAAA;AACF,SAAA;KACF;AACD,IAAA,OAAO,SAAS;AAClB;AAEA;;"}
|
|
@@ -0,0 +1,343 @@
|
|
|
1
|
+
import { AXPWidgetsList } from '@acorex-platform/framework-shared/core';
|
|
2
|
+
import { createAllQueryView, entityMasterCrudActions } from '@acorex-platform/framework-shared/entity';
|
|
3
|
+
import { R as RootConfig } from './acorex-platform-module-ai-management-client-contracts-entity-catalog-acorex-platform-module-ai-management-client-contracts-entity-catalog-D8jl5iFT.mjs';
|
|
4
|
+
|
|
5
|
+
//#region ----- Imports -----
|
|
6
|
+
//#endregion
|
|
7
|
+
//#region ----- Constants -----
|
|
8
|
+
const TOKEN_NUMBER_BOX = {
|
|
9
|
+
dataType: 'number',
|
|
10
|
+
interface: {
|
|
11
|
+
type: AXPWidgetsList.Editors.NumberBox,
|
|
12
|
+
options: { minValue: 0, decimals: 0, spinButton: false },
|
|
13
|
+
},
|
|
14
|
+
};
|
|
15
|
+
const COST_NUMBER_BOX = {
|
|
16
|
+
dataType: 'number',
|
|
17
|
+
interface: {
|
|
18
|
+
type: AXPWidgetsList.Editors.NumberBox,
|
|
19
|
+
options: { minValue: 0, decimals: 6, spinButton: false },
|
|
20
|
+
},
|
|
21
|
+
};
|
|
22
|
+
const PRICE_PER_MILLION_NUMBER_BOX = {
|
|
23
|
+
dataType: 'number',
|
|
24
|
+
interface: {
|
|
25
|
+
type: AXPWidgetsList.Editors.NumberBox,
|
|
26
|
+
options: { minValue: 0, decimals: 4, spinButton: false },
|
|
27
|
+
},
|
|
28
|
+
nullable: true,
|
|
29
|
+
};
|
|
30
|
+
//#endregion
|
|
31
|
+
//#region ----- Entity -----
|
|
32
|
+
async function runLogFactory() {
|
|
33
|
+
const entityDef = {
|
|
34
|
+
module: RootConfig.module.name,
|
|
35
|
+
name: RootConfig.entities.runLog.name,
|
|
36
|
+
title: RootConfig.entities.runLog.title,
|
|
37
|
+
icon: RootConfig.entities.runLog.icon,
|
|
38
|
+
searchTags: [
|
|
39
|
+
'ai',
|
|
40
|
+
'usage',
|
|
41
|
+
'tokens',
|
|
42
|
+
'cost',
|
|
43
|
+
'telemetry',
|
|
44
|
+
'run-log',
|
|
45
|
+
'مصرف توکن',
|
|
46
|
+
'هزینه',
|
|
47
|
+
'هوش مصنوعی',
|
|
48
|
+
],
|
|
49
|
+
formats: {
|
|
50
|
+
individual: RootConfig.entities.runLog.title,
|
|
51
|
+
plural: RootConfig.entities.runLog.titlePlural,
|
|
52
|
+
searchResult: {
|
|
53
|
+
title: '{{ assistTitle || assistName }}',
|
|
54
|
+
description: '{{ modelTitle || modelName }} · {{ totalTokens }}',
|
|
55
|
+
},
|
|
56
|
+
},
|
|
57
|
+
groups: [
|
|
58
|
+
{ id: 'basic-info', title: '@general:terms.interface.basic-info' },
|
|
59
|
+
{ id: 'usage', title: '@ai-management:run-logs.entities.run-log.groups.usage' },
|
|
60
|
+
],
|
|
61
|
+
properties: [
|
|
62
|
+
{
|
|
63
|
+
name: 'id',
|
|
64
|
+
title: 'ID',
|
|
65
|
+
groupId: 'basic-info',
|
|
66
|
+
schema: { visible: false, nullable: false, readonly: true, unique: { enabled: true } },
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
name: 'occurredAt',
|
|
70
|
+
title: '@ai-management:run-logs.entities.run-log.fields.occurred-at.title',
|
|
71
|
+
groupId: 'basic-info',
|
|
72
|
+
schema: {
|
|
73
|
+
interface: { type: AXPWidgetsList.Editors.DateTimeBox, options: { format: 'datetime' } },
|
|
74
|
+
},
|
|
75
|
+
options: { sort: { enabled: true }, filter: { inline: { enabled: true }, advance: { enabled: true } } },
|
|
76
|
+
validations: [{ rule: 'required' }],
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
name: 'runId',
|
|
80
|
+
title: '@ai-management:run-logs.entities.run-log.fields.run-id.title',
|
|
81
|
+
groupId: 'basic-info',
|
|
82
|
+
schema: { nullable: true, readonly: true, interface: { type: AXPWidgetsList.Editors.TextBox } },
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
name: 'status',
|
|
86
|
+
title: '@ai-management:run-logs.entities.run-log.fields.status.title',
|
|
87
|
+
groupId: 'basic-info',
|
|
88
|
+
schema: {
|
|
89
|
+
interface: {
|
|
90
|
+
type: AXPWidgetsList.Editors.SelectBox,
|
|
91
|
+
options: {
|
|
92
|
+
valueField: 'value',
|
|
93
|
+
textField: 'text',
|
|
94
|
+
dataSource: [
|
|
95
|
+
{
|
|
96
|
+
value: 'success',
|
|
97
|
+
text: '@ai-management:run-logs.entities.run-log.fields.status.options.success',
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
value: 'error',
|
|
101
|
+
text: '@ai-management:run-logs.entities.run-log.fields.status.options.error',
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
value: 'aborted',
|
|
105
|
+
text: '@ai-management:run-logs.entities.run-log.fields.status.options.aborted',
|
|
106
|
+
},
|
|
107
|
+
],
|
|
108
|
+
},
|
|
109
|
+
},
|
|
110
|
+
},
|
|
111
|
+
options: { filter: { inline: { enabled: true }, advance: { enabled: true } } },
|
|
112
|
+
validations: [{ rule: 'required' }],
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
name: 'userId',
|
|
116
|
+
title: '@ai-management:run-logs.entities.run-log.fields.user.title',
|
|
117
|
+
groupId: 'basic-info',
|
|
118
|
+
schema: {
|
|
119
|
+
nullable: true,
|
|
120
|
+
interface: {
|
|
121
|
+
type: AXPWidgetsList.Editors.LookupBox,
|
|
122
|
+
options: {
|
|
123
|
+
entity: 'SecurityManagement.User',
|
|
124
|
+
look: 'select',
|
|
125
|
+
multiple: false,
|
|
126
|
+
textField: 'displayName',
|
|
127
|
+
valueField: 'id',
|
|
128
|
+
},
|
|
129
|
+
},
|
|
130
|
+
},
|
|
131
|
+
options: { filter: { inline: { enabled: true }, advance: { enabled: true } } },
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
name: 'userDisplayName',
|
|
135
|
+
title: '@ai-management:run-logs.entities.run-log.fields.user-display-name.title',
|
|
136
|
+
groupId: 'basic-info',
|
|
137
|
+
schema: { nullable: true, readonly: true, interface: { type: AXPWidgetsList.Editors.TextBox } },
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
name: 'assistId',
|
|
141
|
+
title: '@ai-management:run-logs.entities.run-log.fields.assist.title',
|
|
142
|
+
groupId: 'basic-info',
|
|
143
|
+
schema: {
|
|
144
|
+
nullable: true,
|
|
145
|
+
interface: {
|
|
146
|
+
type: AXPWidgetsList.Editors.LookupBox,
|
|
147
|
+
options: {
|
|
148
|
+
entity: RootConfig.entities.assist.fullName,
|
|
149
|
+
look: 'select',
|
|
150
|
+
multiple: false,
|
|
151
|
+
textField: 'title',
|
|
152
|
+
valueField: 'id',
|
|
153
|
+
},
|
|
154
|
+
},
|
|
155
|
+
},
|
|
156
|
+
options: { filter: { inline: { enabled: true }, advance: { enabled: true } } },
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
name: 'assistName',
|
|
160
|
+
title: '@ai-management:run-logs.entities.run-log.fields.assist-name.title',
|
|
161
|
+
groupId: 'basic-info',
|
|
162
|
+
schema: { nullable: true, readonly: true, interface: { type: AXPWidgetsList.Editors.TextBox } },
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
name: 'assistTitle',
|
|
166
|
+
title: '@ai-management:run-logs.entities.run-log.fields.assist-title.title',
|
|
167
|
+
groupId: 'basic-info',
|
|
168
|
+
schema: { nullable: true, readonly: true, interface: { type: AXPWidgetsList.Editors.TextBox } },
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
name: 'modelId',
|
|
172
|
+
title: '@ai-management:run-logs.entities.run-log.fields.model.title',
|
|
173
|
+
groupId: 'basic-info',
|
|
174
|
+
schema: {
|
|
175
|
+
nullable: true,
|
|
176
|
+
interface: {
|
|
177
|
+
type: AXPWidgetsList.Editors.LookupBox,
|
|
178
|
+
options: {
|
|
179
|
+
entity: RootConfig.entities.model.fullName,
|
|
180
|
+
look: 'select',
|
|
181
|
+
multiple: false,
|
|
182
|
+
textField: 'title',
|
|
183
|
+
valueField: 'id',
|
|
184
|
+
},
|
|
185
|
+
},
|
|
186
|
+
},
|
|
187
|
+
options: { filter: { inline: { enabled: true }, advance: { enabled: true } } },
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
name: 'modelName',
|
|
191
|
+
title: '@ai-management:run-logs.entities.run-log.fields.model-name.title',
|
|
192
|
+
groupId: 'basic-info',
|
|
193
|
+
schema: { nullable: true, readonly: true, interface: { type: AXPWidgetsList.Editors.TextBox } },
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
name: 'modelTitle',
|
|
197
|
+
title: '@ai-management:run-logs.entities.run-log.fields.model-title.title',
|
|
198
|
+
groupId: 'basic-info',
|
|
199
|
+
schema: { nullable: true, readonly: true, interface: { type: AXPWidgetsList.Editors.TextBox } },
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
name: 'chatTransport',
|
|
203
|
+
title: '@ai-management:run-logs.entities.run-log.fields.chat-transport.title',
|
|
204
|
+
groupId: 'basic-info',
|
|
205
|
+
schema: {
|
|
206
|
+
nullable: true,
|
|
207
|
+
interface: {
|
|
208
|
+
type: AXPWidgetsList.Editors.SelectBox,
|
|
209
|
+
options: {
|
|
210
|
+
valueField: 'value',
|
|
211
|
+
textField: 'text',
|
|
212
|
+
dataSource: [
|
|
213
|
+
{
|
|
214
|
+
value: 'gemini',
|
|
215
|
+
text: '@ai-management:models.entities.model.fields.chat-transport.options.gemini',
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
value: 'openai',
|
|
219
|
+
text: '@ai-management:models.entities.model.fields.chat-transport.options.openai',
|
|
220
|
+
},
|
|
221
|
+
],
|
|
222
|
+
},
|
|
223
|
+
},
|
|
224
|
+
},
|
|
225
|
+
options: { filter: { inline: { enabled: true }, advance: { enabled: true } } },
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
name: 'promptTokens',
|
|
229
|
+
title: '@ai-management:run-logs.entities.run-log.fields.prompt-tokens.title',
|
|
230
|
+
groupId: 'usage',
|
|
231
|
+
schema: { ...TOKEN_NUMBER_BOX },
|
|
232
|
+
options: { sort: { enabled: true } },
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
name: 'completionTokens',
|
|
236
|
+
title: '@ai-management:run-logs.entities.run-log.fields.completion-tokens.title',
|
|
237
|
+
groupId: 'usage',
|
|
238
|
+
schema: { ...TOKEN_NUMBER_BOX },
|
|
239
|
+
options: { sort: { enabled: true } },
|
|
240
|
+
},
|
|
241
|
+
{
|
|
242
|
+
name: 'totalTokens',
|
|
243
|
+
title: '@ai-management:run-logs.entities.run-log.fields.total-tokens.title',
|
|
244
|
+
groupId: 'usage',
|
|
245
|
+
schema: { ...TOKEN_NUMBER_BOX },
|
|
246
|
+
options: { sort: { enabled: true } },
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
name: 'estimatedCostUsd',
|
|
250
|
+
title: '@ai-management:run-logs.entities.run-log.fields.estimated-cost-usd.title',
|
|
251
|
+
groupId: 'usage',
|
|
252
|
+
schema: { ...COST_NUMBER_BOX },
|
|
253
|
+
options: { sort: { enabled: true } },
|
|
254
|
+
},
|
|
255
|
+
{
|
|
256
|
+
name: 'inputPricePerMillion',
|
|
257
|
+
title: '@ai-management:models.entities.model.fields.input-price-per-million.title',
|
|
258
|
+
groupId: 'usage',
|
|
259
|
+
schema: { ...PRICE_PER_MILLION_NUMBER_BOX, readonly: true },
|
|
260
|
+
},
|
|
261
|
+
{
|
|
262
|
+
name: 'outputPricePerMillion',
|
|
263
|
+
title: '@ai-management:models.entities.model.fields.output-price-per-million.title',
|
|
264
|
+
groupId: 'usage',
|
|
265
|
+
schema: { ...PRICE_PER_MILLION_NUMBER_BOX, readonly: true },
|
|
266
|
+
},
|
|
267
|
+
],
|
|
268
|
+
columns: [
|
|
269
|
+
{ name: 'occurredAt', title: '@ai-management:run-logs.entities.run-log.fields.occurred-at.title' },
|
|
270
|
+
{ name: 'assistTitle', title: '@ai-management:run-logs.entities.run-log.fields.assist-title.title' },
|
|
271
|
+
{ name: 'modelTitle', title: '@ai-management:run-logs.entities.run-log.fields.model-title.title' },
|
|
272
|
+
{ name: 'userDisplayName', title: '@ai-management:run-logs.entities.run-log.fields.user-display-name.title' },
|
|
273
|
+
{ name: 'totalTokens', title: '@ai-management:run-logs.entities.run-log.fields.total-tokens.title' },
|
|
274
|
+
{ name: 'estimatedCostUsd', title: '@ai-management:run-logs.entities.run-log.fields.estimated-cost-usd.title' },
|
|
275
|
+
{ name: 'status', title: '@ai-management:run-logs.entities.run-log.fields.status.title' },
|
|
276
|
+
],
|
|
277
|
+
interfaces: {
|
|
278
|
+
master: {
|
|
279
|
+
create: {
|
|
280
|
+
sections: [{ id: 'basic-info' }, { id: 'usage' }],
|
|
281
|
+
properties: [
|
|
282
|
+
{ name: 'occurredAt', layout: { positions: { lg: { colSpan: 6 } } } },
|
|
283
|
+
{ name: 'status', layout: { positions: { lg: { colSpan: 6 } } } },
|
|
284
|
+
{ name: 'userId', layout: { positions: { lg: { colSpan: 6 } } } },
|
|
285
|
+
{ name: 'assistId', layout: { positions: { lg: { colSpan: 6 } } } },
|
|
286
|
+
{ name: 'modelId', layout: { positions: { lg: { colSpan: 6 } } } },
|
|
287
|
+
{ name: 'chatTransport', layout: { positions: { lg: { colSpan: 6 } } } },
|
|
288
|
+
{ name: 'promptTokens', layout: { positions: { lg: { colSpan: 4 } } } },
|
|
289
|
+
{ name: 'completionTokens', layout: { positions: { lg: { colSpan: 4 } } } },
|
|
290
|
+
{ name: 'totalTokens', layout: { positions: { lg: { colSpan: 4 } } } },
|
|
291
|
+
{ name: 'estimatedCostUsd', layout: { positions: { lg: { colSpan: 6 } } } },
|
|
292
|
+
],
|
|
293
|
+
},
|
|
294
|
+
update: {
|
|
295
|
+
sections: [{ id: 'basic-info' }, { id: 'usage' }],
|
|
296
|
+
properties: [
|
|
297
|
+
{ name: 'occurredAt', layout: { positions: { lg: { colSpan: 6 } } } },
|
|
298
|
+
{ name: 'status', layout: { positions: { lg: { colSpan: 6 } } } },
|
|
299
|
+
{ name: 'userId', layout: { positions: { lg: { colSpan: 6 } } } },
|
|
300
|
+
{ name: 'assistId', layout: { positions: { lg: { colSpan: 6 } } } },
|
|
301
|
+
{ name: 'modelId', layout: { positions: { lg: { colSpan: 6 } } } },
|
|
302
|
+
{ name: 'chatTransport', layout: { positions: { lg: { colSpan: 6 } } } },
|
|
303
|
+
{ name: 'promptTokens', layout: { positions: { lg: { colSpan: 4 } } } },
|
|
304
|
+
{ name: 'completionTokens', layout: { positions: { lg: { colSpan: 4 } } } },
|
|
305
|
+
{ name: 'totalTokens', layout: { positions: { lg: { colSpan: 4 } } } },
|
|
306
|
+
{ name: 'estimatedCostUsd', layout: { positions: { lg: { colSpan: 6 } } } },
|
|
307
|
+
],
|
|
308
|
+
},
|
|
309
|
+
single: {
|
|
310
|
+
title: '{{ assistTitle || assistName }}',
|
|
311
|
+
sections: [{ id: 'basic-info' }, { id: 'usage' }],
|
|
312
|
+
properties: [
|
|
313
|
+
{ name: 'occurredAt', layout: { positions: { lg: { colSpan: 6 } } } },
|
|
314
|
+
{ name: 'status', layout: { positions: { lg: { colSpan: 6 } } } },
|
|
315
|
+
{ name: 'runId', layout: { positions: { lg: { colSpan: 6 } } } },
|
|
316
|
+
{ name: 'userDisplayName', layout: { positions: { lg: { colSpan: 6 } } } },
|
|
317
|
+
{ name: 'assistTitle', layout: { positions: { lg: { colSpan: 6 } } } },
|
|
318
|
+
{ name: 'assistName', layout: { positions: { lg: { colSpan: 6 } } } },
|
|
319
|
+
{ name: 'modelTitle', layout: { positions: { lg: { colSpan: 6 } } } },
|
|
320
|
+
{ name: 'modelName', layout: { positions: { lg: { colSpan: 6 } } } },
|
|
321
|
+
{ name: 'chatTransport', layout: { positions: { lg: { colSpan: 6 } } } },
|
|
322
|
+
{ name: 'promptTokens', layout: { positions: { lg: { colSpan: 4 } } } },
|
|
323
|
+
{ name: 'completionTokens', layout: { positions: { lg: { colSpan: 4 } } } },
|
|
324
|
+
{ name: 'totalTokens', layout: { positions: { lg: { colSpan: 4 } } } },
|
|
325
|
+
{ name: 'estimatedCostUsd', layout: { positions: { lg: { colSpan: 6 } } } },
|
|
326
|
+
{ name: 'inputPricePerMillion', layout: { positions: { lg: { colSpan: 6 } } } },
|
|
327
|
+
{ name: 'outputPricePerMillion', layout: { positions: { lg: { colSpan: 6 } } } },
|
|
328
|
+
],
|
|
329
|
+
actions: [],
|
|
330
|
+
},
|
|
331
|
+
list: {
|
|
332
|
+
actions: [...entityMasterCrudActions({ create: false, delete: false, view: true })],
|
|
333
|
+
views: [createAllQueryView({ sorts: [{ name: 'occurredAt', dir: 'desc' }] })],
|
|
334
|
+
},
|
|
335
|
+
},
|
|
336
|
+
},
|
|
337
|
+
};
|
|
338
|
+
return entityDef;
|
|
339
|
+
}
|
|
340
|
+
//#endregion
|
|
341
|
+
|
|
342
|
+
export { runLogFactory };
|
|
343
|
+
//# sourceMappingURL=acorex-platform-module-ai-management-client-contracts-entity-catalog-run-log.entity-B2PG0QN0.mjs.map
|