cloud-ide-lms-model 1.1.85 → 1.1.87
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/lib/model/core/core_ai.d.ts +6 -0
- package/lib/model/core/core_ai.js +2 -0
- package/lib/model/core/core_system_entity.d.ts +2 -0
- package/lib/model/core/core_system_pages_theme.js +2 -2
- package/lib/routes/aiRoutes.d.ts +3 -0
- package/lib/routes/aiRoutes.js +4 -1
- package/lib/schema/academics/aca_academic_year.d.ts +1 -0
- package/lib/schema/core/core_system_themes.d.ts +2 -0
- package/package.json +1 -1
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { MTableQueries } from "../../common-types/common";
|
|
2
2
|
import { CoreAiCapability, CoreAiEmbeddingChunk, CoreAiFeedbackLog, CoreAiKnowledgeSource, CoreAiPromptTemplate, CoreAiRequestAuditLog, CoreAiRoleCapabilityMapping } from "../../schema";
|
|
3
3
|
import { controllerResponse } from "../../utilities";
|
|
4
|
+
export type AiChatMessage = {
|
|
5
|
+
role: "user" | "assistant";
|
|
6
|
+
content: string;
|
|
7
|
+
};
|
|
4
8
|
declare class MAiChatPayload extends MTableQueries {
|
|
5
9
|
query: string;
|
|
6
10
|
capability_code: string;
|
|
@@ -8,6 +12,8 @@ declare class MAiChatPayload extends MTableQueries {
|
|
|
8
12
|
module?: string;
|
|
9
13
|
record_id?: string;
|
|
10
14
|
context?: Record<string, any>;
|
|
15
|
+
/** Conversation history for multi-turn chat. Each turn: { role: "user"|"assistant", content: string }. */
|
|
16
|
+
messages?: AiChatMessage[];
|
|
11
17
|
constructor(init: MAiChatPayload);
|
|
12
18
|
Validate?(): Partial<Record<keyof MAiChatPayload, string>>;
|
|
13
19
|
}
|
|
@@ -11,6 +11,8 @@ class MAiChatPayload extends common_1.MTableQueries {
|
|
|
11
11
|
this.module = "";
|
|
12
12
|
this.record_id = "";
|
|
13
13
|
this.context = {};
|
|
14
|
+
/** Conversation history for multi-turn chat. Each turn: { role: "user"|"assistant", content: string }. */
|
|
15
|
+
this.messages = [];
|
|
14
16
|
Object.assign(this, init);
|
|
15
17
|
}
|
|
16
18
|
Validate() {
|
|
@@ -18,6 +18,8 @@ declare class CoreSystemEntitySaveUpdatePayload {
|
|
|
18
18
|
}
|
|
19
19
|
declare class MEntity extends MTableQueries {
|
|
20
20
|
syen_id?: string;
|
|
21
|
+
/** When set (e.g. from entity list page), filter list to this entity and its children only. */
|
|
22
|
+
syen_logged_in_entity_id?: string;
|
|
21
23
|
constructor(init: MEntity);
|
|
22
24
|
Validate?(): Partial<IEntityErrorLogger>;
|
|
23
25
|
}
|
|
@@ -82,8 +82,8 @@ class MSystemPagesThemeInsertUpdatePayload {
|
|
|
82
82
|
else {
|
|
83
83
|
for (let i = 0; i < layout.sytm_layout_drawer.length; i++) {
|
|
84
84
|
const drawer = layout.sytm_layout_drawer[i];
|
|
85
|
-
if (typeof drawer.
|
|
86
|
-
errorLogger.sytm_layout = `Drawer at index ${i} must have
|
|
85
|
+
if (typeof drawer.syth_status !== 'boolean' || typeof drawer.syth_config_syco_for !== 'string') {
|
|
86
|
+
errorLogger.sytm_layout = `Drawer at index ${i} must have syth_status (boolean) and syth_config_syco_for (string) properties!`;
|
|
87
87
|
break;
|
|
88
88
|
}
|
|
89
89
|
}
|
package/lib/routes/aiRoutes.d.ts
CHANGED
package/lib/routes/aiRoutes.js
CHANGED
|
@@ -12,7 +12,10 @@ const aiRoutesUrl = {
|
|
|
12
12
|
adminPromptTemplateSave: "admin/prompt-template/save",
|
|
13
13
|
adminPromptTemplateList: "admin/prompt-template/list",
|
|
14
14
|
adminKnowledgeSourceSync: "admin/knowledge-source/sync",
|
|
15
|
-
adminUsageReport: "admin/usage-report"
|
|
15
|
+
adminUsageReport: "admin/usage-report",
|
|
16
|
+
agentsLaunch: "agents/launch",
|
|
17
|
+
agentsStatus: "agents/:id/status",
|
|
18
|
+
agentsConversation: "agents/:id/conversation"
|
|
16
19
|
};
|
|
17
20
|
exports.aiRoutesUrl = aiRoutesUrl;
|
|
18
21
|
Object.freeze(aiRoutesUrl);
|
|
@@ -10,6 +10,8 @@ declare class ICoreSyth {
|
|
|
10
10
|
interface ICoreSythDrawer {
|
|
11
11
|
syth_status: boolean;
|
|
12
12
|
syth_config_syco_for: string;
|
|
13
|
+
/** Optional JSON config per drawer row (e.g. for drawer_docs: array of doc items with title, url, etc.) */
|
|
14
|
+
syth_config_json?: string | Record<string, unknown> | unknown[];
|
|
13
15
|
core_system_config?: ICoreSyco;
|
|
14
16
|
}
|
|
15
17
|
export { ICoreSyth, // interface
|