@memberjunction/core-entities 2.43.0 → 2.45.0
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/dist/custom/AIAgentExtended.d.ts +13 -0
- package/dist/custom/AIAgentExtended.d.ts.map +1 -0
- package/dist/custom/AIAgentExtended.js +37 -0
- package/dist/custom/AIAgentExtended.js.map +1 -0
- package/dist/custom/AIPromptCategoryExtended.d.ts +6 -0
- package/dist/custom/AIPromptCategoryExtended.d.ts.map +1 -0
- package/dist/custom/AIPromptCategoryExtended.js +26 -0
- package/dist/custom/AIPromptCategoryExtended.js.map +1 -0
- package/dist/custom/AIPromptExtended.d.ts +12 -0
- package/dist/custom/AIPromptExtended.d.ts.map +1 -0
- package/dist/custom/AIPromptExtended.js +30 -0
- package/dist/custom/AIPromptExtended.js.map +1 -0
- package/dist/generated/entity_subclasses.d.ts +767 -85
- package/dist/generated/entity_subclasses.d.ts.map +1 -1
- package/dist/generated/entity_subclasses.js +1065 -39
- package/dist/generated/entity_subclasses.js.map +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
- package/readme.md +268 -1
|
@@ -644,6 +644,7 @@ export declare const AIAgentSchema: z.ZodObject<{
|
|
|
644
644
|
ContextCompressionMessageThreshold: z.ZodNullable<z.ZodNumber>;
|
|
645
645
|
ContextCompressionPromptID: z.ZodNullable<z.ZodString>;
|
|
646
646
|
ContextCompressionMessageRetentionCount: z.ZodNullable<z.ZodNumber>;
|
|
647
|
+
TypeID: z.ZodString;
|
|
647
648
|
Parent: z.ZodNullable<z.ZodString>;
|
|
648
649
|
ContextCompressionPrompt: z.ZodNullable<z.ZodString>;
|
|
649
650
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -662,6 +663,7 @@ export declare const AIAgentSchema: z.ZodObject<{
|
|
|
662
663
|
ContextCompressionMessageThreshold?: number;
|
|
663
664
|
ContextCompressionPromptID?: string;
|
|
664
665
|
ContextCompressionMessageRetentionCount?: number;
|
|
666
|
+
TypeID?: string;
|
|
665
667
|
ContextCompressionPrompt?: string;
|
|
666
668
|
}, {
|
|
667
669
|
ID?: string;
|
|
@@ -679,6 +681,7 @@ export declare const AIAgentSchema: z.ZodObject<{
|
|
|
679
681
|
ContextCompressionMessageThreshold?: number;
|
|
680
682
|
ContextCompressionPromptID?: string;
|
|
681
683
|
ContextCompressionMessageRetentionCount?: number;
|
|
684
|
+
TypeID?: string;
|
|
682
685
|
ContextCompressionPrompt?: string;
|
|
683
686
|
}>;
|
|
684
687
|
export type AIAgentEntityType = z.infer<typeof AIAgentSchema>;
|
|
@@ -867,7 +870,7 @@ export declare const AIPromptSchema: z.ZodObject<{
|
|
|
867
870
|
Status: z.ZodUnion<[z.ZodLiteral<"Pending">, z.ZodLiteral<"Active">, z.ZodLiteral<"Disabled">]>;
|
|
868
871
|
__mj_CreatedAt: z.ZodDate;
|
|
869
872
|
__mj_UpdatedAt: z.ZodDate;
|
|
870
|
-
ResponseFormat: z.ZodUnion<[z.ZodLiteral<"Any">, z.ZodLiteral<"Text">, z.ZodLiteral<"Markdown">, z.ZodLiteral<"ModelSpecific">, z.ZodLiteral<"JSON">]>;
|
|
873
|
+
ResponseFormat: z.ZodUnion<[z.ZodLiteral<"Any">, z.ZodLiteral<"Text">, z.ZodLiteral<"Markdown">, z.ZodLiteral<"JSON">, z.ZodLiteral<"ModelSpecific">, z.ZodLiteral<"JSON">]>;
|
|
871
874
|
ModelSpecificResponseFormat: z.ZodNullable<z.ZodString>;
|
|
872
875
|
AIModelTypeID: z.ZodNullable<z.ZodString>;
|
|
873
876
|
MinPowerRank: z.ZodNullable<z.ZodNumber>;
|
|
@@ -891,6 +894,8 @@ export declare const AIPromptSchema: z.ZodObject<{
|
|
|
891
894
|
CacheMustMatchVendor: z.ZodBoolean;
|
|
892
895
|
CacheMustMatchAgent: z.ZodBoolean;
|
|
893
896
|
CacheMustMatchConfig: z.ZodBoolean;
|
|
897
|
+
PromptRole: z.ZodUnion<[z.ZodLiteral<"System">, z.ZodLiteral<"User">, z.ZodLiteral<"Assistant">, z.ZodLiteral<"SystemOrUser">]>;
|
|
898
|
+
PromptPosition: z.ZodUnion<[z.ZodLiteral<"First">, z.ZodLiteral<"Last">]>;
|
|
894
899
|
Template: z.ZodString;
|
|
895
900
|
Category: z.ZodNullable<z.ZodString>;
|
|
896
901
|
Type: z.ZodString;
|
|
@@ -906,11 +911,11 @@ export declare const AIPromptSchema: z.ZodObject<{
|
|
|
906
911
|
Status?: "Pending" | "Active" | "Disabled";
|
|
907
912
|
Type?: string;
|
|
908
913
|
CategoryID?: string;
|
|
914
|
+
TypeID?: string;
|
|
909
915
|
AIModelTypeID?: string;
|
|
910
916
|
AIModelType?: string;
|
|
911
917
|
TemplateID?: string;
|
|
912
|
-
|
|
913
|
-
ResponseFormat?: "Any" | "Text" | "Markdown" | "ModelSpecific" | "JSON";
|
|
918
|
+
ResponseFormat?: "Any" | "Text" | "Markdown" | "JSON" | "ModelSpecific";
|
|
914
919
|
ModelSpecificResponseFormat?: string;
|
|
915
920
|
MinPowerRank?: number;
|
|
916
921
|
SelectionStrategy?: "Default" | "Specific" | "ByPower";
|
|
@@ -933,6 +938,8 @@ export declare const AIPromptSchema: z.ZodObject<{
|
|
|
933
938
|
CacheMustMatchVendor?: boolean;
|
|
934
939
|
CacheMustMatchAgent?: boolean;
|
|
935
940
|
CacheMustMatchConfig?: boolean;
|
|
941
|
+
PromptRole?: "User" | "System" | "Assistant" | "SystemOrUser";
|
|
942
|
+
PromptPosition?: "First" | "Last";
|
|
936
943
|
Template?: string;
|
|
937
944
|
ResultSelectorPrompt?: string;
|
|
938
945
|
}, {
|
|
@@ -945,11 +952,11 @@ export declare const AIPromptSchema: z.ZodObject<{
|
|
|
945
952
|
Status?: "Pending" | "Active" | "Disabled";
|
|
946
953
|
Type?: string;
|
|
947
954
|
CategoryID?: string;
|
|
955
|
+
TypeID?: string;
|
|
948
956
|
AIModelTypeID?: string;
|
|
949
957
|
AIModelType?: string;
|
|
950
958
|
TemplateID?: string;
|
|
951
|
-
|
|
952
|
-
ResponseFormat?: "Any" | "Text" | "Markdown" | "ModelSpecific" | "JSON";
|
|
959
|
+
ResponseFormat?: "Any" | "Text" | "Markdown" | "JSON" | "ModelSpecific";
|
|
953
960
|
ModelSpecificResponseFormat?: string;
|
|
954
961
|
MinPowerRank?: number;
|
|
955
962
|
SelectionStrategy?: "Default" | "Specific" | "ByPower";
|
|
@@ -972,6 +979,8 @@ export declare const AIPromptSchema: z.ZodObject<{
|
|
|
972
979
|
CacheMustMatchVendor?: boolean;
|
|
973
980
|
CacheMustMatchAgent?: boolean;
|
|
974
981
|
CacheMustMatchConfig?: boolean;
|
|
982
|
+
PromptRole?: "User" | "System" | "Assistant" | "SystemOrUser";
|
|
983
|
+
PromptPosition?: "First" | "Last";
|
|
975
984
|
Template?: string;
|
|
976
985
|
ResultSelectorPrompt?: string;
|
|
977
986
|
}>;
|
|
@@ -2312,8 +2321,8 @@ export declare const DashboardSchema: z.ZodObject<{
|
|
|
2312
2321
|
Thumbnail: z.ZodNullable<z.ZodString>;
|
|
2313
2322
|
Scope: z.ZodUnion<[z.ZodLiteral<"Global">, z.ZodLiteral<"App">]>;
|
|
2314
2323
|
ApplicationID: z.ZodNullable<z.ZodString>;
|
|
2315
|
-
Code: z.ZodNullable<z.ZodString>;
|
|
2316
2324
|
DriverClass: z.ZodNullable<z.ZodString>;
|
|
2325
|
+
Code: z.ZodNullable<z.ZodString>;
|
|
2317
2326
|
User: z.ZodString;
|
|
2318
2327
|
Category: z.ZodNullable<z.ZodString>;
|
|
2319
2328
|
Application: z.ZodNullable<z.ZodString>;
|
|
@@ -2372,6 +2381,7 @@ export declare const DataContextItemSchema: z.ZodObject<{
|
|
|
2372
2381
|
__mj_CreatedAt: z.ZodDate;
|
|
2373
2382
|
__mj_UpdatedAt: z.ZodDate;
|
|
2374
2383
|
Description: z.ZodNullable<z.ZodString>;
|
|
2384
|
+
CodeName: z.ZodNullable<z.ZodString>;
|
|
2375
2385
|
DataContext: z.ZodString;
|
|
2376
2386
|
View: z.ZodNullable<z.ZodString>;
|
|
2377
2387
|
Query: z.ZodNullable<z.ZodString>;
|
|
@@ -2392,6 +2402,7 @@ export declare const DataContextItemSchema: z.ZodObject<{
|
|
|
2392
2402
|
SQL?: string;
|
|
2393
2403
|
DataJSON?: string;
|
|
2394
2404
|
LastRefreshedAt?: Date;
|
|
2405
|
+
CodeName?: string;
|
|
2395
2406
|
View?: string;
|
|
2396
2407
|
Query?: string;
|
|
2397
2408
|
}, {
|
|
@@ -2410,6 +2421,7 @@ export declare const DataContextItemSchema: z.ZodObject<{
|
|
|
2410
2421
|
SQL?: string;
|
|
2411
2422
|
DataJSON?: string;
|
|
2412
2423
|
LastRefreshedAt?: Date;
|
|
2424
|
+
CodeName?: string;
|
|
2413
2425
|
View?: string;
|
|
2414
2426
|
Query?: string;
|
|
2415
2427
|
}>;
|
|
@@ -2875,6 +2887,7 @@ export declare const EntitySchema: z.ZodObject<{
|
|
|
2875
2887
|
ParentID?: string;
|
|
2876
2888
|
Status?: "Active" | "Deprecated" | "Disabled";
|
|
2877
2889
|
Icon?: string;
|
|
2890
|
+
CodeName?: string;
|
|
2878
2891
|
NameSuffix?: string;
|
|
2879
2892
|
AutoUpdateDescription?: boolean;
|
|
2880
2893
|
BaseTable?: string;
|
|
@@ -2923,7 +2936,6 @@ export declare const EntitySchema: z.ZodObject<{
|
|
|
2923
2936
|
AutoRowCountFrequency?: number;
|
|
2924
2937
|
RowCount?: number;
|
|
2925
2938
|
RowCountRunAt?: Date;
|
|
2926
|
-
CodeName?: string;
|
|
2927
2939
|
ClassName?: string;
|
|
2928
2940
|
BaseTableCodeName?: string;
|
|
2929
2941
|
ParentEntity?: string;
|
|
@@ -2938,6 +2950,7 @@ export declare const EntitySchema: z.ZodObject<{
|
|
|
2938
2950
|
ParentID?: string;
|
|
2939
2951
|
Status?: "Active" | "Deprecated" | "Disabled";
|
|
2940
2952
|
Icon?: string;
|
|
2953
|
+
CodeName?: string;
|
|
2941
2954
|
NameSuffix?: string;
|
|
2942
2955
|
AutoUpdateDescription?: boolean;
|
|
2943
2956
|
BaseTable?: string;
|
|
@@ -2986,7 +2999,6 @@ export declare const EntitySchema: z.ZodObject<{
|
|
|
2986
2999
|
AutoRowCountFrequency?: number;
|
|
2987
3000
|
RowCount?: number;
|
|
2988
3001
|
RowCountRunAt?: Date;
|
|
2989
|
-
CodeName?: string;
|
|
2990
3002
|
ClassName?: string;
|
|
2991
3003
|
BaseTableCodeName?: string;
|
|
2992
3004
|
ParentEntity?: string;
|
|
@@ -3383,10 +3395,10 @@ export declare const EntityDocumentSchema: z.ZodObject<{
|
|
|
3383
3395
|
Name?: string;
|
|
3384
3396
|
Status?: "Active" | "Inactive";
|
|
3385
3397
|
Type?: string;
|
|
3398
|
+
TypeID?: string;
|
|
3386
3399
|
AIModelID?: string;
|
|
3387
3400
|
AIModel?: string;
|
|
3388
3401
|
TemplateID?: string;
|
|
3389
|
-
TypeID?: string;
|
|
3390
3402
|
Template?: string;
|
|
3391
3403
|
EntityID?: string;
|
|
3392
3404
|
Entity?: string;
|
|
@@ -3401,10 +3413,10 @@ export declare const EntityDocumentSchema: z.ZodObject<{
|
|
|
3401
3413
|
Name?: string;
|
|
3402
3414
|
Status?: "Active" | "Inactive";
|
|
3403
3415
|
Type?: string;
|
|
3416
|
+
TypeID?: string;
|
|
3404
3417
|
AIModelID?: string;
|
|
3405
3418
|
AIModel?: string;
|
|
3406
3419
|
TemplateID?: string;
|
|
3407
|
-
TypeID?: string;
|
|
3408
3420
|
Template?: string;
|
|
3409
3421
|
EntityID?: string;
|
|
3410
3422
|
Entity?: string;
|
|
@@ -4534,6 +4546,144 @@ export declare const AIAgentPromptSchema: z.ZodObject<{
|
|
|
4534
4546
|
ContextMessageCount?: number;
|
|
4535
4547
|
}>;
|
|
4536
4548
|
export type AIAgentPromptEntityType = z.infer<typeof AIAgentPromptSchema>;
|
|
4549
|
+
/**
|
|
4550
|
+
* zod schema definition for the entity MJ: AI Agent Run Steps
|
|
4551
|
+
*/
|
|
4552
|
+
export declare const AIAgentRunStepSchema: z.ZodObject<{
|
|
4553
|
+
ID: z.ZodString;
|
|
4554
|
+
AgentRunID: z.ZodString;
|
|
4555
|
+
StepNumber: z.ZodNumber;
|
|
4556
|
+
StepType: z.ZodString;
|
|
4557
|
+
StepName: z.ZodString;
|
|
4558
|
+
TargetID: z.ZodNullable<z.ZodString>;
|
|
4559
|
+
Status: z.ZodUnion<[z.ZodLiteral<"Running">, z.ZodLiteral<"Completed">, z.ZodLiteral<"Failed">, z.ZodLiteral<"Cancelled">]>;
|
|
4560
|
+
StartedAt: z.ZodDate;
|
|
4561
|
+
CompletedAt: z.ZodNullable<z.ZodDate>;
|
|
4562
|
+
Success: z.ZodNullable<z.ZodBoolean>;
|
|
4563
|
+
ErrorMessage: z.ZodNullable<z.ZodString>;
|
|
4564
|
+
InputData: z.ZodNullable<z.ZodString>;
|
|
4565
|
+
OutputData: z.ZodNullable<z.ZodString>;
|
|
4566
|
+
__mj_CreatedAt: z.ZodDate;
|
|
4567
|
+
__mj_UpdatedAt: z.ZodDate;
|
|
4568
|
+
}, "strip", z.ZodTypeAny, {
|
|
4569
|
+
Success?: boolean;
|
|
4570
|
+
ID?: string;
|
|
4571
|
+
__mj_CreatedAt?: Date;
|
|
4572
|
+
__mj_UpdatedAt?: Date;
|
|
4573
|
+
Status?: "Failed" | "Running" | "Completed" | "Cancelled";
|
|
4574
|
+
StartedAt?: Date;
|
|
4575
|
+
ErrorMessage?: string;
|
|
4576
|
+
AgentRunID?: string;
|
|
4577
|
+
StepNumber?: number;
|
|
4578
|
+
StepType?: string;
|
|
4579
|
+
StepName?: string;
|
|
4580
|
+
TargetID?: string;
|
|
4581
|
+
CompletedAt?: Date;
|
|
4582
|
+
InputData?: string;
|
|
4583
|
+
OutputData?: string;
|
|
4584
|
+
}, {
|
|
4585
|
+
Success?: boolean;
|
|
4586
|
+
ID?: string;
|
|
4587
|
+
__mj_CreatedAt?: Date;
|
|
4588
|
+
__mj_UpdatedAt?: Date;
|
|
4589
|
+
Status?: "Failed" | "Running" | "Completed" | "Cancelled";
|
|
4590
|
+
StartedAt?: Date;
|
|
4591
|
+
ErrorMessage?: string;
|
|
4592
|
+
AgentRunID?: string;
|
|
4593
|
+
StepNumber?: number;
|
|
4594
|
+
StepType?: string;
|
|
4595
|
+
StepName?: string;
|
|
4596
|
+
TargetID?: string;
|
|
4597
|
+
CompletedAt?: Date;
|
|
4598
|
+
InputData?: string;
|
|
4599
|
+
OutputData?: string;
|
|
4600
|
+
}>;
|
|
4601
|
+
export type AIAgentRunStepEntityType = z.infer<typeof AIAgentRunStepSchema>;
|
|
4602
|
+
/**
|
|
4603
|
+
* zod schema definition for the entity MJ: AI Agent Runs
|
|
4604
|
+
*/
|
|
4605
|
+
export declare const AIAgentRunSchema: z.ZodObject<{
|
|
4606
|
+
ID: z.ZodString;
|
|
4607
|
+
AgentID: z.ZodString;
|
|
4608
|
+
ParentRunID: z.ZodNullable<z.ZodString>;
|
|
4609
|
+
Status: z.ZodUnion<[z.ZodLiteral<"Running">, z.ZodLiteral<"Completed">, z.ZodLiteral<"Paused">, z.ZodLiteral<"Failed">, z.ZodLiteral<"Cancelled">]>;
|
|
4610
|
+
StartedAt: z.ZodDate;
|
|
4611
|
+
CompletedAt: z.ZodNullable<z.ZodDate>;
|
|
4612
|
+
Success: z.ZodNullable<z.ZodBoolean>;
|
|
4613
|
+
ErrorMessage: z.ZodNullable<z.ZodString>;
|
|
4614
|
+
ConversationID: z.ZodNullable<z.ZodString>;
|
|
4615
|
+
UserID: z.ZodNullable<z.ZodString>;
|
|
4616
|
+
Result: z.ZodNullable<z.ZodString>;
|
|
4617
|
+
AgentState: z.ZodNullable<z.ZodString>;
|
|
4618
|
+
TotalTokensUsed: z.ZodNullable<z.ZodNumber>;
|
|
4619
|
+
TotalCost: z.ZodNullable<z.ZodNumber>;
|
|
4620
|
+
__mj_CreatedAt: z.ZodDate;
|
|
4621
|
+
__mj_UpdatedAt: z.ZodDate;
|
|
4622
|
+
}, "strip", z.ZodTypeAny, {
|
|
4623
|
+
Success?: boolean;
|
|
4624
|
+
ID?: string;
|
|
4625
|
+
__mj_CreatedAt?: Date;
|
|
4626
|
+
__mj_UpdatedAt?: Date;
|
|
4627
|
+
Status?: "Failed" | "Running" | "Completed" | "Cancelled" | "Paused";
|
|
4628
|
+
StartedAt?: Date;
|
|
4629
|
+
UserID?: string;
|
|
4630
|
+
AgentID?: string;
|
|
4631
|
+
ErrorMessage?: string;
|
|
4632
|
+
ConversationID?: string;
|
|
4633
|
+
CompletedAt?: Date;
|
|
4634
|
+
ParentRunID?: string;
|
|
4635
|
+
Result?: string;
|
|
4636
|
+
AgentState?: string;
|
|
4637
|
+
TotalTokensUsed?: number;
|
|
4638
|
+
TotalCost?: number;
|
|
4639
|
+
}, {
|
|
4640
|
+
Success?: boolean;
|
|
4641
|
+
ID?: string;
|
|
4642
|
+
__mj_CreatedAt?: Date;
|
|
4643
|
+
__mj_UpdatedAt?: Date;
|
|
4644
|
+
Status?: "Failed" | "Running" | "Completed" | "Cancelled" | "Paused";
|
|
4645
|
+
StartedAt?: Date;
|
|
4646
|
+
UserID?: string;
|
|
4647
|
+
AgentID?: string;
|
|
4648
|
+
ErrorMessage?: string;
|
|
4649
|
+
ConversationID?: string;
|
|
4650
|
+
CompletedAt?: Date;
|
|
4651
|
+
ParentRunID?: string;
|
|
4652
|
+
Result?: string;
|
|
4653
|
+
AgentState?: string;
|
|
4654
|
+
TotalTokensUsed?: number;
|
|
4655
|
+
TotalCost?: number;
|
|
4656
|
+
}>;
|
|
4657
|
+
export type AIAgentRunEntityType = z.infer<typeof AIAgentRunSchema>;
|
|
4658
|
+
/**
|
|
4659
|
+
* zod schema definition for the entity MJ: AI Agent Types
|
|
4660
|
+
*/
|
|
4661
|
+
export declare const AIAgentTypeSchema: z.ZodObject<{
|
|
4662
|
+
ID: z.ZodString;
|
|
4663
|
+
Name: z.ZodString;
|
|
4664
|
+
Description: z.ZodNullable<z.ZodString>;
|
|
4665
|
+
SystemPromptID: z.ZodNullable<z.ZodString>;
|
|
4666
|
+
IsActive: z.ZodBoolean;
|
|
4667
|
+
__mj_CreatedAt: z.ZodDate;
|
|
4668
|
+
__mj_UpdatedAt: z.ZodDate;
|
|
4669
|
+
}, "strip", z.ZodTypeAny, {
|
|
4670
|
+
ID?: string;
|
|
4671
|
+
__mj_CreatedAt?: Date;
|
|
4672
|
+
__mj_UpdatedAt?: Date;
|
|
4673
|
+
Name?: string;
|
|
4674
|
+
Description?: string;
|
|
4675
|
+
IsActive?: boolean;
|
|
4676
|
+
SystemPromptID?: string;
|
|
4677
|
+
}, {
|
|
4678
|
+
ID?: string;
|
|
4679
|
+
__mj_CreatedAt?: Date;
|
|
4680
|
+
__mj_UpdatedAt?: Date;
|
|
4681
|
+
Name?: string;
|
|
4682
|
+
Description?: string;
|
|
4683
|
+
IsActive?: boolean;
|
|
4684
|
+
SystemPromptID?: string;
|
|
4685
|
+
}>;
|
|
4686
|
+
export type AIAgentTypeEntityType = z.infer<typeof AIAgentTypeSchema>;
|
|
4537
4687
|
/**
|
|
4538
4688
|
* zod schema definition for the entity MJ: AI Configuration Params
|
|
4539
4689
|
*/
|
|
@@ -4629,16 +4779,20 @@ export declare const AIModelVendorSchema: z.ZodObject<{
|
|
|
4629
4779
|
SupportsStreaming: z.ZodBoolean;
|
|
4630
4780
|
__mj_CreatedAt: z.ZodDate;
|
|
4631
4781
|
__mj_UpdatedAt: z.ZodDate;
|
|
4782
|
+
TypeID: z.ZodNullable<z.ZodString>;
|
|
4632
4783
|
Model: z.ZodString;
|
|
4633
4784
|
Vendor: z.ZodString;
|
|
4785
|
+
Type: z.ZodNullable<z.ZodString>;
|
|
4634
4786
|
}, "strip", z.ZodTypeAny, {
|
|
4635
4787
|
ID?: string;
|
|
4636
4788
|
__mj_CreatedAt?: Date;
|
|
4637
4789
|
__mj_UpdatedAt?: Date;
|
|
4638
4790
|
Status?: "Active" | "Deprecated" | "Inactive" | "Preview";
|
|
4791
|
+
Type?: string;
|
|
4639
4792
|
ModelID?: string;
|
|
4640
4793
|
Priority?: number;
|
|
4641
4794
|
Model?: string;
|
|
4795
|
+
TypeID?: string;
|
|
4642
4796
|
Vendor?: string;
|
|
4643
4797
|
DriverClass?: string;
|
|
4644
4798
|
DriverImportPath?: string;
|
|
@@ -4654,9 +4808,11 @@ export declare const AIModelVendorSchema: z.ZodObject<{
|
|
|
4654
4808
|
__mj_CreatedAt?: Date;
|
|
4655
4809
|
__mj_UpdatedAt?: Date;
|
|
4656
4810
|
Status?: "Active" | "Deprecated" | "Inactive" | "Preview";
|
|
4811
|
+
Type?: string;
|
|
4657
4812
|
ModelID?: string;
|
|
4658
4813
|
Priority?: number;
|
|
4659
4814
|
Model?: string;
|
|
4815
|
+
TypeID?: string;
|
|
4660
4816
|
Vendor?: string;
|
|
4661
4817
|
DriverClass?: string;
|
|
4662
4818
|
DriverImportPath?: string;
|
|
@@ -4754,6 +4910,10 @@ export declare const AIPromptRunSchema: z.ZodObject<{
|
|
|
4754
4910
|
ErrorMessage: z.ZodNullable<z.ZodString>;
|
|
4755
4911
|
__mj_CreatedAt: z.ZodDate;
|
|
4756
4912
|
__mj_UpdatedAt: z.ZodDate;
|
|
4913
|
+
ParentID: z.ZodNullable<z.ZodString>;
|
|
4914
|
+
RunType: z.ZodUnion<[z.ZodLiteral<"Single">, z.ZodLiteral<"ParallelParent">, z.ZodLiteral<"ParallelChild">, z.ZodLiteral<"ResultSelector">]>;
|
|
4915
|
+
ExecutionOrder: z.ZodNullable<z.ZodNumber>;
|
|
4916
|
+
AgentRunID: z.ZodNullable<z.ZodString>;
|
|
4757
4917
|
Prompt: z.ZodString;
|
|
4758
4918
|
Model: z.ZodString;
|
|
4759
4919
|
Vendor: z.ZodString;
|
|
@@ -4764,10 +4924,12 @@ export declare const AIPromptRunSchema: z.ZodObject<{
|
|
|
4764
4924
|
ID?: string;
|
|
4765
4925
|
__mj_CreatedAt?: Date;
|
|
4766
4926
|
__mj_UpdatedAt?: Date;
|
|
4927
|
+
ParentID?: string;
|
|
4767
4928
|
AgentID?: string;
|
|
4768
4929
|
Agent?: string;
|
|
4769
4930
|
ModelID?: string;
|
|
4770
4931
|
Model?: string;
|
|
4932
|
+
ExecutionOrder?: number;
|
|
4771
4933
|
Vendor?: string;
|
|
4772
4934
|
RunAt?: Date;
|
|
4773
4935
|
VendorID?: string;
|
|
@@ -4776,23 +4938,27 @@ export declare const AIPromptRunSchema: z.ZodObject<{
|
|
|
4776
4938
|
ErrorMessage?: string;
|
|
4777
4939
|
Prompt?: string;
|
|
4778
4940
|
PromptID?: string;
|
|
4941
|
+
AgentRunID?: string;
|
|
4779
4942
|
CompletedAt?: Date;
|
|
4943
|
+
Result?: string;
|
|
4944
|
+
TotalCost?: number;
|
|
4780
4945
|
ExecutionTimeMS?: number;
|
|
4781
4946
|
Messages?: string;
|
|
4782
|
-
Result?: string;
|
|
4783
4947
|
TokensUsed?: number;
|
|
4784
4948
|
TokensPrompt?: number;
|
|
4785
4949
|
TokensCompletion?: number;
|
|
4786
|
-
|
|
4950
|
+
RunType?: "Single" | "ParallelParent" | "ParallelChild" | "ResultSelector";
|
|
4787
4951
|
}, {
|
|
4788
4952
|
Success?: boolean;
|
|
4789
4953
|
ID?: string;
|
|
4790
4954
|
__mj_CreatedAt?: Date;
|
|
4791
4955
|
__mj_UpdatedAt?: Date;
|
|
4956
|
+
ParentID?: string;
|
|
4792
4957
|
AgentID?: string;
|
|
4793
4958
|
Agent?: string;
|
|
4794
4959
|
ModelID?: string;
|
|
4795
4960
|
Model?: string;
|
|
4961
|
+
ExecutionOrder?: number;
|
|
4796
4962
|
Vendor?: string;
|
|
4797
4963
|
RunAt?: Date;
|
|
4798
4964
|
VendorID?: string;
|
|
@@ -4801,14 +4967,16 @@ export declare const AIPromptRunSchema: z.ZodObject<{
|
|
|
4801
4967
|
ErrorMessage?: string;
|
|
4802
4968
|
Prompt?: string;
|
|
4803
4969
|
PromptID?: string;
|
|
4970
|
+
AgentRunID?: string;
|
|
4804
4971
|
CompletedAt?: Date;
|
|
4972
|
+
Result?: string;
|
|
4973
|
+
TotalCost?: number;
|
|
4805
4974
|
ExecutionTimeMS?: number;
|
|
4806
4975
|
Messages?: string;
|
|
4807
|
-
Result?: string;
|
|
4808
4976
|
TokensUsed?: number;
|
|
4809
4977
|
TokensPrompt?: number;
|
|
4810
4978
|
TokensCompletion?: number;
|
|
4811
|
-
|
|
4979
|
+
RunType?: "Single" | "ParallelParent" | "ParallelChild" | "ResultSelector";
|
|
4812
4980
|
}>;
|
|
4813
4981
|
export type AIPromptRunEntityType = z.infer<typeof AIPromptRunSchema>;
|
|
4814
4982
|
/**
|
|
@@ -4853,8 +5021,8 @@ export declare const AIVendorTypeSchema: z.ZodObject<{
|
|
|
4853
5021
|
__mj_UpdatedAt?: Date;
|
|
4854
5022
|
Status?: "Active" | "Deprecated" | "Inactive" | "Preview";
|
|
4855
5023
|
Type?: string;
|
|
4856
|
-
Vendor?: string;
|
|
4857
5024
|
TypeID?: string;
|
|
5025
|
+
Vendor?: string;
|
|
4858
5026
|
VendorID?: string;
|
|
4859
5027
|
Rank?: number;
|
|
4860
5028
|
}, {
|
|
@@ -4863,8 +5031,8 @@ export declare const AIVendorTypeSchema: z.ZodObject<{
|
|
|
4863
5031
|
__mj_UpdatedAt?: Date;
|
|
4864
5032
|
Status?: "Active" | "Deprecated" | "Inactive" | "Preview";
|
|
4865
5033
|
Type?: string;
|
|
4866
|
-
Vendor?: string;
|
|
4867
5034
|
TypeID?: string;
|
|
5035
|
+
Vendor?: string;
|
|
4868
5036
|
VendorID?: string;
|
|
4869
5037
|
Rank?: number;
|
|
4870
5038
|
}>;
|
|
@@ -6544,8 +6712,8 @@ export declare const TemplateContentSchema: z.ZodObject<{
|
|
|
6544
6712
|
Type?: string;
|
|
6545
6713
|
IsActive?: boolean;
|
|
6546
6714
|
Priority?: number;
|
|
6547
|
-
TemplateID?: string;
|
|
6548
6715
|
TypeID?: string;
|
|
6716
|
+
TemplateID?: string;
|
|
6549
6717
|
Template?: string;
|
|
6550
6718
|
TemplateText?: string;
|
|
6551
6719
|
}, {
|
|
@@ -6555,8 +6723,8 @@ export declare const TemplateContentSchema: z.ZodObject<{
|
|
|
6555
6723
|
Type?: string;
|
|
6556
6724
|
IsActive?: boolean;
|
|
6557
6725
|
Priority?: number;
|
|
6558
|
-
TemplateID?: string;
|
|
6559
6726
|
TypeID?: string;
|
|
6727
|
+
TemplateID?: string;
|
|
6560
6728
|
Template?: string;
|
|
6561
6729
|
TemplateText?: string;
|
|
6562
6730
|
}>;
|
|
@@ -9303,6 +9471,16 @@ export declare class AIAgentEntity extends BaseEntity<AIAgentEntityType> {
|
|
|
9303
9471
|
get ContextCompressionMessageRetentionCount(): number | null;
|
|
9304
9472
|
set ContextCompressionMessageRetentionCount(value: number | null);
|
|
9305
9473
|
/**
|
|
9474
|
+
* * Field Name: TypeID
|
|
9475
|
+
* * Display Name: Type ID
|
|
9476
|
+
* * SQL Data Type: uniqueidentifier
|
|
9477
|
+
* * Related Entity/Foreign Key: MJ: AI Agent Types (vwAIAgentTypes.ID)
|
|
9478
|
+
* * Default Value: A7B8C9D0-E1F2-3456-7890-123456789ABC
|
|
9479
|
+
* * Description: Reference to the AIAgentType that defines the category and system-level behavior for this agent. Cannot be null.
|
|
9480
|
+
*/
|
|
9481
|
+
get TypeID(): string;
|
|
9482
|
+
set TypeID(value: string);
|
|
9483
|
+
/**
|
|
9306
9484
|
* * Field Name: Parent
|
|
9307
9485
|
* * Display Name: Parent
|
|
9308
9486
|
* * SQL Data Type: nvarchar(255)
|
|
@@ -9811,11 +9989,11 @@ export declare class AIPromptEntity extends BaseEntity<AIPromptEntityType> {
|
|
|
9811
9989
|
* Validate() method override for AI Prompts entity. This is an auto-generated method that invokes the generated validators for this entity for the following fields:
|
|
9812
9990
|
* * CacheSimilarityThreshold: This rule ensures that if a cache similarity threshold is provided, it must be a value between 0 and 1, inclusive. If no value is provided, that's also allowed.
|
|
9813
9991
|
* * CacheTTLSeconds: This rule ensures that if the cache expiration time in seconds is provided, it must be greater than zero.
|
|
9814
|
-
* * Table-Level: This rule ensures that the ResultSelectorPromptID field must be different from the ID field. In other words, a result selector prompt cannot reference itself.
|
|
9815
9992
|
* * Table-Level: This rule ensures that if the cache match type is set to 'Vector', the cache similarity threshold must be specified. If the match type is anything other than 'Vector', the similarity threshold can be left empty.
|
|
9816
9993
|
* * Table-Level: This rule ensures that if the parallelization mode is set to 'StaticCount', then the number of parallel tasks (ParallelCount) must be provided.
|
|
9817
9994
|
* * Table-Level: This rule ensures that if the Parallelization Mode is set to 'ConfigParam', then the Parallel Config Param field must be filled in. For any other mode, the Parallel Config Param can be left empty.
|
|
9818
9995
|
* * Table-Level: This rule ensures that if the OutputType is set to 'object', an OutputExample must be provided. If the OutputType is anything other than 'object', providing an OutputExample is not required.
|
|
9996
|
+
* * Table-Level: This rule ensures that the ResultSelectorPromptID field must be different from the ID field. In other words, a result selector prompt cannot reference itself.
|
|
9819
9997
|
* @public
|
|
9820
9998
|
* @method
|
|
9821
9999
|
* @override
|
|
@@ -9836,13 +10014,6 @@ export declare class AIPromptEntity extends BaseEntity<AIPromptEntityType> {
|
|
|
9836
10014
|
*/
|
|
9837
10015
|
ValidateCacheTTLSecondsGreaterThanZero(result: ValidationResult): void;
|
|
9838
10016
|
/**
|
|
9839
|
-
* This rule ensures that the ResultSelectorPromptID field must be different from the ID field. In other words, a result selector prompt cannot reference itself.
|
|
9840
|
-
* @param result - the ValidationResult object to add any errors or warnings to
|
|
9841
|
-
* @public
|
|
9842
|
-
* @method
|
|
9843
|
-
*/
|
|
9844
|
-
ValidateResultSelectorPromptIDNotEqualID(result: ValidationResult): void;
|
|
9845
|
-
/**
|
|
9846
10017
|
* This rule ensures that if the cache match type is set to 'Vector', the cache similarity threshold must be specified. If the match type is anything other than 'Vector', the similarity threshold can be left empty.
|
|
9847
10018
|
* @param result - the ValidationResult object to add any errors or warnings to
|
|
9848
10019
|
* @public
|
|
@@ -9871,6 +10042,13 @@ export declare class AIPromptEntity extends BaseEntity<AIPromptEntityType> {
|
|
|
9871
10042
|
*/
|
|
9872
10043
|
ValidateOutputExampleWhenOutputTypeObject(result: ValidationResult): void;
|
|
9873
10044
|
/**
|
|
10045
|
+
* This rule ensures that the ResultSelectorPromptID field must be different from the ID field. In other words, a result selector prompt cannot reference itself.
|
|
10046
|
+
* @param result - the ValidationResult object to add any errors or warnings to
|
|
10047
|
+
* @public
|
|
10048
|
+
* @method
|
|
10049
|
+
*/
|
|
10050
|
+
ValidateResultSelectorPromptIDNotEqualID(result: ValidationResult): void;
|
|
10051
|
+
/**
|
|
9874
10052
|
* * Field Name: ID
|
|
9875
10053
|
* * Display Name: ID
|
|
9876
10054
|
* * SQL Data Type: uniqueidentifier
|
|
@@ -9954,12 +10132,13 @@ export declare class AIPromptEntity extends BaseEntity<AIPromptEntityType> {
|
|
|
9954
10132
|
* * Any
|
|
9955
10133
|
* * Text
|
|
9956
10134
|
* * Markdown
|
|
10135
|
+
* * JSON
|
|
9957
10136
|
* * ModelSpecific
|
|
9958
10137
|
* * JSON
|
|
9959
10138
|
* * Description: Specifies the expected response format for the AI model. Options include Any, Text, Markdown, JSON, and ModelSpecific. Defaults to Any if not specified.
|
|
9960
10139
|
*/
|
|
9961
|
-
get ResponseFormat(): 'Any' | 'Text' | 'Markdown' | 'ModelSpecific' | 'JSON';
|
|
9962
|
-
set ResponseFormat(value: 'Any' | 'Text' | 'Markdown' | 'ModelSpecific' | 'JSON');
|
|
10140
|
+
get ResponseFormat(): 'Any' | 'Text' | 'Markdown' | 'JSON' | 'ModelSpecific' | 'JSON';
|
|
10141
|
+
set ResponseFormat(value: 'Any' | 'Text' | 'Markdown' | 'JSON' | 'ModelSpecific' | 'JSON');
|
|
9963
10142
|
/**
|
|
9964
10143
|
* * Field Name: ModelSpecificResponseFormat
|
|
9965
10144
|
* * Display Name: Model Specific Response Format
|
|
@@ -10199,6 +10378,34 @@ export declare class AIPromptEntity extends BaseEntity<AIPromptEntityType> {
|
|
|
10199
10378
|
get CacheMustMatchConfig(): boolean;
|
|
10200
10379
|
set CacheMustMatchConfig(value: boolean);
|
|
10201
10380
|
/**
|
|
10381
|
+
* * Field Name: PromptRole
|
|
10382
|
+
* * Display Name: Prompt Role
|
|
10383
|
+
* * SQL Data Type: nvarchar(20)
|
|
10384
|
+
* * Default Value: System
|
|
10385
|
+
* * Value List Type: List
|
|
10386
|
+
* * Possible Values
|
|
10387
|
+
* * System
|
|
10388
|
+
* * User
|
|
10389
|
+
* * Assistant
|
|
10390
|
+
* * SystemOrUser
|
|
10391
|
+
* * Description: Determines how the prompt is used in conversation: System (always first message), User (positioned by PromptPosition), Assistant (positioned by PromptPosition), or SystemOrUser (try system first, fallback to user last if system slot taken)
|
|
10392
|
+
*/
|
|
10393
|
+
get PromptRole(): 'System' | 'User' | 'Assistant' | 'SystemOrUser';
|
|
10394
|
+
set PromptRole(value: 'System' | 'User' | 'Assistant' | 'SystemOrUser');
|
|
10395
|
+
/**
|
|
10396
|
+
* * Field Name: PromptPosition
|
|
10397
|
+
* * Display Name: Prompt Position
|
|
10398
|
+
* * SQL Data Type: nvarchar(20)
|
|
10399
|
+
* * Default Value: First
|
|
10400
|
+
* * Value List Type: List
|
|
10401
|
+
* * Possible Values
|
|
10402
|
+
* * First
|
|
10403
|
+
* * Last
|
|
10404
|
+
* * Description: Controls message placement for User and Assistant role prompts: First (beginning of conversation) or Last (end of conversation). Not used for System role prompts which are always first
|
|
10405
|
+
*/
|
|
10406
|
+
get PromptPosition(): 'First' | 'Last';
|
|
10407
|
+
set PromptPosition(value: 'First' | 'Last');
|
|
10408
|
+
/**
|
|
10202
10409
|
* * Field Name: Template
|
|
10203
10410
|
* * Display Name: Template
|
|
10204
10411
|
* * SQL Data Type: nvarchar(255)
|
|
@@ -13880,14 +14087,6 @@ export declare class DashboardEntity extends BaseEntity<DashboardEntityType> {
|
|
|
13880
14087
|
get ApplicationID(): string | null;
|
|
13881
14088
|
set ApplicationID(value: string | null);
|
|
13882
14089
|
/**
|
|
13883
|
-
* * Field Name: Code
|
|
13884
|
-
* * Display Name: Code
|
|
13885
|
-
* * SQL Data Type: nvarchar(255)
|
|
13886
|
-
* * Description: Used to identify the dashboard for code-base dashboards. Allows reuse of the same DriverClass for multiple dashboards that can be rendered differently.
|
|
13887
|
-
*/
|
|
13888
|
-
get Code(): string | null;
|
|
13889
|
-
set Code(value: string | null);
|
|
13890
|
-
/**
|
|
13891
14090
|
* * Field Name: DriverClass
|
|
13892
14091
|
* * Display Name: Driver Class
|
|
13893
14092
|
* * SQL Data Type: nvarchar(255)
|
|
@@ -13896,6 +14095,14 @@ export declare class DashboardEntity extends BaseEntity<DashboardEntityType> {
|
|
|
13896
14095
|
get DriverClass(): string | null;
|
|
13897
14096
|
set DriverClass(value: string | null);
|
|
13898
14097
|
/**
|
|
14098
|
+
* * Field Name: Code
|
|
14099
|
+
* * Display Name: Code
|
|
14100
|
+
* * SQL Data Type: nvarchar(255)
|
|
14101
|
+
* * Description: Used to identify the dashboard for code-base dashboards. Allows reuse of the same DriverClass for multiple dashboards that can be rendered differently.
|
|
14102
|
+
*/
|
|
14103
|
+
get Code(): string | null;
|
|
14104
|
+
set Code(value: string | null);
|
|
14105
|
+
/**
|
|
13899
14106
|
* * Field Name: User
|
|
13900
14107
|
* * Display Name: User
|
|
13901
14108
|
* * SQL Data Type: nvarchar(100)
|
|
@@ -14046,6 +14253,14 @@ export declare class DataContextItemEntity extends BaseEntity<DataContextItemEnt
|
|
|
14046
14253
|
get Description(): string | null;
|
|
14047
14254
|
set Description(value: string | null);
|
|
14048
14255
|
/**
|
|
14256
|
+
* * Field Name: CodeName
|
|
14257
|
+
* * Display Name: Code Name
|
|
14258
|
+
* * SQL Data Type: nvarchar(255)
|
|
14259
|
+
* * Description: Optional programmatic identifier for this data context item. Must be unique within the DataContext and follow JavaScript naming conventions (letters, numbers, underscore, starting with letter or underscore). Used for improved code generation and programmatic access to data context items.
|
|
14260
|
+
*/
|
|
14261
|
+
get CodeName(): string | null;
|
|
14262
|
+
set CodeName(value: string | null);
|
|
14263
|
+
/**
|
|
14049
14264
|
* * Field Name: DataContext
|
|
14050
14265
|
* * Display Name: Data Context
|
|
14051
14266
|
* * SQL Data Type: nvarchar(255)
|
|
@@ -19838,89 +20053,500 @@ export declare class AIAgentPromptEntity extends BaseEntity<AIAgentPromptEntityT
|
|
|
19838
20053
|
get Configuration(): string | null;
|
|
19839
20054
|
}
|
|
19840
20055
|
/**
|
|
19841
|
-
* MJ: AI
|
|
20056
|
+
* MJ: AI Agent Run Steps - strongly typed entity sub-class
|
|
19842
20057
|
* * Schema: __mj
|
|
19843
|
-
* * Base Table:
|
|
19844
|
-
* * Base View:
|
|
20058
|
+
* * Base Table: AIAgentRunStep
|
|
20059
|
+
* * Base View: vwAIAgentRunSteps
|
|
19845
20060
|
* * Primary Key: ID
|
|
19846
20061
|
* @extends {BaseEntity}
|
|
19847
20062
|
* @class
|
|
19848
20063
|
* @public
|
|
19849
20064
|
*/
|
|
19850
|
-
export declare class
|
|
20065
|
+
export declare class AIAgentRunStepEntity extends BaseEntity<AIAgentRunStepEntityType> {
|
|
19851
20066
|
/**
|
|
19852
|
-
* Loads the MJ: AI
|
|
19853
|
-
* @param ID: string - primary key value to load the MJ: AI
|
|
20067
|
+
* Loads the MJ: AI Agent Run Steps record from the database
|
|
20068
|
+
* @param ID: string - primary key value to load the MJ: AI Agent Run Steps record.
|
|
19854
20069
|
* @param EntityRelationshipsToLoad - (optional) the relationships to load
|
|
19855
20070
|
* @returns {Promise<boolean>} - true if successful, false otherwise
|
|
19856
20071
|
* @public
|
|
19857
20072
|
* @async
|
|
19858
|
-
* @memberof
|
|
20073
|
+
* @memberof AIAgentRunStepEntity
|
|
19859
20074
|
* @method
|
|
19860
20075
|
* @override
|
|
19861
20076
|
*/
|
|
19862
20077
|
Load(ID: string, EntityRelationshipsToLoad?: string[]): Promise<boolean>;
|
|
19863
20078
|
/**
|
|
20079
|
+
* Validate() method override for MJ: AI Agent Run Steps entity. This is an auto-generated method that invokes the generated validators for this entity for the following fields:
|
|
20080
|
+
* * StepNumber: This rule ensures that the step number must always be greater than zero.
|
|
20081
|
+
* @public
|
|
20082
|
+
* @method
|
|
20083
|
+
* @override
|
|
20084
|
+
*/
|
|
20085
|
+
Validate(): ValidationResult;
|
|
20086
|
+
/**
|
|
20087
|
+
* This rule ensures that the step number must always be greater than zero.
|
|
20088
|
+
* @param result - the ValidationResult object to add any errors or warnings to
|
|
20089
|
+
* @public
|
|
20090
|
+
* @method
|
|
20091
|
+
*/
|
|
20092
|
+
ValidateStepNumberGreaterThanZero(result: ValidationResult): void;
|
|
20093
|
+
/**
|
|
19864
20094
|
* * Field Name: ID
|
|
19865
20095
|
* * Display Name: ID
|
|
19866
20096
|
* * SQL Data Type: uniqueidentifier
|
|
19867
20097
|
* * Default Value: newsequentialid()
|
|
20098
|
+
* * Description: Unique identifier for this execution step
|
|
19868
20099
|
*/
|
|
19869
20100
|
get ID(): string;
|
|
19870
20101
|
/**
|
|
19871
|
-
* * Field Name:
|
|
19872
|
-
* * Display Name:
|
|
20102
|
+
* * Field Name: AgentRunID
|
|
20103
|
+
* * Display Name: Agent Run ID
|
|
19873
20104
|
* * SQL Data Type: uniqueidentifier
|
|
19874
|
-
* * Related Entity/Foreign Key: MJ: AI
|
|
20105
|
+
* * Related Entity/Foreign Key: MJ: AI Agent Runs (vwAIAgentRuns.ID)
|
|
20106
|
+
* * Description: Reference to the parent AIAgentRun that contains this step
|
|
19875
20107
|
*/
|
|
19876
|
-
get
|
|
19877
|
-
set
|
|
20108
|
+
get AgentRunID(): string;
|
|
20109
|
+
set AgentRunID(value: string);
|
|
19878
20110
|
/**
|
|
19879
|
-
* * Field Name:
|
|
19880
|
-
* * Display Name:
|
|
19881
|
-
* * SQL Data Type:
|
|
19882
|
-
* * Description:
|
|
20111
|
+
* * Field Name: StepNumber
|
|
20112
|
+
* * Display Name: Step Number
|
|
20113
|
+
* * SQL Data Type: int
|
|
20114
|
+
* * Description: Sequential number of this step within the agent run, starting from 1
|
|
19883
20115
|
*/
|
|
19884
|
-
get
|
|
19885
|
-
set
|
|
20116
|
+
get StepNumber(): number;
|
|
20117
|
+
set StepNumber(value: number);
|
|
19886
20118
|
/**
|
|
19887
|
-
* * Field Name:
|
|
19888
|
-
* * Display Name: Type
|
|
19889
|
-
* * SQL Data Type: nvarchar(
|
|
19890
|
-
* *
|
|
19891
|
-
* * Value List Type: List
|
|
19892
|
-
* * Possible Values
|
|
19893
|
-
* * string
|
|
19894
|
-
* * number
|
|
19895
|
-
* * boolean
|
|
19896
|
-
* * date
|
|
19897
|
-
* * object
|
|
19898
|
-
* * Description: The data type of the parameter (string, number, boolean, date, object).
|
|
20119
|
+
* * Field Name: StepType
|
|
20120
|
+
* * Display Name: Step Type
|
|
20121
|
+
* * SQL Data Type: nvarchar(50)
|
|
20122
|
+
* * Description: Type of execution step: prompt, tool, subagent, decision
|
|
19899
20123
|
*/
|
|
19900
|
-
get
|
|
19901
|
-
set
|
|
20124
|
+
get StepType(): string;
|
|
20125
|
+
set StepType(value: string);
|
|
19902
20126
|
/**
|
|
19903
|
-
* * Field Name:
|
|
19904
|
-
* * Display Name:
|
|
19905
|
-
* * SQL Data Type: nvarchar(
|
|
19906
|
-
* * Description:
|
|
20127
|
+
* * Field Name: StepName
|
|
20128
|
+
* * Display Name: Step Name
|
|
20129
|
+
* * SQL Data Type: nvarchar(255)
|
|
20130
|
+
* * Description: Human-readable name of what this step accomplishes
|
|
19907
20131
|
*/
|
|
19908
|
-
get
|
|
19909
|
-
set
|
|
20132
|
+
get StepName(): string;
|
|
20133
|
+
set StepName(value: string);
|
|
19910
20134
|
/**
|
|
19911
|
-
* * Field Name:
|
|
19912
|
-
* * Display Name:
|
|
19913
|
-
* * SQL Data Type:
|
|
19914
|
-
* * Description:
|
|
20135
|
+
* * Field Name: TargetID
|
|
20136
|
+
* * Display Name: Target ID
|
|
20137
|
+
* * SQL Data Type: uniqueidentifier
|
|
20138
|
+
* * Description: ID of the specific target being executed (AIPrompt.ID, AIAction.ID, AIAgent.ID, etc.). NULL for steps that don't target a specific entity.
|
|
19915
20139
|
*/
|
|
19916
|
-
get
|
|
19917
|
-
set
|
|
20140
|
+
get TargetID(): string | null;
|
|
20141
|
+
set TargetID(value: string | null);
|
|
19918
20142
|
/**
|
|
19919
|
-
* * Field Name:
|
|
19920
|
-
* * Display Name:
|
|
19921
|
-
* * SQL Data Type:
|
|
19922
|
-
* * Default Value:
|
|
19923
|
-
|
|
20143
|
+
* * Field Name: Status
|
|
20144
|
+
* * Display Name: Status
|
|
20145
|
+
* * SQL Data Type: nvarchar(50)
|
|
20146
|
+
* * Default Value: Running
|
|
20147
|
+
* * Value List Type: List
|
|
20148
|
+
* * Possible Values
|
|
20149
|
+
* * Running
|
|
20150
|
+
* * Completed
|
|
20151
|
+
* * Failed
|
|
20152
|
+
* * Cancelled
|
|
20153
|
+
* * Description: Current execution status of this step: Running, Completed, Failed, Cancelled
|
|
20154
|
+
*/
|
|
20155
|
+
get Status(): 'Running' | 'Completed' | 'Failed' | 'Cancelled';
|
|
20156
|
+
set Status(value: 'Running' | 'Completed' | 'Failed' | 'Cancelled');
|
|
20157
|
+
/**
|
|
20158
|
+
* * Field Name: StartedAt
|
|
20159
|
+
* * Display Name: Started At
|
|
20160
|
+
* * SQL Data Type: datetimeoffset
|
|
20161
|
+
* * Default Value: sysdatetimeoffset()
|
|
20162
|
+
* * Description: Timestamp when this step began execution
|
|
20163
|
+
*/
|
|
20164
|
+
get StartedAt(): Date;
|
|
20165
|
+
set StartedAt(value: Date);
|
|
20166
|
+
/**
|
|
20167
|
+
* * Field Name: CompletedAt
|
|
20168
|
+
* * Display Name: Completed At
|
|
20169
|
+
* * SQL Data Type: datetimeoffset
|
|
20170
|
+
* * Description: Timestamp when this step completed. NULL while still running.
|
|
20171
|
+
*/
|
|
20172
|
+
get CompletedAt(): Date | null;
|
|
20173
|
+
set CompletedAt(value: Date | null);
|
|
20174
|
+
/**
|
|
20175
|
+
* * Field Name: Success
|
|
20176
|
+
* * Display Name: Success
|
|
20177
|
+
* * SQL Data Type: bit
|
|
20178
|
+
* * Description: Whether this step completed successfully. NULL while running, TRUE/FALSE when completed.
|
|
20179
|
+
*/
|
|
20180
|
+
get Success(): boolean | null;
|
|
20181
|
+
set Success(value: boolean | null);
|
|
20182
|
+
/**
|
|
20183
|
+
* * Field Name: ErrorMessage
|
|
20184
|
+
* * Display Name: Error Message
|
|
20185
|
+
* * SQL Data Type: nvarchar(MAX)
|
|
20186
|
+
* * Description: Error message if this step failed. NULL for successful steps.
|
|
20187
|
+
*/
|
|
20188
|
+
get ErrorMessage(): string | null;
|
|
20189
|
+
set ErrorMessage(value: string | null);
|
|
20190
|
+
/**
|
|
20191
|
+
* * Field Name: InputData
|
|
20192
|
+
* * Display Name: Input Data
|
|
20193
|
+
* * SQL Data Type: nvarchar(MAX)
|
|
20194
|
+
* * Description: JSON serialization of input data passed to this step for execution
|
|
20195
|
+
*/
|
|
20196
|
+
get InputData(): string | null;
|
|
20197
|
+
set InputData(value: string | null);
|
|
20198
|
+
/**
|
|
20199
|
+
* * Field Name: OutputData
|
|
20200
|
+
* * Display Name: Output Data
|
|
20201
|
+
* * SQL Data Type: nvarchar(MAX)
|
|
20202
|
+
* * Description: JSON serialization of the output data produced by this step
|
|
20203
|
+
*/
|
|
20204
|
+
get OutputData(): string | null;
|
|
20205
|
+
set OutputData(value: string | null);
|
|
20206
|
+
/**
|
|
20207
|
+
* * Field Name: __mj_CreatedAt
|
|
20208
|
+
* * Display Name: Created At
|
|
20209
|
+
* * SQL Data Type: datetimeoffset
|
|
20210
|
+
* * Default Value: getutcdate()
|
|
20211
|
+
*/
|
|
20212
|
+
get __mj_CreatedAt(): Date;
|
|
20213
|
+
/**
|
|
20214
|
+
* * Field Name: __mj_UpdatedAt
|
|
20215
|
+
* * Display Name: Updated At
|
|
20216
|
+
* * SQL Data Type: datetimeoffset
|
|
20217
|
+
* * Default Value: getutcdate()
|
|
20218
|
+
*/
|
|
20219
|
+
get __mj_UpdatedAt(): Date;
|
|
20220
|
+
}
|
|
20221
|
+
/**
|
|
20222
|
+
* MJ: AI Agent Runs - strongly typed entity sub-class
|
|
20223
|
+
* * Schema: __mj
|
|
20224
|
+
* * Base Table: AIAgentRun
|
|
20225
|
+
* * Base View: vwAIAgentRuns
|
|
20226
|
+
* * Primary Key: ID
|
|
20227
|
+
* @extends {BaseEntity}
|
|
20228
|
+
* @class
|
|
20229
|
+
* @public
|
|
20230
|
+
*/
|
|
20231
|
+
export declare class AIAgentRunEntity extends BaseEntity<AIAgentRunEntityType> {
|
|
20232
|
+
/**
|
|
20233
|
+
* Loads the MJ: AI Agent Runs record from the database
|
|
20234
|
+
* @param ID: string - primary key value to load the MJ: AI Agent Runs record.
|
|
20235
|
+
* @param EntityRelationshipsToLoad - (optional) the relationships to load
|
|
20236
|
+
* @returns {Promise<boolean>} - true if successful, false otherwise
|
|
20237
|
+
* @public
|
|
20238
|
+
* @async
|
|
20239
|
+
* @memberof AIAgentRunEntity
|
|
20240
|
+
* @method
|
|
20241
|
+
* @override
|
|
20242
|
+
*/
|
|
20243
|
+
Load(ID: string, EntityRelationshipsToLoad?: string[]): Promise<boolean>;
|
|
20244
|
+
/**
|
|
20245
|
+
* * Field Name: ID
|
|
20246
|
+
* * Display Name: ID
|
|
20247
|
+
* * SQL Data Type: uniqueidentifier
|
|
20248
|
+
* * Default Value: newsequentialid()
|
|
20249
|
+
* * Description: Unique identifier for this agent run
|
|
20250
|
+
*/
|
|
20251
|
+
get ID(): string;
|
|
20252
|
+
/**
|
|
20253
|
+
* * Field Name: AgentID
|
|
20254
|
+
* * Display Name: Agent ID
|
|
20255
|
+
* * SQL Data Type: uniqueidentifier
|
|
20256
|
+
* * Related Entity/Foreign Key: AI Agents (vwAIAgents.ID)
|
|
20257
|
+
* * Description: Reference to the AIAgent that is being executed in this run
|
|
20258
|
+
*/
|
|
20259
|
+
get AgentID(): string;
|
|
20260
|
+
set AgentID(value: string);
|
|
20261
|
+
/**
|
|
20262
|
+
* * Field Name: ParentRunID
|
|
20263
|
+
* * Display Name: Parent Run ID
|
|
20264
|
+
* * SQL Data Type: uniqueidentifier
|
|
20265
|
+
* * Related Entity/Foreign Key: MJ: AI Agent Runs (vwAIAgentRuns.ID)
|
|
20266
|
+
* * Description: Reference to the parent agent run if this is a sub-agent execution. NULL for root-level agent runs. Enables hierarchical execution tracking.
|
|
20267
|
+
*/
|
|
20268
|
+
get ParentRunID(): string | null;
|
|
20269
|
+
set ParentRunID(value: string | null);
|
|
20270
|
+
/**
|
|
20271
|
+
* * Field Name: Status
|
|
20272
|
+
* * Display Name: Status
|
|
20273
|
+
* * SQL Data Type: nvarchar(50)
|
|
20274
|
+
* * Default Value: Running
|
|
20275
|
+
* * Value List Type: List
|
|
20276
|
+
* * Possible Values
|
|
20277
|
+
* * Running
|
|
20278
|
+
* * Completed
|
|
20279
|
+
* * Paused
|
|
20280
|
+
* * Failed
|
|
20281
|
+
* * Cancelled
|
|
20282
|
+
* * Description: Current status of the agent run. Running -> Completed/Failed/Cancelled
|
|
20283
|
+
*/
|
|
20284
|
+
get Status(): 'Running' | 'Completed' | 'Paused' | 'Failed' | 'Cancelled';
|
|
20285
|
+
set Status(value: 'Running' | 'Completed' | 'Paused' | 'Failed' | 'Cancelled');
|
|
20286
|
+
/**
|
|
20287
|
+
* * Field Name: StartedAt
|
|
20288
|
+
* * Display Name: Started At
|
|
20289
|
+
* * SQL Data Type: datetimeoffset
|
|
20290
|
+
* * Default Value: sysdatetimeoffset()
|
|
20291
|
+
* * Description: Timestamp when the agent run began execution
|
|
20292
|
+
*/
|
|
20293
|
+
get StartedAt(): Date;
|
|
20294
|
+
set StartedAt(value: Date);
|
|
20295
|
+
/**
|
|
20296
|
+
* * Field Name: CompletedAt
|
|
20297
|
+
* * Display Name: Completed At
|
|
20298
|
+
* * SQL Data Type: datetimeoffset
|
|
20299
|
+
* * Description: Timestamp when the agent run completed (successfully or with failure). NULL while running.
|
|
20300
|
+
*/
|
|
20301
|
+
get CompletedAt(): Date | null;
|
|
20302
|
+
set CompletedAt(value: Date | null);
|
|
20303
|
+
/**
|
|
20304
|
+
* * Field Name: Success
|
|
20305
|
+
* * Display Name: Success
|
|
20306
|
+
* * SQL Data Type: bit
|
|
20307
|
+
* * Description: Indicates whether the agent run completed successfully. NULL while running, TRUE/FALSE when completed.
|
|
20308
|
+
*/
|
|
20309
|
+
get Success(): boolean | null;
|
|
20310
|
+
set Success(value: boolean | null);
|
|
20311
|
+
/**
|
|
20312
|
+
* * Field Name: ErrorMessage
|
|
20313
|
+
* * Display Name: Error Message
|
|
20314
|
+
* * SQL Data Type: nvarchar(MAX)
|
|
20315
|
+
* * Description: Error message if the agent run failed. NULL for successful runs.
|
|
20316
|
+
*/
|
|
20317
|
+
get ErrorMessage(): string | null;
|
|
20318
|
+
set ErrorMessage(value: string | null);
|
|
20319
|
+
/**
|
|
20320
|
+
* * Field Name: ConversationID
|
|
20321
|
+
* * Display Name: Conversation ID
|
|
20322
|
+
* * SQL Data Type: uniqueidentifier
|
|
20323
|
+
* * Related Entity/Foreign Key: Conversations (vwConversations.ID)
|
|
20324
|
+
* * Description: Identifier linking multiple agent runs that are part of the same conversation or user session
|
|
20325
|
+
*/
|
|
20326
|
+
get ConversationID(): string | null;
|
|
20327
|
+
set ConversationID(value: string | null);
|
|
20328
|
+
/**
|
|
20329
|
+
* * Field Name: UserID
|
|
20330
|
+
* * Display Name: User ID
|
|
20331
|
+
* * SQL Data Type: uniqueidentifier
|
|
20332
|
+
* * Related Entity/Foreign Key: Users (vwUsers.ID)
|
|
20333
|
+
* * Description: User context identifier for authentication and permissions during the agent run
|
|
20334
|
+
*/
|
|
20335
|
+
get UserID(): string | null;
|
|
20336
|
+
set UserID(value: string | null);
|
|
20337
|
+
/**
|
|
20338
|
+
* * Field Name: Result
|
|
20339
|
+
* * Display Name: Result
|
|
20340
|
+
* * SQL Data Type: nvarchar(MAX)
|
|
20341
|
+
* * Description: Final result or output from the agent execution, stored as JSON or text
|
|
20342
|
+
*/
|
|
20343
|
+
get Result(): string | null;
|
|
20344
|
+
set Result(value: string | null);
|
|
20345
|
+
/**
|
|
20346
|
+
* * Field Name: AgentState
|
|
20347
|
+
* * Display Name: Agent State
|
|
20348
|
+
* * SQL Data Type: nvarchar(MAX)
|
|
20349
|
+
* * Description: JSON serialization of the complete agent state, including conversation context, variables, and execution state. Enables pause/resume functionality.
|
|
20350
|
+
*/
|
|
20351
|
+
get AgentState(): string | null;
|
|
20352
|
+
set AgentState(value: string | null);
|
|
20353
|
+
/**
|
|
20354
|
+
* * Field Name: TotalTokensUsed
|
|
20355
|
+
* * Display Name: Total Tokens Used
|
|
20356
|
+
* * SQL Data Type: int
|
|
20357
|
+
* * Default Value: 0
|
|
20358
|
+
* * Description: Total number of tokens consumed by all LLM calls during this agent run
|
|
20359
|
+
*/
|
|
20360
|
+
get TotalTokensUsed(): number | null;
|
|
20361
|
+
set TotalTokensUsed(value: number | null);
|
|
20362
|
+
/**
|
|
20363
|
+
* * Field Name: TotalCost
|
|
20364
|
+
* * Display Name: Total Cost
|
|
20365
|
+
* * SQL Data Type: decimal(18, 6)
|
|
20366
|
+
* * Default Value: 0.000000
|
|
20367
|
+
* * Description: Total estimated cost for all AI model usage during this agent run
|
|
20368
|
+
*/
|
|
20369
|
+
get TotalCost(): number | null;
|
|
20370
|
+
set TotalCost(value: number | null);
|
|
20371
|
+
/**
|
|
20372
|
+
* * Field Name: __mj_CreatedAt
|
|
20373
|
+
* * Display Name: Created At
|
|
20374
|
+
* * SQL Data Type: datetimeoffset
|
|
20375
|
+
* * Default Value: getutcdate()
|
|
20376
|
+
*/
|
|
20377
|
+
get __mj_CreatedAt(): Date;
|
|
20378
|
+
/**
|
|
20379
|
+
* * Field Name: __mj_UpdatedAt
|
|
20380
|
+
* * Display Name: Updated At
|
|
20381
|
+
* * SQL Data Type: datetimeoffset
|
|
20382
|
+
* * Default Value: getutcdate()
|
|
20383
|
+
*/
|
|
20384
|
+
get __mj_UpdatedAt(): Date;
|
|
20385
|
+
}
|
|
20386
|
+
/**
|
|
20387
|
+
* MJ: AI Agent Types - strongly typed entity sub-class
|
|
20388
|
+
* * Schema: __mj
|
|
20389
|
+
* * Base Table: AIAgentType
|
|
20390
|
+
* * Base View: vwAIAgentTypes
|
|
20391
|
+
* * Primary Key: ID
|
|
20392
|
+
* @extends {BaseEntity}
|
|
20393
|
+
* @class
|
|
20394
|
+
* @public
|
|
20395
|
+
*/
|
|
20396
|
+
export declare class AIAgentTypeEntity extends BaseEntity<AIAgentTypeEntityType> {
|
|
20397
|
+
/**
|
|
20398
|
+
* Loads the MJ: AI Agent Types record from the database
|
|
20399
|
+
* @param ID: string - primary key value to load the MJ: AI Agent Types record.
|
|
20400
|
+
* @param EntityRelationshipsToLoad - (optional) the relationships to load
|
|
20401
|
+
* @returns {Promise<boolean>} - true if successful, false otherwise
|
|
20402
|
+
* @public
|
|
20403
|
+
* @async
|
|
20404
|
+
* @memberof AIAgentTypeEntity
|
|
20405
|
+
* @method
|
|
20406
|
+
* @override
|
|
20407
|
+
*/
|
|
20408
|
+
Load(ID: string, EntityRelationshipsToLoad?: string[]): Promise<boolean>;
|
|
20409
|
+
/**
|
|
20410
|
+
* * Field Name: ID
|
|
20411
|
+
* * Display Name: ID
|
|
20412
|
+
* * SQL Data Type: uniqueidentifier
|
|
20413
|
+
* * Default Value: newsequentialid()
|
|
20414
|
+
* * Description: Unique identifier for the agent type
|
|
20415
|
+
*/
|
|
20416
|
+
get ID(): string;
|
|
20417
|
+
/**
|
|
20418
|
+
* * Field Name: Name
|
|
20419
|
+
* * Display Name: Name
|
|
20420
|
+
* * SQL Data Type: nvarchar(100)
|
|
20421
|
+
* * Description: Unique name of the agent type (e.g., "Base", "CustomerSupport", "DataAnalysis"). Used for programmatic identification and factory instantiation.
|
|
20422
|
+
*/
|
|
20423
|
+
get Name(): string;
|
|
20424
|
+
set Name(value: string);
|
|
20425
|
+
/**
|
|
20426
|
+
* * Field Name: Description
|
|
20427
|
+
* * Display Name: Description
|
|
20428
|
+
* * SQL Data Type: nvarchar(MAX)
|
|
20429
|
+
* * Description: Detailed description of the agent type, its purpose, and typical use cases
|
|
20430
|
+
*/
|
|
20431
|
+
get Description(): string | null;
|
|
20432
|
+
set Description(value: string | null);
|
|
20433
|
+
/**
|
|
20434
|
+
* * Field Name: SystemPromptID
|
|
20435
|
+
* * Display Name: System Prompt ID
|
|
20436
|
+
* * SQL Data Type: uniqueidentifier
|
|
20437
|
+
* * Related Entity/Foreign Key: AI Prompts (vwAIPrompts.ID)
|
|
20438
|
+
* * Description: Reference to the AI Prompt that contains the system-level instructions for all agents of this type. This prompt will be blended with individual agent prompts.
|
|
20439
|
+
*/
|
|
20440
|
+
get SystemPromptID(): string | null;
|
|
20441
|
+
set SystemPromptID(value: string | null);
|
|
20442
|
+
/**
|
|
20443
|
+
* * Field Name: IsActive
|
|
20444
|
+
* * Display Name: Is Active
|
|
20445
|
+
* * SQL Data Type: bit
|
|
20446
|
+
* * Default Value: 1
|
|
20447
|
+
* * Description: Indicates whether this agent type is available for use. Inactive types cannot be assigned to new agents.
|
|
20448
|
+
*/
|
|
20449
|
+
get IsActive(): boolean;
|
|
20450
|
+
set IsActive(value: boolean);
|
|
20451
|
+
/**
|
|
20452
|
+
* * Field Name: __mj_CreatedAt
|
|
20453
|
+
* * Display Name: Created At
|
|
20454
|
+
* * SQL Data Type: datetimeoffset
|
|
20455
|
+
* * Default Value: getutcdate()
|
|
20456
|
+
*/
|
|
20457
|
+
get __mj_CreatedAt(): Date;
|
|
20458
|
+
/**
|
|
20459
|
+
* * Field Name: __mj_UpdatedAt
|
|
20460
|
+
* * Display Name: Updated At
|
|
20461
|
+
* * SQL Data Type: datetimeoffset
|
|
20462
|
+
* * Default Value: getutcdate()
|
|
20463
|
+
*/
|
|
20464
|
+
get __mj_UpdatedAt(): Date;
|
|
20465
|
+
}
|
|
20466
|
+
/**
|
|
20467
|
+
* MJ: AI Configuration Params - strongly typed entity sub-class
|
|
20468
|
+
* * Schema: __mj
|
|
20469
|
+
* * Base Table: AIConfigurationParam
|
|
20470
|
+
* * Base View: vwAIConfigurationParams
|
|
20471
|
+
* * Primary Key: ID
|
|
20472
|
+
* @extends {BaseEntity}
|
|
20473
|
+
* @class
|
|
20474
|
+
* @public
|
|
20475
|
+
*/
|
|
20476
|
+
export declare class AIConfigurationParamEntity extends BaseEntity<AIConfigurationParamEntityType> {
|
|
20477
|
+
/**
|
|
20478
|
+
* Loads the MJ: AI Configuration Params record from the database
|
|
20479
|
+
* @param ID: string - primary key value to load the MJ: AI Configuration Params record.
|
|
20480
|
+
* @param EntityRelationshipsToLoad - (optional) the relationships to load
|
|
20481
|
+
* @returns {Promise<boolean>} - true if successful, false otherwise
|
|
20482
|
+
* @public
|
|
20483
|
+
* @async
|
|
20484
|
+
* @memberof AIConfigurationParamEntity
|
|
20485
|
+
* @method
|
|
20486
|
+
* @override
|
|
20487
|
+
*/
|
|
20488
|
+
Load(ID: string, EntityRelationshipsToLoad?: string[]): Promise<boolean>;
|
|
20489
|
+
/**
|
|
20490
|
+
* * Field Name: ID
|
|
20491
|
+
* * Display Name: ID
|
|
20492
|
+
* * SQL Data Type: uniqueidentifier
|
|
20493
|
+
* * Default Value: newsequentialid()
|
|
20494
|
+
*/
|
|
20495
|
+
get ID(): string;
|
|
20496
|
+
/**
|
|
20497
|
+
* * Field Name: ConfigurationID
|
|
20498
|
+
* * Display Name: Configuration ID
|
|
20499
|
+
* * SQL Data Type: uniqueidentifier
|
|
20500
|
+
* * Related Entity/Foreign Key: MJ: AI Configurations (vwAIConfigurations.ID)
|
|
20501
|
+
*/
|
|
20502
|
+
get ConfigurationID(): string;
|
|
20503
|
+
set ConfigurationID(value: string);
|
|
20504
|
+
/**
|
|
20505
|
+
* * Field Name: Name
|
|
20506
|
+
* * Display Name: Name
|
|
20507
|
+
* * SQL Data Type: nvarchar(100)
|
|
20508
|
+
* * Description: The name of the configuration parameter.
|
|
20509
|
+
*/
|
|
20510
|
+
get Name(): string;
|
|
20511
|
+
set Name(value: string);
|
|
20512
|
+
/**
|
|
20513
|
+
* * Field Name: Type
|
|
20514
|
+
* * Display Name: Type
|
|
20515
|
+
* * SQL Data Type: nvarchar(20)
|
|
20516
|
+
* * Default Value: string
|
|
20517
|
+
* * Value List Type: List
|
|
20518
|
+
* * Possible Values
|
|
20519
|
+
* * string
|
|
20520
|
+
* * number
|
|
20521
|
+
* * boolean
|
|
20522
|
+
* * date
|
|
20523
|
+
* * object
|
|
20524
|
+
* * Description: The data type of the parameter (string, number, boolean, date, object).
|
|
20525
|
+
*/
|
|
20526
|
+
get Type(): 'string' | 'number' | 'boolean' | 'date' | 'object';
|
|
20527
|
+
set Type(value: 'string' | 'number' | 'boolean' | 'date' | 'object');
|
|
20528
|
+
/**
|
|
20529
|
+
* * Field Name: Value
|
|
20530
|
+
* * Display Name: Value
|
|
20531
|
+
* * SQL Data Type: nvarchar(MAX)
|
|
20532
|
+
* * Description: The value of the parameter, stored as a string but interpreted according to the Type.
|
|
20533
|
+
*/
|
|
20534
|
+
get Value(): string;
|
|
20535
|
+
set Value(value: string);
|
|
20536
|
+
/**
|
|
20537
|
+
* * Field Name: Description
|
|
20538
|
+
* * Display Name: Description
|
|
20539
|
+
* * SQL Data Type: nvarchar(MAX)
|
|
20540
|
+
* * Description: Detailed description of the parameter and its usage.
|
|
20541
|
+
*/
|
|
20542
|
+
get Description(): string | null;
|
|
20543
|
+
set Description(value: string | null);
|
|
20544
|
+
/**
|
|
20545
|
+
* * Field Name: __mj_CreatedAt
|
|
20546
|
+
* * Display Name: Created At
|
|
20547
|
+
* * SQL Data Type: datetimeoffset
|
|
20548
|
+
* * Default Value: getutcdate()
|
|
20549
|
+
*/
|
|
19924
20550
|
get __mj_CreatedAt(): Date;
|
|
19925
20551
|
/**
|
|
19926
20552
|
* * Field Name: __mj_UpdatedAt
|
|
@@ -20234,6 +20860,15 @@ export declare class AIModelVendorEntity extends BaseEntity<AIModelVendorEntityT
|
|
|
20234
20860
|
*/
|
|
20235
20861
|
get __mj_UpdatedAt(): Date;
|
|
20236
20862
|
/**
|
|
20863
|
+
* * Field Name: TypeID
|
|
20864
|
+
* * Display Name: Type ID
|
|
20865
|
+
* * SQL Data Type: uniqueidentifier
|
|
20866
|
+
* * Related Entity/Foreign Key: MJ: AI Vendor Type Definitions (vwAIVendorTypeDefinitions.ID)
|
|
20867
|
+
* * Description: References the type/role of the vendor for this model (e.g., model developer, inference provider)
|
|
20868
|
+
*/
|
|
20869
|
+
get TypeID(): string | null;
|
|
20870
|
+
set TypeID(value: string | null);
|
|
20871
|
+
/**
|
|
20237
20872
|
* * Field Name: Model
|
|
20238
20873
|
* * Display Name: Model
|
|
20239
20874
|
* * SQL Data Type: nvarchar(50)
|
|
@@ -20245,6 +20880,12 @@ export declare class AIModelVendorEntity extends BaseEntity<AIModelVendorEntityT
|
|
|
20245
20880
|
* * SQL Data Type: nvarchar(50)
|
|
20246
20881
|
*/
|
|
20247
20882
|
get Vendor(): string;
|
|
20883
|
+
/**
|
|
20884
|
+
* * Field Name: Type
|
|
20885
|
+
* * Display Name: Type
|
|
20886
|
+
* * SQL Data Type: nvarchar(50)
|
|
20887
|
+
*/
|
|
20888
|
+
get Type(): string | null;
|
|
20248
20889
|
}
|
|
20249
20890
|
/**
|
|
20250
20891
|
* MJ: AI Prompt Models - strongly typed entity sub-class
|
|
@@ -20665,6 +21306,47 @@ export declare class AIPromptRunEntity extends BaseEntity<AIPromptRunEntityType>
|
|
|
20665
21306
|
*/
|
|
20666
21307
|
get __mj_UpdatedAt(): Date;
|
|
20667
21308
|
/**
|
|
21309
|
+
* * Field Name: ParentID
|
|
21310
|
+
* * Display Name: Parent ID
|
|
21311
|
+
* * SQL Data Type: uniqueidentifier
|
|
21312
|
+
* * Related Entity/Foreign Key: MJ: AI Prompt Runs (vwAIPromptRuns.ID)
|
|
21313
|
+
* * Description: References the parent AIPromptRun.ID for hierarchical execution tracking. NULL for top-level runs, populated for parallel children and result selector runs.
|
|
21314
|
+
*/
|
|
21315
|
+
get ParentID(): string | null;
|
|
21316
|
+
set ParentID(value: string | null);
|
|
21317
|
+
/**
|
|
21318
|
+
* * Field Name: RunType
|
|
21319
|
+
* * Display Name: Run Type
|
|
21320
|
+
* * SQL Data Type: nvarchar(20)
|
|
21321
|
+
* * Default Value: Single
|
|
21322
|
+
* * Value List Type: List
|
|
21323
|
+
* * Possible Values
|
|
21324
|
+
* * Single
|
|
21325
|
+
* * ParallelParent
|
|
21326
|
+
* * ParallelChild
|
|
21327
|
+
* * ResultSelector
|
|
21328
|
+
* * Description: Type of prompt run execution: Single (standard single prompt), ParallelParent (coordinator for parallel execution), ParallelChild (individual parallel execution), ResultSelector (result selection prompt that chooses best result)
|
|
21329
|
+
*/
|
|
21330
|
+
get RunType(): 'Single' | 'ParallelParent' | 'ParallelChild' | 'ResultSelector';
|
|
21331
|
+
set RunType(value: 'Single' | 'ParallelParent' | 'ParallelChild' | 'ResultSelector');
|
|
21332
|
+
/**
|
|
21333
|
+
* * Field Name: ExecutionOrder
|
|
21334
|
+
* * Display Name: Execution Order
|
|
21335
|
+
* * SQL Data Type: int
|
|
21336
|
+
* * Description: Execution order for parallel child runs and result selector runs. Used to track the sequence of execution within a parallel run group. NULL for single runs and parallel parent runs.
|
|
21337
|
+
*/
|
|
21338
|
+
get ExecutionOrder(): number | null;
|
|
21339
|
+
set ExecutionOrder(value: number | null);
|
|
21340
|
+
/**
|
|
21341
|
+
* * Field Name: AgentRunID
|
|
21342
|
+
* * Display Name: Agent Run ID
|
|
21343
|
+
* * SQL Data Type: uniqueidentifier
|
|
21344
|
+
* * Related Entity/Foreign Key: MJ: AI Agent Runs (vwAIAgentRuns.ID)
|
|
21345
|
+
* * Description: Optional reference to the AIAgentRun that initiated this prompt execution. Links prompt runs to their parent agent runs for comprehensive execution tracking.
|
|
21346
|
+
*/
|
|
21347
|
+
get AgentRunID(): string | null;
|
|
21348
|
+
set AgentRunID(value: string | null);
|
|
21349
|
+
/**
|
|
20668
21350
|
* * Field Name: Prompt
|
|
20669
21351
|
* * Display Name: Prompt
|
|
20670
21352
|
* * SQL Data Type: nvarchar(255)
|