@acorex/connectivity 21.0.0-next.67 → 21.0.0-next.70
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-connectivity-mock-acorex-connectivity-mock-0h4KR9DL.mjs → acorex-connectivity-mock-acorex-connectivity-mock-DXJDJBvf.mjs} +214 -17
- package/fesm2022/acorex-connectivity-mock-acorex-connectivity-mock-DXJDJBvf.mjs.map +1 -0
- package/fesm2022/{acorex-connectivity-mock-assign-to-manager.activity-DR_QQMhA.mjs → acorex-connectivity-mock-assign-to-manager.activity-B-ZAFQQM.mjs} +2 -2
- package/fesm2022/{acorex-connectivity-mock-assign-to-manager.activity-DR_QQMhA.mjs.map → acorex-connectivity-mock-assign-to-manager.activity-B-ZAFQQM.mjs.map} +1 -1
- package/fesm2022/{acorex-connectivity-mock-chat-generate-image.command-D6J0xCjZ.mjs → acorex-connectivity-mock-chat-generate-image.command-DBn-KZft.mjs} +2 -2
- package/fesm2022/{acorex-connectivity-mock-chat-generate-image.command-D6J0xCjZ.mjs.map → acorex-connectivity-mock-chat-generate-image.command-DBn-KZft.mjs.map} +1 -1
- package/fesm2022/{acorex-connectivity-mock-chat-synthesize-speech.command-D66e7J-F.mjs → acorex-connectivity-mock-chat-synthesize-speech.command-CdhGiZsU.mjs} +2 -2
- package/fesm2022/{acorex-connectivity-mock-chat-synthesize-speech.command-D66e7J-F.mjs.map → acorex-connectivity-mock-chat-synthesize-speech.command-CdhGiZsU.mjs.map} +1 -1
- package/fesm2022/{acorex-connectivity-mock-chat-transcribe-speech.command-D_mclluL.mjs → acorex-connectivity-mock-chat-transcribe-speech.command-D3om-6Pi.mjs} +2 -2
- package/fesm2022/{acorex-connectivity-mock-chat-transcribe-speech.command-D_mclluL.mjs.map → acorex-connectivity-mock-chat-transcribe-speech.command-D3om-6Pi.mjs.map} +1 -1
- package/fesm2022/{acorex-connectivity-mock-user-roles-for-list-column.query-BLkdnyel.mjs → acorex-connectivity-mock-user-roles-for-list-column.query-B_duq_t1.mjs} +2 -2
- package/fesm2022/{acorex-connectivity-mock-user-roles-for-list-column.query-BLkdnyel.mjs.map → acorex-connectivity-mock-user-roles-for-list-column.query-B_duq_t1.mjs.map} +1 -1
- package/fesm2022/acorex-connectivity-mock.mjs +1 -1
- package/package.json +2 -2
- package/types/acorex-connectivity-mock.d.ts +4 -0
- package/fesm2022/acorex-connectivity-mock-acorex-connectivity-mock-0h4KR9DL.mjs.map +0 -1
|
@@ -13208,6 +13208,7 @@ const AXMAiOpenAiEndpointStableIds = {
|
|
|
13208
13208
|
//#region ---- Mock API key decoding ----
|
|
13209
13209
|
/** Base64-encoded demo secret for OpenAI (direct) mock row. */
|
|
13210
13210
|
const OPEN_AI_DIRECT_MOCK_API_KEY_B64 = 'c2stcHJvai1vbU5rWUQwWHo4SjR3Y1J6dTN2ZE1GTVN1YmpqbkxNMktZMHdvbVUzeWJmTE1ESDlYTmsyNWxHNU1KcTZ2VHhmVWRiR256OE1uZFQzQmxia0ZKRTZrYkNwRFpQNEszMmVCTEFJdmgwd0ZHajV4ejFETjdjWlRrSnRVU3NDSHpvdEtMU0M4cDQ2c3VETFczRUtlNG1oM3NHRlc4MEE=';
|
|
13211
|
+
const OPEN_ROUTER_DIRECT_MOCK_API_KEY_B64 = 'c2stb3ItdjEtZTVkYWE5ZGYwMDFkNWFkNTczYzEyZmI3NzZhMGE2MDNmMjFhYzhiNDY1OGViNmQ4NTg1MjkzNDgyNDljOTgyOQ==';
|
|
13211
13212
|
/**
|
|
13212
13213
|
* Decodes a mock API key stored as Base64 (light obfuscation for repo snapshots).
|
|
13213
13214
|
*/
|
|
@@ -13265,7 +13266,7 @@ const OPEN_AI_ENDPOINT_MOCK = [
|
|
|
13265
13266
|
title: M$1d('OpenRouter', 'اوپنروتر'),
|
|
13266
13267
|
description: M$1d('OpenRouter OpenAI-compatible API gateway. Base URL ends at /v1.', 'درگاه API سازگار با OpenAI در OpenRouter. آدرس پایه با /v1 تمام میشود.'),
|
|
13267
13268
|
apiBase: 'https://openrouter.ai/api/v1',
|
|
13268
|
-
apiKey:
|
|
13269
|
+
apiKey: decodeMockOpenAiApiKeySecret(OPEN_ROUTER_DIRECT_MOCK_API_KEY_B64),
|
|
13269
13270
|
stream: true,
|
|
13270
13271
|
},
|
|
13271
13272
|
];
|
|
@@ -13352,6 +13353,10 @@ const AXMAiModelStableIds = {
|
|
|
13352
13353
|
gemini25ProPreviewTts: 'a0000001-0000-4000-8000-00000000007c',
|
|
13353
13354
|
openrouterOwlAlpha: 'a0000001-0000-4000-8000-00000000007d',
|
|
13354
13355
|
openrouterQwen3Next80bA3bInstructFree: 'a0000001-0000-4000-8000-00000000007e',
|
|
13356
|
+
openrouterQwen37Max: 'a0000001-0000-4000-8000-00000000007f',
|
|
13357
|
+
openrouterGpt54Nano: 'a0000001-0000-4000-8000-000000000080',
|
|
13358
|
+
openrouterGpt54Mini: 'a0000001-0000-4000-8000-000000000081',
|
|
13359
|
+
openrouterGpt54: 'a0000001-0000-4000-8000-000000000082',
|
|
13355
13360
|
};
|
|
13356
13361
|
//#endregion
|
|
13357
13362
|
//#region ---- Lookup snapshots (avoid circular import with endpoint mock) ----
|
|
@@ -13613,6 +13618,59 @@ const AI_MODEL_MOCK = [
|
|
|
13613
13618
|
outputPricePerMillion: 0,
|
|
13614
13619
|
cachedInputPricePerMillion: 0,
|
|
13615
13620
|
},
|
|
13621
|
+
{
|
|
13622
|
+
id: AXMAiModelStableIds.openrouterQwen37Max,
|
|
13623
|
+
name: 'qwen/qwen3.7-max',
|
|
13624
|
+
title: M$1c('Qwen 3.7 Max (OpenRouter)', 'Qwen 3.7 Max (اوپنروتر)'),
|
|
13625
|
+
description: M$1c('OpenRouter model catalog row: qwen/qwen3.7-max (text → text; 1M context)', 'ردیف کاتالوگ OpenRouter: qwen/qwen3.7-max (متن → متن؛ زمینه ۱M)'),
|
|
13626
|
+
chatTransport: 'openai',
|
|
13627
|
+
openAiEndpointId: AXMAiOpenAiEndpointStableIds.openRouter,
|
|
13628
|
+
openAiEndpoint: mockOpenAiEndpointSnapshot(AXMAiOpenAiEndpointStableIds.openRouter),
|
|
13629
|
+
modelPurposes: ['chat'],
|
|
13630
|
+
maxContextTokens: 1_000_000,
|
|
13631
|
+
inputPricePerMillion: 1.25,
|
|
13632
|
+
outputPricePerMillion: 3.75,
|
|
13633
|
+
},
|
|
13634
|
+
{
|
|
13635
|
+
id: AXMAiModelStableIds.openrouterGpt54Nano,
|
|
13636
|
+
name: 'openai/gpt-5.4-nano',
|
|
13637
|
+
title: M$1c('GPT-5.4 Nano (OpenRouter)', 'GPT-5.4 نانو (اوپنروتر)'),
|
|
13638
|
+
description: M$1c('OpenRouter model catalog row: openai/gpt-5.4-nano (document, image, text → text; 400K context)', 'ردیف کاتالوگ OpenRouter: openai/gpt-5.4-nano (سند، تصویر، متن → متن؛ زمینه ۴۰۰K)'),
|
|
13639
|
+
chatTransport: 'openai',
|
|
13640
|
+
openAiEndpointId: AXMAiOpenAiEndpointStableIds.openRouter,
|
|
13641
|
+
openAiEndpoint: mockOpenAiEndpointSnapshot(AXMAiOpenAiEndpointStableIds.openRouter),
|
|
13642
|
+
modelPurposes: ['chat', 'vision'],
|
|
13643
|
+
maxContextTokens: 400_000,
|
|
13644
|
+
inputPricePerMillion: 0.2,
|
|
13645
|
+
outputPricePerMillion: 1.25,
|
|
13646
|
+
},
|
|
13647
|
+
{
|
|
13648
|
+
id: AXMAiModelStableIds.openrouterGpt54Mini,
|
|
13649
|
+
name: 'openai/gpt-5.4-mini',
|
|
13650
|
+
title: M$1c('GPT-5.4 Mini (OpenRouter)', 'GPT-5.4 مینی (اوپنروتر)'),
|
|
13651
|
+
description: M$1c('OpenRouter model catalog row: openai/gpt-5.4-mini (document, image, text → text; 400K context)', 'ردیف کاتالوگ OpenRouter: openai/gpt-5.4-mini (سند، تصویر، متن → متن؛ زمینه ۴۰۰K)'),
|
|
13652
|
+
chatTransport: 'openai',
|
|
13653
|
+
openAiEndpointId: AXMAiOpenAiEndpointStableIds.openRouter,
|
|
13654
|
+
openAiEndpoint: mockOpenAiEndpointSnapshot(AXMAiOpenAiEndpointStableIds.openRouter),
|
|
13655
|
+
modelPurposes: ['chat', 'vision'],
|
|
13656
|
+
maxContextTokens: 400_000,
|
|
13657
|
+
inputPricePerMillion: 0.75,
|
|
13658
|
+
outputPricePerMillion: 4.5,
|
|
13659
|
+
},
|
|
13660
|
+
{
|
|
13661
|
+
id: AXMAiModelStableIds.openrouterGpt54,
|
|
13662
|
+
name: 'openai/gpt-5.4',
|
|
13663
|
+
title: M$1c('GPT-5.4 (OpenRouter)', 'GPT-5.4 (اوپنروتر)'),
|
|
13664
|
+
description: M$1c('OpenRouter model catalog row: openai/gpt-5.4 (document, image, text → text; 400K context)', 'ردیف کاتالوگ OpenRouter: openai/gpt-5.4 (سند، تصویر، متن → متن؛ زمینه ۴۰۰K)'),
|
|
13665
|
+
chatTransport: 'openai',
|
|
13666
|
+
openAiEndpointId: AXMAiOpenAiEndpointStableIds.openRouter,
|
|
13667
|
+
openAiEndpoint: mockOpenAiEndpointSnapshot(AXMAiOpenAiEndpointStableIds.openRouter),
|
|
13668
|
+
modelPurposes: ['chat', 'vision'],
|
|
13669
|
+
maxContextTokens: 400_000,
|
|
13670
|
+
inputPricePerMillion: 2.5,
|
|
13671
|
+
outputPricePerMillion: 15,
|
|
13672
|
+
cachedInputPricePerMillion: 0.25,
|
|
13673
|
+
},
|
|
13616
13674
|
{
|
|
13617
13675
|
id: AXMAiModelStableIds.lmStudioQwen35_9b,
|
|
13618
13676
|
name: 'qwen/qwen3.5-9b',
|
|
@@ -13804,6 +13862,129 @@ const AXM_AI_REGISTRY_QUERY_NAME = {
|
|
|
13804
13862
|
};
|
|
13805
13863
|
//#endregion
|
|
13806
13864
|
|
|
13865
|
+
//#region ---- Imports ----
|
|
13866
|
+
//#endregion
|
|
13867
|
+
//#region ---- Schema ----
|
|
13868
|
+
const PLATFORM_ENTITY_RESULT_TYPE = [
|
|
13869
|
+
'entityCatalog',
|
|
13870
|
+
'entityDefinition',
|
|
13871
|
+
'records',
|
|
13872
|
+
'singleRecord',
|
|
13873
|
+
'count',
|
|
13874
|
+
'aggregate',
|
|
13875
|
+
'mutation',
|
|
13876
|
+
];
|
|
13877
|
+
const platformEntityOutputSchema = {
|
|
13878
|
+
type: 'object',
|
|
13879
|
+
additionalProperties: false,
|
|
13880
|
+
required: ['resultType', 'data'],
|
|
13881
|
+
properties: {
|
|
13882
|
+
resultType: {
|
|
13883
|
+
type: 'string',
|
|
13884
|
+
enum: [...PLATFORM_ENTITY_RESULT_TYPE],
|
|
13885
|
+
description: 'Discriminator for the payload in `data`: catalog rows, one entity schema, storage rows, count, aggregation, or create/update outcome.',
|
|
13886
|
+
},
|
|
13887
|
+
entityFullName: {
|
|
13888
|
+
type: 'string',
|
|
13889
|
+
description: 'Module.Entity when the answer targets one entity (omit for multi-entity catalog-only answers).',
|
|
13890
|
+
},
|
|
13891
|
+
summary: {
|
|
13892
|
+
type: 'string',
|
|
13893
|
+
description: 'One short line for the supervising assist (counts, filters applied, truncation). Not a duplicate of full row data.',
|
|
13894
|
+
},
|
|
13895
|
+
sources: {
|
|
13896
|
+
type: 'array',
|
|
13897
|
+
description: 'Registry tool keys that grounded this answer (e.g. PlatformManagement:ListRegisteredEntities).',
|
|
13898
|
+
items: { type: 'string' },
|
|
13899
|
+
},
|
|
13900
|
+
data: {
|
|
13901
|
+
type: 'object',
|
|
13902
|
+
description: 'Tool-grounded payload. Never use a JSON array at the root — put lists inside this object (e.g. `items`, `entities`, `aggregateRows`).',
|
|
13903
|
+
additionalProperties: true,
|
|
13904
|
+
properties: {
|
|
13905
|
+
entities: {
|
|
13906
|
+
type: 'array',
|
|
13907
|
+
description: 'resultType entityCatalog: catalog rows from ListRegisteredEntities.',
|
|
13908
|
+
items: { type: 'object', additionalProperties: true },
|
|
13909
|
+
},
|
|
13910
|
+
entity: {
|
|
13911
|
+
type: 'object',
|
|
13912
|
+
description: 'resultType entityDefinition: single entity metadata including properties when available.',
|
|
13913
|
+
additionalProperties: true,
|
|
13914
|
+
},
|
|
13915
|
+
properties: {
|
|
13916
|
+
type: 'array',
|
|
13917
|
+
description: 'resultType entityDefinition: property schema rows when returned separately.',
|
|
13918
|
+
items: { type: 'object', additionalProperties: true },
|
|
13919
|
+
},
|
|
13920
|
+
total: {
|
|
13921
|
+
type: 'integer',
|
|
13922
|
+
description: 'resultType records | count | aggregate: matching row or group count from storage tools.',
|
|
13923
|
+
},
|
|
13924
|
+
items: {
|
|
13925
|
+
type: 'array',
|
|
13926
|
+
description: 'resultType records | singleRecord: storage row objects (single element for one id).',
|
|
13927
|
+
items: { type: 'object', additionalProperties: true },
|
|
13928
|
+
},
|
|
13929
|
+
truncated: {
|
|
13930
|
+
type: 'boolean',
|
|
13931
|
+
description: 'resultType records: true when resultMode all hit maxFetchRows.',
|
|
13932
|
+
},
|
|
13933
|
+
page: {
|
|
13934
|
+
type: 'object',
|
|
13935
|
+
description: 'resultType records: skip/take when resultMode page was used.',
|
|
13936
|
+
additionalProperties: true,
|
|
13937
|
+
properties: {
|
|
13938
|
+
skip: { type: 'integer' },
|
|
13939
|
+
take: { type: 'integer' },
|
|
13940
|
+
},
|
|
13941
|
+
},
|
|
13942
|
+
aggregateRows: {
|
|
13943
|
+
type: 'array',
|
|
13944
|
+
description: 'resultType aggregate: grouped measure rows from EntityStorage:Query.',
|
|
13945
|
+
items: { type: 'object', additionalProperties: true },
|
|
13946
|
+
},
|
|
13947
|
+
mutation: {
|
|
13948
|
+
type: 'object',
|
|
13949
|
+
description: 'resultType mutation: Entity:Create / Entity:Update outcome (success, id, errors from tool envelope).',
|
|
13950
|
+
additionalProperties: true,
|
|
13951
|
+
},
|
|
13952
|
+
},
|
|
13953
|
+
},
|
|
13954
|
+
},
|
|
13955
|
+
};
|
|
13956
|
+
//#endregion
|
|
13957
|
+
//#region ---- Contract ----
|
|
13958
|
+
/**
|
|
13959
|
+
* Structured final output for the platform-entity delegated specialist.
|
|
13960
|
+
* Root value is always a JSON object (never a bare array).
|
|
13961
|
+
*/
|
|
13962
|
+
const AXM_PLATFORM_ENTITY_AGENT_OUTPUT_CONTRACT = {
|
|
13963
|
+
kind: 'object',
|
|
13964
|
+
transcriptSegment: 'text',
|
|
13965
|
+
schemaName: 'platform_entity_result',
|
|
13966
|
+
schemaStrict: false,
|
|
13967
|
+
structuredRetries: 2,
|
|
13968
|
+
schemaSummary: [
|
|
13969
|
+
'Root: JSON object with required `resultType` + `data`.',
|
|
13970
|
+
'`resultType`: entityCatalog | entityDefinition | records | singleRecord | count | aggregate | mutation.',
|
|
13971
|
+
'Lists live under `data` (`items`, `entities`, `aggregateRows`, …) — never a root-level array.',
|
|
13972
|
+
'Ground every field in tool results; optional `summary` for the supervisor only.',
|
|
13973
|
+
].join(' '),
|
|
13974
|
+
instruction: [
|
|
13975
|
+
'While tools are available: call registry tools only — do **not** output the final contract JSON yet.',
|
|
13976
|
+
'You must call **PlatformManagement:ListRegisteredEntities** (resolve Module.Entity) and **ConnectivityMock:EntityStorage:Query** (read rows) before any final JSON when the task needs stored data.',
|
|
13977
|
+
'After tool results are in the transcript, your **final** message is exactly one JSON object matching the schema (no markdown fences, no prose).',
|
|
13978
|
+
'Pick `resultType` from what tools returned: catalog browse → entityCatalog; schema/properties → entityDefinition; list/page/all → records; get by id → singleRecord; count mode → count; aggregate → aggregate; create/update → mutation.',
|
|
13979
|
+
'Copy row shapes from tool JSON into `data` — do not invent ids, counts, or field values. Empty `items` without a storage query is invalid.',
|
|
13980
|
+
'Set `sources` only to tool keys you actually invoked in this sub-run.',
|
|
13981
|
+
].join(' '),
|
|
13982
|
+
schema: platformEntityOutputSchema,
|
|
13983
|
+
};
|
|
13984
|
+
/** Serialized for AiAgent `outputContract` entity field (string). */
|
|
13985
|
+
const AXM_PLATFORM_ENTITY_AGENT_OUTPUT_CONTRACT_JSON = JSON.stringify(AXM_PLATFORM_ENTITY_AGENT_OUTPUT_CONTRACT);
|
|
13986
|
+
//#endregion
|
|
13987
|
+
|
|
13807
13988
|
//#region ---- Imports ----
|
|
13808
13989
|
//#endregion
|
|
13809
13990
|
const M$1b = createMultiLanguageString;
|
|
@@ -14066,6 +14247,7 @@ const AI_AGENT_MOCK = [
|
|
|
14066
14247
|
aiAgentQueryBinding(axcResolveQueryRegistrySeedId(AXM_AI_REGISTRY_QUERY_NAME.listRegisteredEntities)),
|
|
14067
14248
|
aiAgentQueryBinding(axcResolveQueryRegistrySeedId(AXM_AI_REGISTRY_QUERY_NAME.entityStorageQuery)),
|
|
14068
14249
|
],
|
|
14250
|
+
outputContract: AXM_PLATFORM_ENTITY_AGENT_OUTPUT_CONTRACT_JSON,
|
|
14069
14251
|
systemPrompt: [
|
|
14070
14252
|
'You are the platform entity specialist for ACoreX.',
|
|
14071
14253
|
'Use PlatformManagement:ListRegisteredEntities to discover or validate Module.Entity keys and to inspect entity definitions (required fields, types).',
|
|
@@ -14075,6 +14257,7 @@ const AI_AGENT_MOCK = [
|
|
|
14075
14257
|
'Use Entity:Create and Entity:Update only with arguments that match each command schema; confirm outcomes from tool results and never fabricate success.',
|
|
14076
14258
|
'Prefer read-only queries before mutations when you still need identifiers or schema details.',
|
|
14077
14259
|
'When the user wants a **chart** from stored rows, finish accurate aggregation first; keep your own prose minimal.',
|
|
14260
|
+
'Final deliverable: one JSON object per the output contract (`resultType` + `data`); lists belong inside `data`, never as a root array.',
|
|
14078
14261
|
].join('\n'),
|
|
14079
14262
|
modelEntityId: null,
|
|
14080
14263
|
maxSteps: 10,
|
|
@@ -14439,8 +14622,8 @@ const AI_ASSIST_MOCK = [
|
|
|
14439
14622
|
name: 'platform-assistant',
|
|
14440
14623
|
title: M$1a('Platform Assistant', 'دستیار پلتفرم'),
|
|
14441
14624
|
description: M$1a('Default platform assistant used when no specific assist is selected.', 'دستیار پیشفرض پلتفرم وقتی هیچ assist مشخصی انتخاب نشده باشد.'),
|
|
14442
|
-
modelId: AXMAiModelStableIds.
|
|
14443
|
-
aiModel: aiModelRef(AXMAiModelStableIds.
|
|
14625
|
+
modelId: AXMAiModelStableIds.openrouterGpt54,
|
|
14626
|
+
aiModel: aiModelRef(AXMAiModelStableIds.openrouterGpt54),
|
|
14444
14627
|
tools: [],
|
|
14445
14628
|
systemPrompt: 'You are a helpful assistant for the ACoreX platform. Be **brief**, accurate, and safe. Skip jargon unless the user asks for technical detail.',
|
|
14446
14629
|
initialMessages: '',
|
|
@@ -20109,7 +20292,7 @@ function buildAgentOutputContractSystemAddendum(contract) {
|
|
|
20109
20292
|
lines.push('- Your **entire** final message is **one** JSON object: `{"type":"followUp","content":[...]}` with 2–5 chips.', '- Each chip: non-empty `text` and `command` with non-empty `name`.', '- Default chip command: **Conversation:SendAssistChatMessage** with empty `options` unless the transcript already named a registered platform command.', '- No markdown fences, no prose, no `node` or layout widgets.');
|
|
20110
20293
|
}
|
|
20111
20294
|
else {
|
|
20112
|
-
lines.push('- Final message
|
|
20295
|
+
lines.push('- **Tool rounds:** call registry tools; do **not** emit the final contract JSON until tool results appear in the transcript.', '- **Final message (after tools):** **one** complete JSON **object**. No markdown fences or commentary.');
|
|
20113
20296
|
}
|
|
20114
20297
|
const extra = contract.instruction?.trim();
|
|
20115
20298
|
if (extra && extra.length > 0) {
|
|
@@ -20796,6 +20979,9 @@ async function executeAgentSubRun(host, supervisorAssist, agent, delegationCallI
|
|
|
20796
20979
|
});
|
|
20797
20980
|
let acc = usageTotals;
|
|
20798
20981
|
let reflectionRoundsUsed = 0;
|
|
20982
|
+
let toolGroundingNudgeSent = false;
|
|
20983
|
+
const delegatedSubRunHasToolResults = (messages) => messages.some((m) => m.role === 'tool');
|
|
20984
|
+
const TOOL_GROUNDING_BEFORE_STRUCTURED_JSON = 'Ground this task with registry tools before the final structured JSON. Resolve the entity with PlatformManagement:ListRegisteredEntities, then read rows with ConnectivityMock:EntityStorage:Query when the task needs stored data. Do not return the final JSON object until after at least one tool result is in this transcript.';
|
|
20799
20985
|
const delegatedStreamCtx = {
|
|
20800
20986
|
delegationCallId,
|
|
20801
20987
|
agentId: agent.id?.trim() ?? '',
|
|
@@ -20819,7 +21005,6 @@ async function executeAgentSubRun(host, supervisorAssist, agent, delegationCallI
|
|
|
20819
21005
|
...(nestedToolSchemas.length === 0 ? { toolChoice: 'none' } : {}),
|
|
20820
21006
|
maxTokens: options.maxTokens,
|
|
20821
21007
|
temperature: options.temperature,
|
|
20822
|
-
...(responseFormat ? { responseFormat } : {}),
|
|
20823
21008
|
...(options.onRunEvent
|
|
20824
21009
|
? {
|
|
20825
21010
|
onStreamDelta: (delta) => {
|
|
@@ -20843,6 +21028,19 @@ async function executeAgentSubRun(host, supervisorAssist, agent, delegationCallI
|
|
|
20843
21028
|
let assistantPieces = roundResult.messages.filter((m) => m.role === 'assistant');
|
|
20844
21029
|
let toolCalls = roundResult.toolCalls ?? [];
|
|
20845
21030
|
if (!toolCalls.length) {
|
|
21031
|
+
const needsToolGrounding = nestedToolSchemas.length > 0 &&
|
|
21032
|
+
axpAiAgentOutputContractUsesStructuredFinalize(outputContract) &&
|
|
21033
|
+
!delegatedSubRunHasToolResults(subMessages) &&
|
|
21034
|
+
step < cap - 1;
|
|
21035
|
+
if (needsToolGrounding && !toolGroundingNudgeSent) {
|
|
21036
|
+
toolGroundingNudgeSent = true;
|
|
21037
|
+
subMessages = [
|
|
21038
|
+
...subMessages,
|
|
21039
|
+
...axpAiMergePlainAssistantTextTurn(assistantPieces),
|
|
21040
|
+
axpAiChatTextMessage('user', TOOL_GROUNDING_BEFORE_STRUCTURED_JSON),
|
|
21041
|
+
];
|
|
21042
|
+
continue;
|
|
21043
|
+
}
|
|
20846
21044
|
subMessages = [...subMessages, ...axpAiMergePlainAssistantTextTurn(assistantPieces)];
|
|
20847
21045
|
break;
|
|
20848
21046
|
}
|
|
@@ -20883,7 +21081,6 @@ async function executeAgentSubRun(host, supervisorAssist, agent, delegationCallI
|
|
|
20883
21081
|
toolChoice: 'none',
|
|
20884
21082
|
maxTokens: options.maxTokens,
|
|
20885
21083
|
temperature: options.temperature,
|
|
20886
|
-
...(responseFormat ? { responseFormat } : {}),
|
|
20887
21084
|
});
|
|
20888
21085
|
if (reflectResult) {
|
|
20889
21086
|
acc = addStepUsage(acc, reflectResult, subModelResolve.chatTransport);
|
|
@@ -21973,7 +22170,7 @@ class AXCAiManagementMockModule {
|
|
|
21973
22170
|
provideCommandSetups([
|
|
21974
22171
|
{
|
|
21975
22172
|
key: 'AiManagement:ChatGenerateImage',
|
|
21976
|
-
command: () => import('./acorex-connectivity-mock-chat-generate-image.command-
|
|
22173
|
+
command: () => import('./acorex-connectivity-mock-chat-generate-image.command-DBn-KZft.mjs').then((c) => c.AiManagementChatGenerateImageCommand),
|
|
21977
22174
|
},
|
|
21978
22175
|
{
|
|
21979
22176
|
key: 'AiManagement:ExtractDocumentText',
|
|
@@ -21985,11 +22182,11 @@ class AXCAiManagementMockModule {
|
|
|
21985
22182
|
},
|
|
21986
22183
|
{
|
|
21987
22184
|
key: 'AiManagement:ChatTranscribeSpeech',
|
|
21988
|
-
command: () => import('./acorex-connectivity-mock-chat-transcribe-speech.command-
|
|
22185
|
+
command: () => import('./acorex-connectivity-mock-chat-transcribe-speech.command-D3om-6Pi.mjs').then((c) => c.AiManagementChatTranscribeSpeechCommand),
|
|
21989
22186
|
},
|
|
21990
22187
|
{
|
|
21991
22188
|
key: 'AiManagement:ChatSynthesizeSpeech',
|
|
21992
|
-
command: () => import('./acorex-connectivity-mock-chat-synthesize-speech.command-
|
|
22189
|
+
command: () => import('./acorex-connectivity-mock-chat-synthesize-speech.command-CdhGiZsU.mjs').then((c) => c.AiManagementChatSynthesizeSpeechCommand),
|
|
21993
22190
|
},
|
|
21994
22191
|
]),
|
|
21995
22192
|
] }); }
|
|
@@ -22042,7 +22239,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
|
|
|
22042
22239
|
provideCommandSetups([
|
|
22043
22240
|
{
|
|
22044
22241
|
key: 'AiManagement:ChatGenerateImage',
|
|
22045
|
-
command: () => import('./acorex-connectivity-mock-chat-generate-image.command-
|
|
22242
|
+
command: () => import('./acorex-connectivity-mock-chat-generate-image.command-DBn-KZft.mjs').then((c) => c.AiManagementChatGenerateImageCommand),
|
|
22046
22243
|
},
|
|
22047
22244
|
{
|
|
22048
22245
|
key: 'AiManagement:ExtractDocumentText',
|
|
@@ -22054,11 +22251,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
|
|
|
22054
22251
|
},
|
|
22055
22252
|
{
|
|
22056
22253
|
key: 'AiManagement:ChatTranscribeSpeech',
|
|
22057
|
-
command: () => import('./acorex-connectivity-mock-chat-transcribe-speech.command-
|
|
22254
|
+
command: () => import('./acorex-connectivity-mock-chat-transcribe-speech.command-D3om-6Pi.mjs').then((c) => c.AiManagementChatTranscribeSpeechCommand),
|
|
22058
22255
|
},
|
|
22059
22256
|
{
|
|
22060
22257
|
key: 'AiManagement:ChatSynthesizeSpeech',
|
|
22061
|
-
command: () => import('./acorex-connectivity-mock-chat-synthesize-speech.command-
|
|
22258
|
+
command: () => import('./acorex-connectivity-mock-chat-synthesize-speech.command-CdhGiZsU.mjs').then((c) => c.AiManagementChatSynthesizeSpeechCommand),
|
|
22062
22259
|
},
|
|
22063
22260
|
]),
|
|
22064
22261
|
],
|
|
@@ -71423,7 +71620,7 @@ class AXCSecurityManagementMockModule {
|
|
|
71423
71620
|
provideQuerySetups([
|
|
71424
71621
|
{
|
|
71425
71622
|
key: 'SecurityManagement:User:RolesForListColumn',
|
|
71426
|
-
loader: () => import('./acorex-connectivity-mock-user-roles-for-list-column.query-
|
|
71623
|
+
loader: () => import('./acorex-connectivity-mock-user-roles-for-list-column.query-B_duq_t1.mjs').then((m) => m.UserRolesForListColumnQuery),
|
|
71427
71624
|
},
|
|
71428
71625
|
]),
|
|
71429
71626
|
] }); }
|
|
@@ -71467,7 +71664,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
|
|
|
71467
71664
|
provideQuerySetups([
|
|
71468
71665
|
{
|
|
71469
71666
|
key: 'SecurityManagement:User:RolesForListColumn',
|
|
71470
|
-
loader: () => import('./acorex-connectivity-mock-user-roles-for-list-column.query-
|
|
71667
|
+
loader: () => import('./acorex-connectivity-mock-user-roles-for-list-column.query-B_duq_t1.mjs').then((m) => m.UserRolesForListColumnQuery),
|
|
71471
71668
|
},
|
|
71472
71669
|
]),
|
|
71473
71670
|
],
|
|
@@ -79128,7 +79325,7 @@ class AXCWorkflowManagementMockModule {
|
|
|
79128
79325
|
provideCommandSetups([
|
|
79129
79326
|
{
|
|
79130
79327
|
key: 'workflow-activity:assign-to-manager',
|
|
79131
|
-
command: () => import('./acorex-connectivity-mock-assign-to-manager.activity-
|
|
79328
|
+
command: () => import('./acorex-connectivity-mock-assign-to-manager.activity-B-ZAFQQM.mjs').then((c) => c.AssignToManagerActivity),
|
|
79132
79329
|
},
|
|
79133
79330
|
{
|
|
79134
79331
|
key: 'workflow-activity:get-current-user-manager',
|
|
@@ -79223,7 +79420,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
|
|
|
79223
79420
|
provideCommandSetups([
|
|
79224
79421
|
{
|
|
79225
79422
|
key: 'workflow-activity:assign-to-manager',
|
|
79226
|
-
command: () => import('./acorex-connectivity-mock-assign-to-manager.activity-
|
|
79423
|
+
command: () => import('./acorex-connectivity-mock-assign-to-manager.activity-B-ZAFQQM.mjs').then((c) => c.AssignToManagerActivity),
|
|
79227
79424
|
},
|
|
79228
79425
|
{
|
|
79229
79426
|
key: 'workflow-activity:get-current-user-manager',
|
|
@@ -83848,4 +84045,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
|
|
|
83848
84045
|
*/
|
|
83849
84046
|
|
|
83850
84047
|
export { AXCFileStorageServiceDexie as $, AXCAiChatRouterService as A, AXCAuthMockModule as B, AXCCalendarDataSeeder as C, AXCCalendarEventDataSeeder as D, AXCCalendarManagementMockModule as E, AXCCommandRegistryDataSeeder as F, AXCCommonMockModule as G, AXCContactCoreMockModule as H, AXCContentManagementMockModule as I, AXCConversationDataSeeder as J, AXCConversationMockConversationApi as K, AXCConversationMockMessageApi as L, AXCConversationMockModule as M, AXCConversationMockRealtimeApi as N, AXCConversationMockUploaderApi as O, AXCConversationMockUserApi as P, AXCCustomerManagementMockModule as Q, AXCDashboardManagementMockModule as R, AXCDataManagementMockModule as S, AXCDexieEntityStorageService as T, AXCDocumentManagementMockModule as U, AXCEditionDataSeeder as V, AXCEntityDefinitionSeederService as W, AXCEntityDefinitionsModule as X, AXCEntityStorageInsertCommand as Y, AXCEntityStorageModule as Z, AXCEntityStorageQueryQuery as _, AXMAiModelStableIds as a, AXMBusinessUnitDataSeeder as a$, AXCFileStorageServiceFirestore as a0, AXCFinancialCoreMockModule as a1, AXCFirestoreEntityStorageService as a2, AXCFormTemplateManagementMockModule as a3, AXCGoogleStrategyMock as a4, AXCHealthCoreMockModule as a5, AXCHelpDeskMockModule as a6, AXCHumanCapitalManagementMockModule as a7, AXCIdentifierManagementMockModule as a8, AXCImageCaptchaChallengeProviderMock as a9, AXCSupplierManagementMockModule as aA, AXCTaskManagementMockModule as aB, AXCTenantManagementMockModule as aC, AXCTenantSeeder as aD, AXCTextTemplateRenderBackend as aE, AXCTokensDataSeeder as aF, AXCUserPassStrategyMock as aG, AXCVersionDB as aH, AXCVersioningService as aI, AXCWidgetCatalogDataSeeder as aJ, AXCWorkflowCategorySeeder as aK, AXCWorkflowDefinitionDataSeeder as aL, AXCWorkflowEngine as aM, AXCWorkflowExecutionDB as aN, AXCWorkflowExecutionStoreDexie as aO, AXCWorkflowExecutionStoreFirestore as aP, AXCWorkflowInstanceCartableDemoSeeder as aQ, AXCWorkflowManagementMockModule as aR, AXC_ENTITY_STORAGE_BACKEND_TYPE as aS, AXC_FIRESTORE_CONFIG as aT, AXC_FIRESTORE_DB as aU, AXC_WORKFLOW_EXECUTION_STORE as aV, AXMAiDemisAssistAgentUuid as aW, AXMAiDemisAssistId as aX, AXMAiDemisGeneralAssistId as aY, AXMAiPlatformAssistantAssistId as aZ, AXMAutomationDataSeeder as a_, AXCLearningManagementMockModule as aa, AXCLocaleManagementMockModule as ab, AXCLocationManagementMockModule as ac, AXCLockService as ad, AXCMeasurementCoreMockModule as ae, AXCMeetingManagementMockModule as af, AXCMetaDataDefinitionDataSeeder as ag, AXCMetadataCategorySeeder as ah, AXCMiddlewaresModule as ai, AXCMockCaptchaChallengeComponent as aj, AXCMockEntityLogListener as ak, AXCMockModule as al, AXCMockShowMetaDataFormPopupCommand as am, AXCNotificationManagementMockModule as an, AXCOrderManagementMockModule as ao, AXCOrganizationManagementMockModule as ap, AXCPersonCoreMockModule as aq, AXCPlatformManagementMockModule as ar, AXCProcurementManagementMockModule as as, AXCProductCatalogMockModule as at, AXCProjectManagementMockModule as au, AXCQueryRegistryDataSeeder as av, AXCReportManagementMockModule as aw, AXCSecurityManagementMockModule as ax, AXCStoredEntityDefinitionLoader as ay, AXCSubscriptionManagementMockModule as az, resolveAssistSpeechModelId as b, FINANCE_ENTERPRISE as b$, AXMCalendarEventTypeSeeder as b0, AXMDashboardChartDataSourceDefinition as b1, AXMEmployeeDataSeeder as b2, AXMEmploymentTypeDataSeeder as b3, AXMFormDataSourcesProvider as b4, AXMJobDefinitionDataSeeder as b5, AXMJobLevelDataSeeder as b6, AXMLeaveRequestDataSeeder as b7, AXMMeetingDataSeeder as b8, AXMMeetingFilesDataSeeder as b9, AXPMockIdentifierService as bA, AXPMockLookupProvider as bB, AXPMockPolicyProvider as bC, AXPMockSequenceProvider as bD, AXPRoomDataSeeder as bE, AXPSecurityManagementRoleDataSeeder as bF, AXPSecurityManagementUserDataSeeder as bG, AXPTaskBoardPlatformManagementTaskProvider as bH, AXPTaskBoardProjectManagementTaskProvider as bI, AXVChangeType as bJ, BCC as bK, BOC as bL, BUSINESS_UNITS_MOCK as bM, CHAT_LAST_MESSAGE_IDS as bN, COLLABORATION_STANDARD as bO, COSTMANAGER_ENTERPRISE as bP, COSTMANAGER_PROFESSIONAL as bQ, COSTMANAGER_STANDARD as bR, CP as bS, CRM_ENTERPRISE as bT, DASHBOARDS as bU, EDITIONS as bV, EMPLOYEES_MOCK as bW, EMPLOYMENT_TYPES_MOCK as bX, ENTITY_DEFINITION_MAP as bY, ENTITY_REGISTRY as bZ, FINANCE_BASIC as b_, AXMMeetingParticipantDataSeeder as ba, AXMMeetingRoleTypeDataSeeder as bb, AXMMeetingSessionDataSeeder as bc, AXMMeetingTypeDataSeeder as bd, AXMMeetingTypeFileTemplateDataSeeder as be, AXMPositionAssignmentDataSeeder as bf, AXMPositionDataSeeder as bg, AXMQuestionBankItemCategoryDataSeeder as bh, AXMQuestionBankItemDataSeeder as bi, AXMQuestionnaireCategoryDataSeeder as bj, AXMQuestionnaireDataSeeder as bk, AXMResponsibilityDataSeeder as bl, AXMTagDataSeeder as bm, AXMTeamBusinessUnitDataSeeder as bn, AXMTeamDataSeeder as bo, AXMTeamMemberDataSeeder as bp, AXMTeamMemberRoleDataSeeder as bq, AXMWorkflowDashboardChartDataSourceDefinition as br, AXM_AI_REGISTRY_COMMAND_NAME as bs, AXM_AI_REGISTRY_QUERY_NAME as bt, AXM_CORPORATE_BUSINESS_UNIT_ID as bu, AXPDashboardDataSeeder as bv, AXPIdentifierDB as bw, AXPMessageDataSeeder as bx, AXPMockChecksumProvider as by, AXPMockClockProvider as bz, resolveDelegatedAssistOptionString as c, WS as c$, FINANCE_PRO as c0, G as c1, HR_ENTERPRISE as c2, HW as c3, JOB_DEFINITIONS_CATEGORY_MOCK as c4, JOB_DEFINITIONS_MOCK as c5, JOB_DEFINITION_CATEGORY_KEY_TO_ID as c6, JOB_LEVELS_MOCK as c7, LASER_PLUMBING_TENANT_ID as c8, LEAVE_REQUESTS_MOCK as c9, QWS as cA, RESPONSIBILITIES_CATEGORY_MOCK as cB, RESPONSIBILITIES_MOCK as cC, RESPONSIBILITY_CATEGORY_KEY_TO_ID as cD, SAFETYMINDER_BASIC as cE, SAFETYMINDER_ENTERPRISE as cF, SAFETYMINDER_PROFESSIONAL as cG, SHOP_BASIC as cH, SHOP_ENTERPRISE as cI, SHOP_PRO as cJ, TAGS_MOCK as cK, TASKS as cL, TASK_STATUSES as cM, TASK_TEMPLATES as cN, TASK_TYPES as cO, TEAMS_CATEGORY_MOCK as cP, TEAMS_MOCK as cQ, TEAM_BUSINESS_UNITS_MOCK as cR, TEAM_CATEGORY_KEY_TO_ID as cS, TEAM_MEMBERS_MOCK as cT, TEAM_MEMBER_ROLES_MOCK as cU, TIMEPLICITY_TENANT_ID as cV, TLA as cW, TOKENS as cX, TPC as cY, VISIBILITY_FILTER_BYPASS as cZ, WORKFLOW_CATEGORIES as c_, MAGFA_COMMERCE_STANDARD as ca, MAGFA_CONVERSATION_DASHBOARD as cb, MAGFA_TENANT_ID as cc, METADATA_CATEGORY_IDS as cd, METADATA_GENERAL_CATEGORY_REFS as ce, METADATA_SYSTEM_CATEGORY_REFS as cf, MLC as cg, OHR as ch, ORDERING_BASIC as ci, ORDERING_ENTERPRISE as cj, ORDERING_STANDARD as ck, OWNERSHIP_FILTER_BYPASS as cl, PLATFORM_CONSOLE as cm, PLATFORM_TENANT_ID as cn, PM as co, POSITIONS_CATEGORY_MOCK as cp, POSITIONS_MOCK as cq, POSITION_ASSIGNMENTS_MOCK as cr, QCP as cs, QGEN as ct, QHW as cu, QOHR as cv, QPM as cw, QTLE as cx, QUESTIONNAIRE_CATEGORY_MOCK as cy, QUESTION_BANK_ITEM_CATEGORY_MOCK as cz, axcSyncSingleEmployeeDenormalizedOrgFields as d, meetingParticipantMock as d$, activityCategoryMocks as d0, activityDefinitionEntityMock as d1, applyEntityDefinitionFirestoreSnapshot as d2, attachmentsInterface as d3, automationCommandMiddleware as d4, automationMock as d5, avatarInterface as d6, awaitConversationMockSharedStorage as d7, axVersionDB as d8, axWorkflowExecutionDB as d9, createWidgetLayoutConfig as dA, createWorkflowDefinitionEntityMock as dB, dateInterface as dC, dateTimeInterface as dD, descriptionInterface as dE, documentFolderSyncMiddleware as dF, emailInterface as dG, enrichWorkflowGraph as dH, entityDefDb as dI, entityValidationMiddleware as dJ, finalizeActivityCategoryItemCounts as dK, findEmployeeById as dL, folderStorageMiddleware as dM, groupOrderItemCalculatorMiddleware as dN, historyMiddleware as dO, identifierCommitMiddleware as dP, imageInterface as dQ, inspectionOkXNaInterface as dR, loadMockPropertyDefinitions as dS, lockGuardMiddleware as dT, longTextAnswerInterface as dU, lookupInterface as dV, lookupResolverMiddleware as dW, mapInterface as dX, meetingFilesMock as dY, meetingIds as dZ, meetingMock as d_, axcPatchEmployeeActivePrimaryBusinessUnitRefsFromRows as da, axcPatchEmployeeActivePrimaryPositionRefsFromRows as db, axcPatchEmployeeManagerRefsFromRows as dc, axcResolveCommandRegistrySeedId as dd, axcResolveQueryRegistrySeedId as de, axcResolveWidgetCatalogSeedId as df, bankCategory as dg, buildEntityStorageQuickSearchFilter as dh, buildWorkflowInstanceCartableDemoRows as di, bypassAllFilters as dj, bypassOwnershipFilter as dk, bypassVisibilityFilter as dl, calendarEventMock as dm, calendarEventTypeMockData as dn, calendarMock as dp, chatMessageMock as dq, chatMock as dr, checkboxInterface as ds, childCountMiddleware as dt, clearEntityDefinitionFirestoreCollections as du, colorInterface as dv, computeDiff as dw, contactInterface as dx, conversationDemoSeedUserIds as dy, createFileCastMiddleware as dz, ACTIVITY_CATEGORIES as e, meetingRoleTypeMock as e0, meetingSessionMock as e1, meetingTimeSlotMock as e2, meetingTypeFileTemplateMock as e3, meetingTypeMock as e4, mergeDetailRelationMiddleware as e5, mergeQuickSearchIntoRequest as e6, metadataCategoryMocks as e7, mockParticipantIndexForSecurityUserId as e8, mockQuestionBankItemByName as e9, selectionListInterface as eA, sexAtBirthInterface as eB, signatureInterface as eC, statusDefaultMiddleware as eD, tagInterface as eE, tenantMocks as eF, textAreaInterface as eG, textInterface as eH, timeDurationInterface as eI, titleInterface as eJ, toUiRows as eK, toggleInterface as eL, tokenCategoryIds as eM, tokenCategoryMocks as eN, urlInterface as eO, versionInterface as eP, visibilityFilterMiddleware as eQ, workflowDefinitionEntityMock as eR, workflowDefinitionIds as eS, workflowDefinitionMock as eT, yesNoInterface as eU, mockRoleDefinitions as ea, multipleChoiceInterface as eb, multipleSelectInterface as ec, normalizeAnyFileArrayForView as ed, normalizeSnapshotFileFieldsForView as ee, numberInterface as ef, parseEntityStorageInsertData as eg, parseEntityStorageQueryRequest as eh, participantIds as ei, participantMock as ej, passwordInterface as ek, personIdentifierTypeMock as el, personIds as em, personLegalIds as en, personMock as eo, personNaturalIds as ep, phoneInterface as eq, primaryMiddleware as er, provideMockPropertySetups as es, qrcodeInterface as et, questionBankItemMock as eu, questionnaireMock as ev, ratingInterface as ew, richTextInterface as ex, scaleInterface as ey, selectInterface as ez, ACTIVITY_CATEGORY_ID_BY_KEY as f, ACTIVITY_DEFINITIONS as g, AI_ASSIST_MOCK as h, AI_MODEL_MOCK as i, APPLICATIONS as j, APPLICATION_CATEGORY_IDS as k, APPLICATION_CATEGORY_MOCKS as l, mockUsers as m, AXCActivityCategorySeeder as n, AXCActivityDefinitionSeeder as o, AXCAiAssistSeeder as p, AXCAiManagementMockModule as q, resolveDelegatedAssistOptionModel as r, AXCAiModelSeeder as s, AXCAppTermDataSeeder as t, AXCAppVersionDataSeeder as u, AXCApplicationCategoryDataSeeder as v, AXCApplicationDataSeeder as w, AXCApplicationManagementMockModule as x, AXCAssessmentManagementMockModule as y, AXCAssetManagementMockModule as z };
|
|
83851
|
-
//# sourceMappingURL=acorex-connectivity-mock-acorex-connectivity-mock-
|
|
84048
|
+
//# sourceMappingURL=acorex-connectivity-mock-acorex-connectivity-mock-DXJDJBvf.mjs.map
|