@memberjunction/core-entities 2.17.0 → 2.18.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.
|
@@ -6,13 +6,13 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
6
6
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
7
|
};
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
exports.
|
|
10
|
-
exports.
|
|
11
|
-
exports.
|
|
12
|
-
exports.
|
|
13
|
-
exports.
|
|
14
|
-
exports.
|
|
15
|
-
exports.WorkspaceEntity = exports.WorkspaceItemEntity = exports.WorkflowEntity = exports.WorkflowRunEntity = exports.WorkflowEngineEntity = exports.VersionInstallationEntity = exports.VectorIndexEntity = exports.VectorDatabaseEntity = exports.UserEntity = exports.UserViewEntity = exports.UserViewRunEntity = exports.UserViewRunDetailEntity = exports.UserViewCategoryEntity = exports.UserRoleEntity = exports.UserRecordLogEntity = exports.UserNotificationEntity = exports.UserFavoriteEntity = exports.UserApplicationEntity = exports.UserApplicationEntityEntity = void 0;
|
|
9
|
+
exports.ContentSourceParamSchema = exports.ContentProcessRunSchema = exports.ContentItemSchema = exports.ContentItemTagSchema = exports.ContentItemAttributeSchema = exports.ContentFileTypeSchema = exports.CompanyIntegrationSchema = exports.CompanyIntegrationRunSchema = exports.CompanyIntegrationRunDetailSchema = exports.CompanyIntegrationRunAPILogSchema = exports.CompanyIntegrationRecordMapSchema = exports.CompanySchema = exports.CommunicationRunSchema = exports.CommunicationProviderSchema = exports.CommunicationProviderMessageTypeSchema = exports.CommunicationLogSchema = exports.CommunicationBaseMessageTypeSchema = exports.AuthorizationSchema = exports.AuthorizationRoleSchema = exports.AuditLogSchema = exports.AuditLogTypeSchema = exports.ApplicationSchema = exports.ApplicationSettingSchema = exports.ApplicationEntitySchema = exports.AIResultCacheSchema = exports.AIPromptSchema = exports.AIPromptTypeSchema = exports.AIPromptCategorySchema = exports.AIModelSchema = exports.AIModelTypeSchema = exports.AIModelActionSchema = exports.AIAgentSchema = exports.AIAgentRequestSchema = exports.AIAgentNoteSchema = exports.AIAgentNoteTypeSchema = exports.AIAgentModelSchema = exports.AIAgentLearningCycleSchema = exports.AIAgentActionSchema = exports.AIActionSchema = exports.ActionSchema = exports.ActionResultCodeSchema = exports.ActionParamSchema = exports.ActionLibrarySchema = exports.ActionFilterSchema = exports.ActionExecutionLogSchema = exports.ActionContextSchema = exports.ActionContextTypeSchema = exports.ActionCategorySchema = exports.ActionAuthorizationSchema = exports.loadModule = void 0;
|
|
10
|
+
exports.LibrarySchema = exports.IntegrationSchema = exports.IntegrationURLFormatSchema = exports.flyway_schema_historySchema = exports.FileSchema = exports.FileStorageProviderSchema = exports.FileEntityRecordLinkSchema = exports.FileCategorySchema = exports.ExplorerNavigationItemSchema = exports.ErrorLogSchema = exports.EntitySettingSchema = exports.EntityRelationshipSchema = exports.EntityRelationshipDisplayComponentSchema = exports.EntityRecordDocumentSchema = exports.EntityPermissionSchema = exports.EntityFieldSchema = exports.EntityFieldValueSchema = exports.EntityDocumentSchema = exports.EntityDocumentTypeSchema = exports.EntityDocumentSettingSchema = exports.EntityDocumentRunSchema = exports.EntityCommunicationMessageTypeSchema = exports.EntityCommunicationFieldSchema = exports.EntityAIActionSchema = exports.EntityActionSchema = exports.EntityActionParamSchema = exports.EntityActionInvocationSchema = exports.EntityActionInvocationTypeSchema = exports.EntityActionFilterSchema = exports.EntitySchema = exports.EmployeeSchema = exports.EmployeeSkillSchema = exports.EmployeeRoleSchema = exports.EmployeeCompanyIntegrationSchema = exports.DuplicateRunSchema = exports.DuplicateRunDetailSchema = exports.DuplicateRunDetailMatchSchema = exports.DatasetSchema = exports.DatasetItemSchema = exports.DataContextSchema = exports.DataContextItemSchema = exports.DashboardSchema = exports.DashboardCategorySchema = exports.ConversationSchema = exports.ConversationDetailSchema = exports.ContentTypeSchema = exports.ContentTypeAttributeSchema = exports.ContentSourceSchema = exports.ContentSourceTypeSchema = exports.ContentSourceTypeParamSchema = void 0;
|
|
11
|
+
exports.UserViewRunDetailSchema = exports.UserViewCategorySchema = exports.UserRoleSchema = exports.UserRecordLogSchema = exports.UserNotificationSchema = exports.UserFavoriteSchema = exports.UserApplicationSchema = exports.UserApplicationEntitySchema = exports.TemplateSchema = exports.TemplateParamSchema = exports.TemplateContentSchema = exports.TemplateContentTypeSchema = exports.TemplateCategorySchema = exports.TagSchema = exports.TaggedItemSchema = exports.SkillSchema = exports.SchemaInfoSchema = exports.ScheduledActionSchema = exports.ScheduledActionParamSchema = exports.RowLevelSecurityFilterSchema = exports.RoleSchema = exports.ResourceTypeSchema = exports.ResourcePermissionSchema = exports.ResourceLinkSchema = exports.ReportSchema = exports.ReportSnapshotSchema = exports.ReportCategorySchema = exports.RecordMergeLogSchema = exports.RecordMergeDeletionLogSchema = exports.RecordChangeSchema = exports.RecordChangeReplayRunSchema = exports.RecommendationSchema = exports.RecommendationRunSchema = exports.RecommendationProviderSchema = exports.RecommendationItemSchema = exports.QueueSchema = exports.QueueTypeSchema = exports.QueueTaskSchema = exports.QueryPermissionSchema = exports.QueryFieldSchema = exports.QueryEntitySchema = exports.QueryCategorySchema = exports.QuerySchema = exports.OutputTriggerTypeSchema = exports.OutputFormatTypeSchema = exports.OutputDeliveryTypeSchema = exports.ListSchema = exports.ListDetailSchema = exports.ListCategorySchema = exports.LibraryItemSchema = void 0;
|
|
12
|
+
exports.CompanyIntegrationRecordMapEntity = exports.CompanyEntity = exports.CommunicationRunEntity = exports.CommunicationProviderEntity = exports.CommunicationProviderMessageTypeEntity = exports.CommunicationLogEntity = exports.CommunicationBaseMessageTypeEntity = exports.AuthorizationEntity = exports.AuthorizationRoleEntity = exports.AuditLogEntity = exports.AuditLogTypeEntity = exports.ApplicationEntity = exports.ApplicationSettingEntity = exports.ApplicationEntityEntity = exports.AIResultCacheEntity = exports.AIPromptEntity = exports.AIPromptTypeEntity = exports.AIPromptCategoryEntity = exports.AIModelEntity = exports.AIModelTypeEntity = exports.AIModelActionEntity = exports.AIAgentEntity = exports.AIAgentRequestEntity = exports.AIAgentNoteEntity = exports.AIAgentNoteTypeEntity = exports.AIAgentModelEntity = exports.AIAgentLearningCycleEntity = exports.AIAgentActionEntity = exports.AIActionEntity = exports.ActionEntity = exports.ActionResultCodeEntity = exports.ActionParamEntity = exports.ActionLibraryEntity = exports.ActionFilterEntity = exports.ActionExecutionLogEntity = exports.ActionContextEntity = exports.ActionContextTypeEntity = exports.ActionCategoryEntity = exports.ActionAuthorizationEntity = exports.WorkspaceSchema = exports.WorkspaceItemSchema = exports.WorkflowSchema = exports.WorkflowRunSchema = exports.WorkflowEngineSchema = exports.VersionInstallationSchema = exports.VectorIndexSchema = exports.VectorDatabaseSchema = exports.UserSchema = exports.UserViewSchema = exports.UserViewRunSchema = void 0;
|
|
13
|
+
exports.EntitySettingEntity = exports.EntityRelationshipEntity = exports.EntityRelationshipDisplayComponentEntity = exports.EntityRecordDocumentEntity = exports.EntityPermissionEntity = exports.EntityFieldEntity = exports.EntityFieldValueEntity = exports.EntityDocumentEntity = exports.EntityDocumentTypeEntity = exports.EntityDocumentSettingEntity = exports.EntityDocumentRunEntity = exports.EntityCommunicationMessageTypeEntity = exports.EntityCommunicationFieldEntity = exports.EntityAIActionEntity = exports.EntityActionEntity = exports.EntityActionParamEntity = exports.EntityActionInvocationEntity = exports.EntityActionInvocationTypeEntity = exports.EntityActionFilterEntity = exports.EntityEntity = exports.EmployeeEntity = exports.EmployeeSkillEntity = exports.EmployeeRoleEntity = exports.EmployeeCompanyIntegrationEntity = exports.DuplicateRunEntity = exports.DuplicateRunDetailEntity = exports.DuplicateRunDetailMatchEntity = exports.DatasetEntity = exports.DatasetItemEntity = exports.DataContextEntity = exports.DataContextItemEntity = exports.DashboardEntity = exports.DashboardCategoryEntity = exports.ConversationEntity = exports.ConversationDetailEntity = exports.ContentTypeEntity = exports.ContentTypeAttributeEntity = exports.ContentSourceEntity = exports.ContentSourceTypeEntity = exports.ContentSourceTypeParamEntity = exports.ContentSourceParamEntity = exports.ContentProcessRunEntity = exports.ContentItemEntity = exports.ContentItemTagEntity = exports.ContentItemAttributeEntity = exports.ContentFileTypeEntity = exports.CompanyIntegrationEntity = exports.CompanyIntegrationRunEntity = exports.CompanyIntegrationRunDetailEntity = exports.CompanyIntegrationRunAPILogEntity = void 0;
|
|
14
|
+
exports.TemplateContentEntity = exports.TemplateContentTypeEntity = exports.TemplateCategoryEntity = exports.TagEntity = exports.TaggedItemEntity = exports.SkillEntity = exports.SchemaInfoEntity = exports.ScheduledActionEntity = exports.ScheduledActionParamEntity = exports.RowLevelSecurityFilterEntity = exports.RoleEntity = exports.ResourceTypeEntity = exports.ResourcePermissionEntity = exports.ResourceLinkEntity = exports.ReportEntity = exports.ReportSnapshotEntity = exports.ReportCategoryEntity = exports.RecordMergeLogEntity = exports.RecordMergeDeletionLogEntity = exports.RecordChangeEntity = exports.RecordChangeReplayRunEntity = exports.RecommendationEntity = exports.RecommendationRunEntity = exports.RecommendationProviderEntity = exports.RecommendationItemEntity = exports.QueueEntity = exports.QueueTypeEntity = exports.QueueTaskEntity = exports.QueryPermissionEntity = exports.QueryFieldEntity = exports.QueryEntityEntity = exports.QueryCategoryEntity = exports.QueryEntity = exports.OutputTriggerTypeEntity = exports.OutputFormatTypeEntity = exports.OutputDeliveryTypeEntity = exports.ListEntity = exports.ListDetailEntity = exports.ListCategoryEntity = exports.LibraryItemEntity = exports.LibraryEntity = exports.IntegrationEntity = exports.IntegrationURLFormatEntity = exports.flyway_schema_historyEntity = exports.FileEntity = exports.FileStorageProviderEntity = exports.FileEntityRecordLinkEntity = exports.FileCategoryEntity = exports.ExplorerNavigationItemEntity = exports.ErrorLogEntity = void 0;
|
|
15
|
+
exports.WorkspaceEntity = exports.WorkspaceItemEntity = exports.WorkflowEntity = exports.WorkflowRunEntity = exports.WorkflowEngineEntity = exports.VersionInstallationEntity = exports.VectorIndexEntity = exports.VectorDatabaseEntity = exports.UserEntity = exports.UserViewEntity = exports.UserViewRunEntity = exports.UserViewRunDetailEntity = exports.UserViewCategoryEntity = exports.UserRoleEntity = exports.UserRecordLogEntity = exports.UserNotificationEntity = exports.UserFavoriteEntity = exports.UserApplicationEntity = exports.UserApplicationEntityEntity = exports.TemplateEntity = exports.TemplateParamEntity = void 0;
|
|
16
16
|
const core_1 = require("@memberjunction/core");
|
|
17
17
|
const global_1 = require("@memberjunction/global");
|
|
18
18
|
const zod_1 = require("zod");
|
|
@@ -617,29 +617,37 @@ exports.AIActionSchema = zod_1.z.object({
|
|
|
617
617
|
* * SQL Data Type: nvarchar(50)`),
|
|
618
618
|
});
|
|
619
619
|
/**
|
|
620
|
-
* zod schema definition for the entity AI
|
|
620
|
+
* zod schema definition for the entity AI Agent Actions
|
|
621
621
|
*/
|
|
622
|
-
exports.
|
|
622
|
+
exports.AIAgentActionSchema = zod_1.z.object({
|
|
623
623
|
ID: zod_1.z.string().describe(`
|
|
624
624
|
* * Field Name: ID
|
|
625
625
|
* * Display Name: ID
|
|
626
626
|
* * SQL Data Type: uniqueidentifier
|
|
627
|
-
* * Default Value: newsequentialid()
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
* *
|
|
627
|
+
* * Default Value: newsequentialid()
|
|
628
|
+
* * Description: The unique identifier for each AI agent-action mapping. Serves as the primary key.`),
|
|
629
|
+
AgentID: zod_1.z.string().nullish().describe(`
|
|
630
|
+
* * Field Name: AgentID
|
|
631
|
+
* * Display Name: Agent ID
|
|
631
632
|
* * SQL Data Type: uniqueidentifier
|
|
632
|
-
* * Related Entity/Foreign Key: AI
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
* *
|
|
633
|
+
* * Related Entity/Foreign Key: AI Agents (vwAIAgents.ID)
|
|
634
|
+
* * Description: References the unique identifier of the associated AI agent from the AIAgent table.`),
|
|
635
|
+
ActionID: zod_1.z.string().nullish().describe(`
|
|
636
|
+
* * Field Name: ActionID
|
|
637
|
+
* * Display Name: Action ID
|
|
636
638
|
* * SQL Data Type: uniqueidentifier
|
|
637
|
-
* * Related Entity/Foreign Key:
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
* *
|
|
641
|
-
* *
|
|
642
|
-
* *
|
|
639
|
+
* * Related Entity/Foreign Key: Actions (vwActions.ID)
|
|
640
|
+
* * Description: References the unique identifier of the associated action from the Action table.`),
|
|
641
|
+
Status: zod_1.z.union([zod_1.z.literal('Pending'), zod_1.z.literal('Active'), zod_1.z.literal('Revoked')]).describe(`
|
|
642
|
+
* * Field Name: Status
|
|
643
|
+
* * Display Name: Status
|
|
644
|
+
* * SQL Data Type: nvarchar(15)
|
|
645
|
+
* * Default Value: Active
|
|
646
|
+
* * Value List Type: List
|
|
647
|
+
* * Possible Values
|
|
648
|
+
* * Pending
|
|
649
|
+
* * Active
|
|
650
|
+
* * Revoked`),
|
|
643
651
|
__mj_CreatedAt: zod_1.z.date().describe(`
|
|
644
652
|
* * Field Name: __mj_CreatedAt
|
|
645
653
|
* * Display Name: Created At
|
|
@@ -650,32 +658,57 @@ exports.AIModelActionSchema = zod_1.z.object({
|
|
|
650
658
|
* * Display Name: Updated At
|
|
651
659
|
* * SQL Data Type: datetimeoffset
|
|
652
660
|
* * Default Value: getutcdate()`),
|
|
653
|
-
|
|
654
|
-
* * Field Name:
|
|
655
|
-
* * Display Name:
|
|
656
|
-
* * SQL Data Type: nvarchar(
|
|
657
|
-
|
|
658
|
-
* * Field Name:
|
|
659
|
-
* * Display Name:
|
|
660
|
-
* * SQL Data Type: nvarchar(
|
|
661
|
+
Agent: zod_1.z.string().nullish().describe(`
|
|
662
|
+
* * Field Name: Agent
|
|
663
|
+
* * Display Name: Agent
|
|
664
|
+
* * SQL Data Type: nvarchar(255)`),
|
|
665
|
+
Action: zod_1.z.string().nullish().describe(`
|
|
666
|
+
* * Field Name: Action
|
|
667
|
+
* * Display Name: Action
|
|
668
|
+
* * SQL Data Type: nvarchar(425)`),
|
|
661
669
|
});
|
|
662
670
|
/**
|
|
663
|
-
* zod schema definition for the entity AI
|
|
671
|
+
* zod schema definition for the entity AI Agent Learning Cycles
|
|
664
672
|
*/
|
|
665
|
-
exports.
|
|
673
|
+
exports.AIAgentLearningCycleSchema = zod_1.z.object({
|
|
666
674
|
ID: zod_1.z.string().describe(`
|
|
667
675
|
* * Field Name: ID
|
|
668
676
|
* * Display Name: ID
|
|
669
677
|
* * SQL Data Type: uniqueidentifier
|
|
670
|
-
* * Default Value: newsequentialid()
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
* *
|
|
674
|
-
* *
|
|
675
|
-
|
|
676
|
-
* *
|
|
677
|
-
|
|
678
|
-
|
|
678
|
+
* * Default Value: newsequentialid()
|
|
679
|
+
* * Description: Unique identifier for the learning cycle.`),
|
|
680
|
+
AgentID: zod_1.z.string().describe(`
|
|
681
|
+
* * Field Name: AgentID
|
|
682
|
+
* * Display Name: Agent ID
|
|
683
|
+
* * SQL Data Type: uniqueidentifier
|
|
684
|
+
* * Related Entity/Foreign Key: AI Agents (vwAIAgents.ID)
|
|
685
|
+
* * Description: Identifier for the AI Agent associated with this learning cycle.`),
|
|
686
|
+
StartedAt: zod_1.z.date().describe(`
|
|
687
|
+
* * Field Name: StartedAt
|
|
688
|
+
* * Display Name: Started At
|
|
689
|
+
* * SQL Data Type: datetimeoffset
|
|
690
|
+
* * Default Value: getutcdate()
|
|
691
|
+
* * Description: Timestamp indicating when the learning cycle started.`),
|
|
692
|
+
EndedAt: zod_1.z.date().nullish().describe(`
|
|
693
|
+
* * Field Name: EndedAt
|
|
694
|
+
* * Display Name: Ended At
|
|
695
|
+
* * SQL Data Type: datetimeoffset
|
|
696
|
+
* * Description: Timestamp indicating when the learning cycle ended.`),
|
|
697
|
+
Status: zod_1.z.union([zod_1.z.literal('In-Progress'), zod_1.z.literal('Complete'), zod_1.z.literal('Failed')]).describe(`
|
|
698
|
+
* * Field Name: Status
|
|
699
|
+
* * Display Name: Status
|
|
700
|
+
* * SQL Data Type: nvarchar(20)
|
|
701
|
+
* * Value List Type: List
|
|
702
|
+
* * Possible Values
|
|
703
|
+
* * In-Progress
|
|
704
|
+
* * Complete
|
|
705
|
+
* * Failed
|
|
706
|
+
* * Description: Status of the learning cycle (In-Progress, Complete, or Failed).`),
|
|
707
|
+
AgentSummary: zod_1.z.string().nullish().describe(`
|
|
708
|
+
* * Field Name: AgentSummary
|
|
709
|
+
* * Display Name: Agent Summary
|
|
710
|
+
* * SQL Data Type: nvarchar(MAX)
|
|
711
|
+
* * Description: Text summary provided by the agent about what it learned and any changes it requested for stored metadata.`),
|
|
679
712
|
__mj_CreatedAt: zod_1.z.date().describe(`
|
|
680
713
|
* * Field Name: __mj_CreatedAt
|
|
681
714
|
* * Display Name: Created At
|
|
@@ -686,57 +719,42 @@ exports.AIModelTypeSchema = zod_1.z.object({
|
|
|
686
719
|
* * Display Name: Updated At
|
|
687
720
|
* * SQL Data Type: datetimeoffset
|
|
688
721
|
* * Default Value: getutcdate()`),
|
|
722
|
+
Agent: zod_1.z.string().nullish().describe(`
|
|
723
|
+
* * Field Name: Agent
|
|
724
|
+
* * Display Name: Agent
|
|
725
|
+
* * SQL Data Type: nvarchar(255)`),
|
|
689
726
|
});
|
|
690
727
|
/**
|
|
691
|
-
* zod schema definition for the entity AI Models
|
|
728
|
+
* zod schema definition for the entity AI Agent Models
|
|
692
729
|
*/
|
|
693
|
-
exports.
|
|
730
|
+
exports.AIAgentModelSchema = zod_1.z.object({
|
|
694
731
|
ID: zod_1.z.string().describe(`
|
|
695
732
|
* * Field Name: ID
|
|
696
733
|
* * Display Name: ID
|
|
697
734
|
* * SQL Data Type: uniqueidentifier
|
|
698
|
-
* * Default Value: newsequentialid()
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
* *
|
|
702
|
-
* *
|
|
703
|
-
Description: zod_1.z.string().nullish().describe(`
|
|
704
|
-
* * Field Name: Description
|
|
705
|
-
* * Display Name: Description
|
|
706
|
-
* * SQL Data Type: nvarchar(MAX)`),
|
|
707
|
-
Vendor: zod_1.z.string().nullish().describe(`
|
|
708
|
-
* * Field Name: Vendor
|
|
709
|
-
* * Display Name: Vendor
|
|
710
|
-
* * SQL Data Type: nvarchar(50)`),
|
|
711
|
-
AIModelTypeID: zod_1.z.string().describe(`
|
|
712
|
-
* * Field Name: AIModelTypeID
|
|
713
|
-
* * Display Name: AI Model Type ID
|
|
735
|
+
* * Default Value: newsequentialid()
|
|
736
|
+
* * Description: The unique identifier for each AI agent-model mapping. Serves as the primary key.`),
|
|
737
|
+
AgentID: zod_1.z.string().nullish().describe(`
|
|
738
|
+
* * Field Name: AgentID
|
|
739
|
+
* * Display Name: Agent ID
|
|
714
740
|
* * SQL Data Type: uniqueidentifier
|
|
715
|
-
* * Related Entity/Foreign Key: AI
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
* *
|
|
741
|
+
* * Related Entity/Foreign Key: AI Agents (vwAIAgents.ID)
|
|
742
|
+
* * Description: References the unique identifier of the associated AI agent from AIAgent table.`),
|
|
743
|
+
ModelID: zod_1.z.string().nullish().describe(`
|
|
744
|
+
* * Field Name: ModelID
|
|
745
|
+
* * Display Name: Model ID
|
|
746
|
+
* * SQL Data Type: uniqueidentifier
|
|
747
|
+
* * Related Entity/Foreign Key: AI Models (vwAIModels.ID)
|
|
748
|
+
* * Description: The unique identifier of the associated AI model.`),
|
|
749
|
+
Active: zod_1.z.boolean().nullish().describe(`
|
|
750
|
+
* * Field Name: Active
|
|
751
|
+
* * Display Name: Active
|
|
752
|
+
* * SQL Data Type: bit`),
|
|
753
|
+
Priority: zod_1.z.number().nullish().describe(`
|
|
754
|
+
* * Field Name: Priority
|
|
755
|
+
* * Display Name: Priority
|
|
719
756
|
* * SQL Data Type: int
|
|
720
|
-
|
|
721
|
-
* * Description: Optional column that ranks the power of the AI model. Default is 0 and should be non-negative.`),
|
|
722
|
-
IsActive: zod_1.z.boolean().describe(`
|
|
723
|
-
* * Field Name: IsActive
|
|
724
|
-
* * Display Name: Is Active
|
|
725
|
-
* * SQL Data Type: bit
|
|
726
|
-
* * Default Value: 1`),
|
|
727
|
-
DriverClass: zod_1.z.string().nullish().describe(`
|
|
728
|
-
* * Field Name: DriverClass
|
|
729
|
-
* * Display Name: Driver Class
|
|
730
|
-
* * SQL Data Type: nvarchar(100)`),
|
|
731
|
-
DriverImportPath: zod_1.z.string().nullish().describe(`
|
|
732
|
-
* * Field Name: DriverImportPath
|
|
733
|
-
* * Display Name: Driver Import Path
|
|
734
|
-
* * SQL Data Type: nvarchar(255)`),
|
|
735
|
-
APIName: zod_1.z.string().nullish().describe(`
|
|
736
|
-
* * Field Name: APIName
|
|
737
|
-
* * Display Name: APIName
|
|
738
|
-
* * SQL Data Type: nvarchar(100)
|
|
739
|
-
* * Description: The name of the model to use with API calls which might differ from the Name, if APIName is not provided, Name will be used for API calls`),
|
|
757
|
+
* * Description: The priority level of the AI model for the agent, where higher values indicate higher priority.`),
|
|
740
758
|
__mj_CreatedAt: zod_1.z.date().describe(`
|
|
741
759
|
* * Field Name: __mj_CreatedAt
|
|
742
760
|
* * Display Name: Created At
|
|
@@ -747,52 +765,28 @@ exports.AIModelSchema = zod_1.z.object({
|
|
|
747
765
|
* * Display Name: Updated At
|
|
748
766
|
* * SQL Data Type: datetimeoffset
|
|
749
767
|
* * Default Value: getutcdate()`),
|
|
750
|
-
|
|
751
|
-
* * Field Name:
|
|
752
|
-
* * Display Name:
|
|
753
|
-
* * SQL Data Type:
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
* * Field Name: CostRank
|
|
758
|
-
* * Display Name: Cost Rank
|
|
759
|
-
* * SQL Data Type: int
|
|
760
|
-
* * Default Value: 0
|
|
761
|
-
* * Description: Optional column that ranks the cost of the AI model. Default is 0 and should be non-negative.`),
|
|
762
|
-
ModelSelectionInsights: zod_1.z.string().nullish().describe(`
|
|
763
|
-
* * Field Name: ModelSelectionInsights
|
|
764
|
-
* * Display Name: Model Selection Insights
|
|
765
|
-
* * SQL Data Type: nvarchar(MAX)
|
|
766
|
-
* * Description: This column stores unstructured text notes that provide insights into what the model is particularly good at and areas where it may not perform as well. These notes can be used by a human or an AI to determine if the model is a good fit for various purposes.`),
|
|
767
|
-
InputTokenLimit: zod_1.z.number().nullish().describe(`
|
|
768
|
-
* * Field Name: InputTokenLimit
|
|
769
|
-
* * Display Name: Input Token Limit
|
|
770
|
-
* * SQL Data Type: int
|
|
771
|
-
* * Description: Stores the maximum number of tokens that fit in the context window for the model.`),
|
|
772
|
-
AIModelType: zod_1.z.string().describe(`
|
|
773
|
-
* * Field Name: AIModelType
|
|
774
|
-
* * Display Name: AIModel Type
|
|
768
|
+
Agent: zod_1.z.string().nullish().describe(`
|
|
769
|
+
* * Field Name: Agent
|
|
770
|
+
* * Display Name: Agent
|
|
771
|
+
* * SQL Data Type: nvarchar(255)`),
|
|
772
|
+
Model: zod_1.z.string().nullish().describe(`
|
|
773
|
+
* * Field Name: Model
|
|
774
|
+
* * Display Name: Model
|
|
775
775
|
* * SQL Data Type: nvarchar(50)`),
|
|
776
776
|
});
|
|
777
777
|
/**
|
|
778
|
-
* zod schema definition for the entity AI
|
|
778
|
+
* zod schema definition for the entity AI Agent Note Types
|
|
779
779
|
*/
|
|
780
|
-
exports.
|
|
780
|
+
exports.AIAgentNoteTypeSchema = zod_1.z.object({
|
|
781
781
|
ID: zod_1.z.string().describe(`
|
|
782
782
|
* * Field Name: ID
|
|
783
783
|
* * Display Name: ID
|
|
784
784
|
* * SQL Data Type: uniqueidentifier
|
|
785
785
|
* * Default Value: newsequentialid()`),
|
|
786
|
-
Name: zod_1.z.string().describe(`
|
|
786
|
+
Name: zod_1.z.string().nullish().describe(`
|
|
787
787
|
* * Field Name: Name
|
|
788
788
|
* * Display Name: Name
|
|
789
789
|
* * SQL Data Type: nvarchar(255)`),
|
|
790
|
-
ParentID: zod_1.z.string().nullish().describe(`
|
|
791
|
-
* * Field Name: ParentID
|
|
792
|
-
* * Display Name: Parent ID
|
|
793
|
-
* * SQL Data Type: uniqueidentifier
|
|
794
|
-
* * Related Entity/Foreign Key: AI Prompt Categories (vwAIPromptCategories.ID)
|
|
795
|
-
* * Description: Parent category ID for hierarchical organization.`),
|
|
796
790
|
Description: zod_1.z.string().nullish().describe(`
|
|
797
791
|
* * Field Name: Description
|
|
798
792
|
* * Display Name: Description
|
|
@@ -807,27 +801,29 @@ exports.AIPromptCategorySchema = zod_1.z.object({
|
|
|
807
801
|
* * Display Name: Updated At
|
|
808
802
|
* * SQL Data Type: datetimeoffset
|
|
809
803
|
* * Default Value: getutcdate()`),
|
|
810
|
-
Parent: zod_1.z.string().nullish().describe(`
|
|
811
|
-
* * Field Name: Parent
|
|
812
|
-
* * Display Name: Parent
|
|
813
|
-
* * SQL Data Type: nvarchar(255)`),
|
|
814
804
|
});
|
|
815
805
|
/**
|
|
816
|
-
* zod schema definition for the entity AI
|
|
806
|
+
* zod schema definition for the entity AI Agent Notes
|
|
817
807
|
*/
|
|
818
|
-
exports.
|
|
808
|
+
exports.AIAgentNoteSchema = zod_1.z.object({
|
|
819
809
|
ID: zod_1.z.string().describe(`
|
|
820
810
|
* * Field Name: ID
|
|
821
811
|
* * Display Name: ID
|
|
822
812
|
* * SQL Data Type: uniqueidentifier
|
|
823
813
|
* * Default Value: newsequentialid()`),
|
|
824
|
-
|
|
825
|
-
* * Field Name:
|
|
826
|
-
* * Display Name:
|
|
827
|
-
* * SQL Data Type:
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
* *
|
|
814
|
+
AgentID: zod_1.z.string().nullish().describe(`
|
|
815
|
+
* * Field Name: AgentID
|
|
816
|
+
* * Display Name: Agent ID
|
|
817
|
+
* * SQL Data Type: uniqueidentifier
|
|
818
|
+
* * Related Entity/Foreign Key: AI Agents (vwAIAgents.ID)`),
|
|
819
|
+
AgentNoteTypeID: zod_1.z.string().nullish().describe(`
|
|
820
|
+
* * Field Name: AgentNoteTypeID
|
|
821
|
+
* * Display Name: Agent Note Type ID
|
|
822
|
+
* * SQL Data Type: uniqueidentifier
|
|
823
|
+
* * Related Entity/Foreign Key: AI Agent Note Types (vwAIAgentNoteTypes.ID)`),
|
|
824
|
+
Note: zod_1.z.string().nullish().describe(`
|
|
825
|
+
* * Field Name: Note
|
|
826
|
+
* * Display Name: Note
|
|
831
827
|
* * SQL Data Type: nvarchar(MAX)`),
|
|
832
828
|
__mj_CreatedAt: zod_1.z.date().describe(`
|
|
833
829
|
* * Field Name: __mj_CreatedAt
|
|
@@ -839,63 +835,99 @@ exports.AIPromptTypeSchema = zod_1.z.object({
|
|
|
839
835
|
* * Display Name: Updated At
|
|
840
836
|
* * SQL Data Type: datetimeoffset
|
|
841
837
|
* * Default Value: getutcdate()`),
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
*
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
838
|
+
Type: zod_1.z.union([zod_1.z.literal('User'), zod_1.z.literal('Global')]).describe(`
|
|
839
|
+
* * Field Name: Type
|
|
840
|
+
* * Display Name: Type
|
|
841
|
+
* * SQL Data Type: nvarchar(20)
|
|
842
|
+
* * Value List Type: List
|
|
843
|
+
* * Possible Values
|
|
844
|
+
* * User
|
|
845
|
+
* * Global
|
|
846
|
+
* * Description: Indicates the type of note, either User-specific or Global.`),
|
|
847
|
+
UserID: zod_1.z.string().nullish().describe(`
|
|
848
|
+
* * Field Name: UserID
|
|
849
|
+
* * Display Name: User ID
|
|
850
850
|
* * SQL Data Type: uniqueidentifier
|
|
851
|
-
* *
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
* *
|
|
855
|
-
* *
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
* *
|
|
859
|
-
* *
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
* *
|
|
851
|
+
* * Related Entity/Foreign Key: Users (vwUsers.ID)
|
|
852
|
+
* * Description: Foreign key referencing the ID column in the User table, indicating the user associated with the note. Used when Type=User`),
|
|
853
|
+
Agent: zod_1.z.string().nullish().describe(`
|
|
854
|
+
* * Field Name: Agent
|
|
855
|
+
* * Display Name: Agent
|
|
856
|
+
* * SQL Data Type: nvarchar(255)`),
|
|
857
|
+
AgentNoteType: zod_1.z.string().nullish().describe(`
|
|
858
|
+
* * Field Name: AgentNoteType
|
|
859
|
+
* * Display Name: Agent Note Type
|
|
860
|
+
* * SQL Data Type: nvarchar(255)`),
|
|
861
|
+
User: zod_1.z.string().nullish().describe(`
|
|
862
|
+
* * Field Name: User
|
|
863
|
+
* * Display Name: User
|
|
864
|
+
* * SQL Data Type: nvarchar(100)
|
|
865
|
+
* * Default Value: null`),
|
|
866
|
+
});
|
|
867
|
+
/**
|
|
868
|
+
* zod schema definition for the entity AI Agent Requests
|
|
869
|
+
*/
|
|
870
|
+
exports.AIAgentRequestSchema = zod_1.z.object({
|
|
871
|
+
ID: zod_1.z.string().describe(`
|
|
872
|
+
* * Field Name: ID
|
|
873
|
+
* * Display Name: ID
|
|
863
874
|
* * SQL Data Type: uniqueidentifier
|
|
864
|
-
* *
|
|
865
|
-
* * Description:
|
|
866
|
-
|
|
867
|
-
* * Field Name:
|
|
868
|
-
* * Display Name:
|
|
875
|
+
* * Default Value: newsequentialid()
|
|
876
|
+
* * Description: Primary key for the AIAgentRequest table, uniquely identifies each record.`),
|
|
877
|
+
AgentID: zod_1.z.string().describe(`
|
|
878
|
+
* * Field Name: AgentID
|
|
879
|
+
* * Display Name: Agent ID
|
|
869
880
|
* * SQL Data Type: uniqueidentifier
|
|
870
|
-
* * Related Entity/Foreign Key: AI
|
|
871
|
-
* * Description:
|
|
872
|
-
|
|
873
|
-
* * Field Name:
|
|
874
|
-
* * Display Name:
|
|
881
|
+
* * Related Entity/Foreign Key: AI Agents (vwAIAgents.ID)
|
|
882
|
+
* * Description: Foreign key referencing the ID column in the AIAgent table.`),
|
|
883
|
+
RequestedAt: zod_1.z.date().describe(`
|
|
884
|
+
* * Field Name: RequestedAt
|
|
885
|
+
* * Display Name: Requested At
|
|
886
|
+
* * SQL Data Type: datetime
|
|
887
|
+
* * Description: Timestamp when the request was made by the agent.`),
|
|
888
|
+
RequestForUserID: zod_1.z.string().nullish().describe(`
|
|
889
|
+
* * Field Name: RequestForUserID
|
|
890
|
+
* * Display Name: Request For User ID
|
|
875
891
|
* * SQL Data Type: uniqueidentifier
|
|
876
|
-
* * Related Entity/Foreign Key:
|
|
877
|
-
* * Description:
|
|
878
|
-
Status: zod_1.z.union([zod_1.z.literal('
|
|
892
|
+
* * Related Entity/Foreign Key: Users (vwUsers.ID)
|
|
893
|
+
* * Description: Optional, a user that the AI specifically is directing the request to, if null intended for general system owner.`),
|
|
894
|
+
Status: zod_1.z.union([zod_1.z.literal('Requested'), zod_1.z.literal('Approved'), zod_1.z.literal('Rejected'), zod_1.z.literal('Canceled')]).describe(`
|
|
879
895
|
* * Field Name: Status
|
|
880
896
|
* * Display Name: Status
|
|
881
|
-
* * SQL Data Type: nvarchar(
|
|
897
|
+
* * SQL Data Type: nvarchar(20)
|
|
882
898
|
* * Value List Type: List
|
|
883
899
|
* * Possible Values
|
|
884
|
-
* *
|
|
885
|
-
* *
|
|
886
|
-
* *
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
* *
|
|
891
|
-
* *
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
* *
|
|
896
|
-
* *
|
|
897
|
-
* *
|
|
898
|
-
* * Description:
|
|
900
|
+
* * Requested
|
|
901
|
+
* * Approved
|
|
902
|
+
* * Rejected
|
|
903
|
+
* * Canceled
|
|
904
|
+
* * Description: Current status of the request (Requested, Approved, Rejected, Canceled).`),
|
|
905
|
+
Request: zod_1.z.string().describe(`
|
|
906
|
+
* * Field Name: Request
|
|
907
|
+
* * Display Name: Request
|
|
908
|
+
* * SQL Data Type: nvarchar(MAX)
|
|
909
|
+
* * Description: Details of what the AI Agent is requesting.`),
|
|
910
|
+
Response: zod_1.z.string().nullish().describe(`
|
|
911
|
+
* * Field Name: Response
|
|
912
|
+
* * Display Name: Response
|
|
913
|
+
* * SQL Data Type: nvarchar(MAX)
|
|
914
|
+
* * Description: Response provided by the human to the agent request.`),
|
|
915
|
+
ResponseByUserID: zod_1.z.string().nullish().describe(`
|
|
916
|
+
* * Field Name: ResponseByUserID
|
|
917
|
+
* * Display Name: Response By User ID
|
|
918
|
+
* * SQL Data Type: uniqueidentifier
|
|
919
|
+
* * Related Entity/Foreign Key: Users (vwUsers.ID)
|
|
920
|
+
* * Description: Populated when a user responds indicating which user responded to the request.`),
|
|
921
|
+
RespondedAt: zod_1.z.date().nullish().describe(`
|
|
922
|
+
* * Field Name: RespondedAt
|
|
923
|
+
* * Display Name: Responded At
|
|
924
|
+
* * SQL Data Type: datetime
|
|
925
|
+
* * Description: Timestamp when the response was provided by the human.`),
|
|
926
|
+
Comments: zod_1.z.string().nullish().describe(`
|
|
927
|
+
* * Field Name: Comments
|
|
928
|
+
* * Display Name: Comments
|
|
929
|
+
* * SQL Data Type: nvarchar(MAX)
|
|
930
|
+
* * Description: Additional comments about the request. Not shared with the agent, purely record keeping.`),
|
|
899
931
|
__mj_CreatedAt: zod_1.z.date().describe(`
|
|
900
932
|
* * Field Name: __mj_CreatedAt
|
|
901
933
|
* * Display Name: Created At
|
|
@@ -906,69 +938,80 @@ exports.AIPromptSchema = zod_1.z.object({
|
|
|
906
938
|
* * Display Name: Updated At
|
|
907
939
|
* * SQL Data Type: datetimeoffset
|
|
908
940
|
* * Default Value: getutcdate()`),
|
|
909
|
-
|
|
910
|
-
* * Field Name:
|
|
911
|
-
* * Display Name:
|
|
912
|
-
* * SQL Data Type: nvarchar(255)`),
|
|
913
|
-
Category: zod_1.z.string().nullish().describe(`
|
|
914
|
-
* * Field Name: Category
|
|
915
|
-
* * Display Name: Category
|
|
941
|
+
Agent: zod_1.z.string().nullish().describe(`
|
|
942
|
+
* * Field Name: Agent
|
|
943
|
+
* * Display Name: Agent
|
|
916
944
|
* * SQL Data Type: nvarchar(255)`),
|
|
917
|
-
|
|
918
|
-
* * Field Name:
|
|
919
|
-
* * Display Name:
|
|
945
|
+
RequestForUser: zod_1.z.string().nullish().describe(`
|
|
946
|
+
* * Field Name: RequestForUser
|
|
947
|
+
* * Display Name: Request For User
|
|
948
|
+
* * SQL Data Type: nvarchar(100)
|
|
949
|
+
* * Default Value: null`),
|
|
950
|
+
ResponseByUser: zod_1.z.string().nullish().describe(`
|
|
951
|
+
* * Field Name: ResponseByUser
|
|
952
|
+
* * Display Name: Response By User
|
|
953
|
+
* * SQL Data Type: nvarchar(100)
|
|
954
|
+
* * Default Value: null`),
|
|
955
|
+
});
|
|
956
|
+
/**
|
|
957
|
+
* zod schema definition for the entity AI Agents
|
|
958
|
+
*/
|
|
959
|
+
exports.AIAgentSchema = zod_1.z.object({
|
|
960
|
+
ID: zod_1.z.string().describe(`
|
|
961
|
+
* * Field Name: ID
|
|
962
|
+
* * Display Name: ID
|
|
963
|
+
* * SQL Data Type: uniqueidentifier
|
|
964
|
+
* * Default Value: newsequentialid()
|
|
965
|
+
* * Description: The unique identifier for each AI agent. Serves as the primary key.`),
|
|
966
|
+
Name: zod_1.z.string().nullish().describe(`
|
|
967
|
+
* * Field Name: Name
|
|
968
|
+
* * Display Name: Name
|
|
969
|
+
* * SQL Data Type: nvarchar(255)
|
|
970
|
+
* * Description: The name of the AI agent.`),
|
|
971
|
+
Description: zod_1.z.string().nullish().describe(`
|
|
972
|
+
* * Field Name: Description
|
|
973
|
+
* * Display Name: Description
|
|
974
|
+
* * SQL Data Type: nvarchar(MAX)
|
|
975
|
+
* * Description: A detailed description of the AI agent.`),
|
|
976
|
+
LogoURL: zod_1.z.string().nullish().describe(`
|
|
977
|
+
* * Field Name: LogoURL
|
|
978
|
+
* * Display Name: Logo URL
|
|
920
979
|
* * SQL Data Type: nvarchar(255)`),
|
|
980
|
+
__mj_CreatedAt: zod_1.z.date().describe(`
|
|
981
|
+
* * Field Name: __mj_CreatedAt
|
|
982
|
+
* * Display Name: Created At
|
|
983
|
+
* * SQL Data Type: datetimeoffset
|
|
984
|
+
* * Default Value: getutcdate()`),
|
|
985
|
+
__mj_UpdatedAt: zod_1.z.date().describe(`
|
|
986
|
+
* * Field Name: __mj_UpdatedAt
|
|
987
|
+
* * Display Name: Updated At
|
|
988
|
+
* * SQL Data Type: datetimeoffset
|
|
989
|
+
* * Default Value: getutcdate()`),
|
|
921
990
|
});
|
|
922
991
|
/**
|
|
923
|
-
* zod schema definition for the entity AI
|
|
992
|
+
* zod schema definition for the entity AI Model Actions
|
|
924
993
|
*/
|
|
925
|
-
exports.
|
|
994
|
+
exports.AIModelActionSchema = zod_1.z.object({
|
|
926
995
|
ID: zod_1.z.string().describe(`
|
|
927
996
|
* * Field Name: ID
|
|
928
997
|
* * Display Name: ID
|
|
929
998
|
* * SQL Data Type: uniqueidentifier
|
|
930
999
|
* * Default Value: newsequentialid()`),
|
|
931
|
-
AIPromptID: zod_1.z.string().describe(`
|
|
932
|
-
* * Field Name: AIPromptID
|
|
933
|
-
* * Display Name: AIPrompt ID
|
|
934
|
-
* * SQL Data Type: uniqueidentifier
|
|
935
|
-
* * Related Entity/Foreign Key: AI Prompts (vwAIPrompts.ID)
|
|
936
|
-
* * Description: Reference to the AI prompt this result corresponds to.`),
|
|
937
1000
|
AIModelID: zod_1.z.string().describe(`
|
|
938
1001
|
* * Field Name: AIModelID
|
|
939
|
-
* * Display Name:
|
|
1002
|
+
* * Display Name: AI Model ID
|
|
940
1003
|
* * SQL Data Type: uniqueidentifier
|
|
941
|
-
* * Related Entity/Foreign Key: AI Models (vwAIModels.ID)
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
* *
|
|
945
|
-
* *
|
|
946
|
-
* *
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
* *
|
|
950
|
-
* *
|
|
951
|
-
* *
|
|
952
|
-
* * Description: The prompt text used to generate this result.`),
|
|
953
|
-
ResultText: zod_1.z.string().nullish().describe(`
|
|
954
|
-
* * Field Name: ResultText
|
|
955
|
-
* * Display Name: Result Text
|
|
956
|
-
* * SQL Data Type: nvarchar(MAX)
|
|
957
|
-
* * Description: The text of the result generated by the AI model.`),
|
|
958
|
-
Status: zod_1.z.union([zod_1.z.literal('Active'), zod_1.z.literal('Expired')]).describe(`
|
|
959
|
-
* * Field Name: Status
|
|
960
|
-
* * Display Name: Status
|
|
961
|
-
* * SQL Data Type: nvarchar(50)
|
|
962
|
-
* * Value List Type: List
|
|
963
|
-
* * Possible Values
|
|
964
|
-
* * Active
|
|
965
|
-
* * Expired
|
|
966
|
-
* * Description: The status of this result, indicating whether it is currently active or expired.`),
|
|
967
|
-
ExpiredOn: zod_1.z.date().nullish().describe(`
|
|
968
|
-
* * Field Name: ExpiredOn
|
|
969
|
-
* * Display Name: Expired On
|
|
970
|
-
* * SQL Data Type: datetimeoffset
|
|
971
|
-
* * Description: Timestamp of when this result was marked as expired.`),
|
|
1004
|
+
* * Related Entity/Foreign Key: AI Models (vwAIModels.ID)`),
|
|
1005
|
+
AIActionID: zod_1.z.string().describe(`
|
|
1006
|
+
* * Field Name: AIActionID
|
|
1007
|
+
* * Display Name: AI Action ID
|
|
1008
|
+
* * SQL Data Type: uniqueidentifier
|
|
1009
|
+
* * Related Entity/Foreign Key: AI Actions (vwAIActions.ID)`),
|
|
1010
|
+
IsActive: zod_1.z.boolean().describe(`
|
|
1011
|
+
* * Field Name: IsActive
|
|
1012
|
+
* * Display Name: Is Active
|
|
1013
|
+
* * SQL Data Type: bit
|
|
1014
|
+
* * Default Value: 1`),
|
|
972
1015
|
__mj_CreatedAt: zod_1.z.date().describe(`
|
|
973
1016
|
* * Field Name: __mj_CreatedAt
|
|
974
1017
|
* * Display Name: Created At
|
|
@@ -979,47 +1022,32 @@ exports.AIResultCacheSchema = zod_1.z.object({
|
|
|
979
1022
|
* * Display Name: Updated At
|
|
980
1023
|
* * SQL Data Type: datetimeoffset
|
|
981
1024
|
* * Default Value: getutcdate()`),
|
|
982
|
-
AIPrompt: zod_1.z.string().describe(`
|
|
983
|
-
* * Field Name: AIPrompt
|
|
984
|
-
* * Display Name: AIPrompt
|
|
985
|
-
* * SQL Data Type: nvarchar(255)`),
|
|
986
1025
|
AIModel: zod_1.z.string().describe(`
|
|
987
1026
|
* * Field Name: AIModel
|
|
988
1027
|
* * Display Name: AIModel
|
|
989
1028
|
* * SQL Data Type: nvarchar(50)`),
|
|
1029
|
+
AIAction: zod_1.z.string().describe(`
|
|
1030
|
+
* * Field Name: AIAction
|
|
1031
|
+
* * Display Name: AIAction
|
|
1032
|
+
* * SQL Data Type: nvarchar(50)`),
|
|
990
1033
|
});
|
|
991
1034
|
/**
|
|
992
|
-
* zod schema definition for the entity
|
|
1035
|
+
* zod schema definition for the entity AI Model Types
|
|
993
1036
|
*/
|
|
994
|
-
exports.
|
|
1037
|
+
exports.AIModelTypeSchema = zod_1.z.object({
|
|
995
1038
|
ID: zod_1.z.string().describe(`
|
|
996
1039
|
* * Field Name: ID
|
|
997
1040
|
* * Display Name: ID
|
|
998
1041
|
* * SQL Data Type: uniqueidentifier
|
|
999
|
-
* * Default Value: newsequentialid()
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
* *
|
|
1003
|
-
* *
|
|
1004
|
-
|
|
1005
|
-
* *
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
* * Field Name: ActionID
|
|
1009
|
-
* * Display Name: Action ID
|
|
1010
|
-
* * SQL Data Type: uniqueidentifier
|
|
1011
|
-
* * Related Entity/Foreign Key: Actions (vwActions.ID)
|
|
1012
|
-
* * Description: References the unique identifier of the associated action from the Action table.`),
|
|
1013
|
-
Status: zod_1.z.union([zod_1.z.literal('Pending'), zod_1.z.literal('Active'), zod_1.z.literal('Revoked')]).describe(`
|
|
1014
|
-
* * Field Name: Status
|
|
1015
|
-
* * Display Name: Status
|
|
1016
|
-
* * SQL Data Type: nvarchar(15)
|
|
1017
|
-
* * Default Value: Active
|
|
1018
|
-
* * Value List Type: List
|
|
1019
|
-
* * Possible Values
|
|
1020
|
-
* * Pending
|
|
1021
|
-
* * Active
|
|
1022
|
-
* * Revoked`),
|
|
1042
|
+
* * Default Value: newsequentialid()`),
|
|
1043
|
+
Name: zod_1.z.string().describe(`
|
|
1044
|
+
* * Field Name: Name
|
|
1045
|
+
* * Display Name: Name
|
|
1046
|
+
* * SQL Data Type: nvarchar(50)`),
|
|
1047
|
+
Description: zod_1.z.string().nullish().describe(`
|
|
1048
|
+
* * Field Name: Description
|
|
1049
|
+
* * Display Name: Description
|
|
1050
|
+
* * SQL Data Type: nvarchar(MAX)`),
|
|
1023
1051
|
__mj_CreatedAt: zod_1.z.date().describe(`
|
|
1024
1052
|
* * Field Name: __mj_CreatedAt
|
|
1025
1053
|
* * Display Name: Created At
|
|
@@ -1030,57 +1058,57 @@ exports.AIAgentActionSchema = zod_1.z.object({
|
|
|
1030
1058
|
* * Display Name: Updated At
|
|
1031
1059
|
* * SQL Data Type: datetimeoffset
|
|
1032
1060
|
* * Default Value: getutcdate()`),
|
|
1033
|
-
Agent: zod_1.z.string().nullish().describe(`
|
|
1034
|
-
* * Field Name: Agent
|
|
1035
|
-
* * Display Name: Agent
|
|
1036
|
-
* * SQL Data Type: nvarchar(255)`),
|
|
1037
|
-
Action: zod_1.z.string().nullish().describe(`
|
|
1038
|
-
* * Field Name: Action
|
|
1039
|
-
* * Display Name: Action
|
|
1040
|
-
* * SQL Data Type: nvarchar(425)`),
|
|
1041
1061
|
});
|
|
1042
1062
|
/**
|
|
1043
|
-
* zod schema definition for the entity
|
|
1063
|
+
* zod schema definition for the entity AI Models
|
|
1044
1064
|
*/
|
|
1045
|
-
exports.
|
|
1065
|
+
exports.AIModelSchema = zod_1.z.object({
|
|
1046
1066
|
ID: zod_1.z.string().describe(`
|
|
1047
1067
|
* * Field Name: ID
|
|
1048
1068
|
* * Display Name: ID
|
|
1049
1069
|
* * SQL Data Type: uniqueidentifier
|
|
1050
|
-
* * Default Value: newsequentialid()
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
* *
|
|
1054
|
-
* *
|
|
1070
|
+
* * Default Value: newsequentialid()`),
|
|
1071
|
+
Name: zod_1.z.string().describe(`
|
|
1072
|
+
* * Field Name: Name
|
|
1073
|
+
* * Display Name: Name
|
|
1074
|
+
* * SQL Data Type: nvarchar(50)`),
|
|
1075
|
+
Description: zod_1.z.string().nullish().describe(`
|
|
1076
|
+
* * Field Name: Description
|
|
1077
|
+
* * Display Name: Description
|
|
1078
|
+
* * SQL Data Type: nvarchar(MAX)`),
|
|
1079
|
+
Vendor: zod_1.z.string().nullish().describe(`
|
|
1080
|
+
* * Field Name: Vendor
|
|
1081
|
+
* * Display Name: Vendor
|
|
1082
|
+
* * SQL Data Type: nvarchar(50)`),
|
|
1083
|
+
AIModelTypeID: zod_1.z.string().describe(`
|
|
1084
|
+
* * Field Name: AIModelTypeID
|
|
1085
|
+
* * Display Name: AI Model Type ID
|
|
1055
1086
|
* * SQL Data Type: uniqueidentifier
|
|
1056
|
-
* * Related Entity/Foreign Key:
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
* *
|
|
1060
|
-
* *
|
|
1061
|
-
* *
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
* *
|
|
1066
|
-
* *
|
|
1067
|
-
* *
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
* *
|
|
1071
|
-
* *
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
* * Display Name: Agent Summary
|
|
1082
|
-
* * SQL Data Type: nvarchar(MAX)
|
|
1083
|
-
* * Description: Text summary provided by the agent about what it learned and any changes it requested for stored metadata.`),
|
|
1087
|
+
* * Related Entity/Foreign Key: AI Model Types (vwAIModelTypes.ID)`),
|
|
1088
|
+
PowerRank: zod_1.z.number().nullish().describe(`
|
|
1089
|
+
* * Field Name: PowerRank
|
|
1090
|
+
* * Display Name: Power Rank
|
|
1091
|
+
* * SQL Data Type: int
|
|
1092
|
+
* * Default Value: 0
|
|
1093
|
+
* * Description: Optional column that ranks the power of the AI model. Default is 0 and should be non-negative.`),
|
|
1094
|
+
IsActive: zod_1.z.boolean().describe(`
|
|
1095
|
+
* * Field Name: IsActive
|
|
1096
|
+
* * Display Name: Is Active
|
|
1097
|
+
* * SQL Data Type: bit
|
|
1098
|
+
* * Default Value: 1`),
|
|
1099
|
+
DriverClass: zod_1.z.string().nullish().describe(`
|
|
1100
|
+
* * Field Name: DriverClass
|
|
1101
|
+
* * Display Name: Driver Class
|
|
1102
|
+
* * SQL Data Type: nvarchar(100)`),
|
|
1103
|
+
DriverImportPath: zod_1.z.string().nullish().describe(`
|
|
1104
|
+
* * Field Name: DriverImportPath
|
|
1105
|
+
* * Display Name: Driver Import Path
|
|
1106
|
+
* * SQL Data Type: nvarchar(255)`),
|
|
1107
|
+
APIName: zod_1.z.string().nullish().describe(`
|
|
1108
|
+
* * Field Name: APIName
|
|
1109
|
+
* * Display Name: APIName
|
|
1110
|
+
* * SQL Data Type: nvarchar(100)
|
|
1111
|
+
* * Description: The name of the model to use with API calls which might differ from the Name, if APIName is not provided, Name will be used for API calls`),
|
|
1084
1112
|
__mj_CreatedAt: zod_1.z.date().describe(`
|
|
1085
1113
|
* * Field Name: __mj_CreatedAt
|
|
1086
1114
|
* * Display Name: Created At
|
|
@@ -1091,42 +1119,56 @@ exports.AIAgentLearningCycleSchema = zod_1.z.object({
|
|
|
1091
1119
|
* * Display Name: Updated At
|
|
1092
1120
|
* * SQL Data Type: datetimeoffset
|
|
1093
1121
|
* * Default Value: getutcdate()`),
|
|
1094
|
-
|
|
1095
|
-
* * Field Name:
|
|
1096
|
-
* * Display Name:
|
|
1097
|
-
* * SQL Data Type:
|
|
1122
|
+
SpeedRank: zod_1.z.number().nullish().describe(`
|
|
1123
|
+
* * Field Name: SpeedRank
|
|
1124
|
+
* * Display Name: Speed Rank
|
|
1125
|
+
* * SQL Data Type: int
|
|
1126
|
+
* * Default Value: 0
|
|
1127
|
+
* * Description: Optional column that ranks the speed of the AI model. Default is 0 and should be non-negative.`),
|
|
1128
|
+
CostRank: zod_1.z.number().nullish().describe(`
|
|
1129
|
+
* * Field Name: CostRank
|
|
1130
|
+
* * Display Name: Cost Rank
|
|
1131
|
+
* * SQL Data Type: int
|
|
1132
|
+
* * Default Value: 0
|
|
1133
|
+
* * Description: Optional column that ranks the cost of the AI model. Default is 0 and should be non-negative.`),
|
|
1134
|
+
ModelSelectionInsights: zod_1.z.string().nullish().describe(`
|
|
1135
|
+
* * Field Name: ModelSelectionInsights
|
|
1136
|
+
* * Display Name: Model Selection Insights
|
|
1137
|
+
* * SQL Data Type: nvarchar(MAX)
|
|
1138
|
+
* * Description: This column stores unstructured text notes that provide insights into what the model is particularly good at and areas where it may not perform as well. These notes can be used by a human or an AI to determine if the model is a good fit for various purposes.`),
|
|
1139
|
+
InputTokenLimit: zod_1.z.number().nullish().describe(`
|
|
1140
|
+
* * Field Name: InputTokenLimit
|
|
1141
|
+
* * Display Name: Input Token Limit
|
|
1142
|
+
* * SQL Data Type: int
|
|
1143
|
+
* * Description: Stores the maximum number of tokens that fit in the context window for the model.`),
|
|
1144
|
+
AIModelType: zod_1.z.string().describe(`
|
|
1145
|
+
* * Field Name: AIModelType
|
|
1146
|
+
* * Display Name: AIModel Type
|
|
1147
|
+
* * SQL Data Type: nvarchar(50)`),
|
|
1098
1148
|
});
|
|
1099
1149
|
/**
|
|
1100
|
-
* zod schema definition for the entity
|
|
1150
|
+
* zod schema definition for the entity AI Prompt Categories
|
|
1101
1151
|
*/
|
|
1102
|
-
exports.
|
|
1152
|
+
exports.AIPromptCategorySchema = zod_1.z.object({
|
|
1103
1153
|
ID: zod_1.z.string().describe(`
|
|
1104
1154
|
* * Field Name: ID
|
|
1105
1155
|
* * Display Name: ID
|
|
1106
1156
|
* * SQL Data Type: uniqueidentifier
|
|
1107
|
-
* * Default Value: newsequentialid()
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
* *
|
|
1111
|
-
* *
|
|
1112
|
-
|
|
1113
|
-
* *
|
|
1114
|
-
|
|
1115
|
-
ModelID: zod_1.z.string().nullish().describe(`
|
|
1116
|
-
* * Field Name: ModelID
|
|
1117
|
-
* * Display Name: Model ID
|
|
1157
|
+
* * Default Value: newsequentialid()`),
|
|
1158
|
+
Name: zod_1.z.string().describe(`
|
|
1159
|
+
* * Field Name: Name
|
|
1160
|
+
* * Display Name: Name
|
|
1161
|
+
* * SQL Data Type: nvarchar(255)`),
|
|
1162
|
+
ParentID: zod_1.z.string().nullish().describe(`
|
|
1163
|
+
* * Field Name: ParentID
|
|
1164
|
+
* * Display Name: Parent ID
|
|
1118
1165
|
* * SQL Data Type: uniqueidentifier
|
|
1119
|
-
* * Related Entity/Foreign Key: AI
|
|
1120
|
-
* * Description:
|
|
1121
|
-
|
|
1122
|
-
* * Field Name:
|
|
1123
|
-
* * Display Name:
|
|
1124
|
-
* * SQL Data Type:
|
|
1125
|
-
Priority: zod_1.z.number().nullish().describe(`
|
|
1126
|
-
* * Field Name: Priority
|
|
1127
|
-
* * Display Name: Priority
|
|
1128
|
-
* * SQL Data Type: int
|
|
1129
|
-
* * Description: The priority level of the AI model for the agent, where higher values indicate higher priority.`),
|
|
1166
|
+
* * Related Entity/Foreign Key: AI Prompt Categories (vwAIPromptCategories.ID)
|
|
1167
|
+
* * Description: Parent category ID for hierarchical organization.`),
|
|
1168
|
+
Description: zod_1.z.string().nullish().describe(`
|
|
1169
|
+
* * Field Name: Description
|
|
1170
|
+
* * Display Name: Description
|
|
1171
|
+
* * SQL Data Type: nvarchar(MAX)`),
|
|
1130
1172
|
__mj_CreatedAt: zod_1.z.date().describe(`
|
|
1131
1173
|
* * Field Name: __mj_CreatedAt
|
|
1132
1174
|
* * Display Name: Created At
|
|
@@ -1137,25 +1179,21 @@ exports.AIAgentModelSchema = zod_1.z.object({
|
|
|
1137
1179
|
* * Display Name: Updated At
|
|
1138
1180
|
* * SQL Data Type: datetimeoffset
|
|
1139
1181
|
* * Default Value: getutcdate()`),
|
|
1140
|
-
|
|
1141
|
-
* * Field Name:
|
|
1142
|
-
* * Display Name:
|
|
1182
|
+
Parent: zod_1.z.string().nullish().describe(`
|
|
1183
|
+
* * Field Name: Parent
|
|
1184
|
+
* * Display Name: Parent
|
|
1143
1185
|
* * SQL Data Type: nvarchar(255)`),
|
|
1144
|
-
Model: zod_1.z.string().nullish().describe(`
|
|
1145
|
-
* * Field Name: Model
|
|
1146
|
-
* * Display Name: Model
|
|
1147
|
-
* * SQL Data Type: nvarchar(50)`),
|
|
1148
1186
|
});
|
|
1149
1187
|
/**
|
|
1150
|
-
* zod schema definition for the entity
|
|
1188
|
+
* zod schema definition for the entity AI Prompt Types
|
|
1151
1189
|
*/
|
|
1152
|
-
exports.
|
|
1190
|
+
exports.AIPromptTypeSchema = zod_1.z.object({
|
|
1153
1191
|
ID: zod_1.z.string().describe(`
|
|
1154
1192
|
* * Field Name: ID
|
|
1155
1193
|
* * Display Name: ID
|
|
1156
1194
|
* * SQL Data Type: uniqueidentifier
|
|
1157
1195
|
* * Default Value: newsequentialid()`),
|
|
1158
|
-
Name: zod_1.z.string().
|
|
1196
|
+
Name: zod_1.z.string().describe(`
|
|
1159
1197
|
* * Field Name: Name
|
|
1160
1198
|
* * Display Name: Name
|
|
1161
1199
|
* * SQL Data Type: nvarchar(255)`),
|
|
@@ -1175,28 +1213,61 @@ exports.AIAgentNoteTypeSchema = zod_1.z.object({
|
|
|
1175
1213
|
* * Default Value: getutcdate()`),
|
|
1176
1214
|
});
|
|
1177
1215
|
/**
|
|
1178
|
-
* zod schema definition for the entity
|
|
1216
|
+
* zod schema definition for the entity AI Prompts
|
|
1179
1217
|
*/
|
|
1180
|
-
exports.
|
|
1218
|
+
exports.AIPromptSchema = zod_1.z.object({
|
|
1181
1219
|
ID: zod_1.z.string().describe(`
|
|
1182
1220
|
* * Field Name: ID
|
|
1183
1221
|
* * Display Name: ID
|
|
1184
1222
|
* * SQL Data Type: uniqueidentifier
|
|
1185
1223
|
* * Default Value: newsequentialid()`),
|
|
1186
|
-
|
|
1187
|
-
* * Field Name:
|
|
1188
|
-
* * Display Name:
|
|
1224
|
+
Name: zod_1.z.string().describe(`
|
|
1225
|
+
* * Field Name: Name
|
|
1226
|
+
* * Display Name: Name
|
|
1227
|
+
* * SQL Data Type: nvarchar(255)`),
|
|
1228
|
+
Description: zod_1.z.string().nullish().describe(`
|
|
1229
|
+
* * Field Name: Description
|
|
1230
|
+
* * Display Name: Description
|
|
1231
|
+
* * SQL Data Type: nvarchar(MAX)`),
|
|
1232
|
+
TemplateID: zod_1.z.string().describe(`
|
|
1233
|
+
* * Field Name: TemplateID
|
|
1234
|
+
* * Display Name: Template ID
|
|
1189
1235
|
* * SQL Data Type: uniqueidentifier
|
|
1190
|
-
* * Related Entity/Foreign Key:
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
* *
|
|
1236
|
+
* * Related Entity/Foreign Key: Templates (vwTemplates.ID)
|
|
1237
|
+
* * Description: Reference to the template used for the prompt.`),
|
|
1238
|
+
CategoryID: zod_1.z.string().nullish().describe(`
|
|
1239
|
+
* * Field Name: CategoryID
|
|
1240
|
+
* * Display Name: Category ID
|
|
1194
1241
|
* * SQL Data Type: uniqueidentifier
|
|
1195
|
-
* * Related Entity/Foreign Key:
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
* *
|
|
1199
|
-
* *
|
|
1242
|
+
* * Related Entity/Foreign Key: AI Prompt Categories (vwAIPromptCategories.ID)
|
|
1243
|
+
* * Description: Reference to the category the prompt belongs to.`),
|
|
1244
|
+
TypeID: zod_1.z.string().describe(`
|
|
1245
|
+
* * Field Name: TypeID
|
|
1246
|
+
* * Display Name: Type ID
|
|
1247
|
+
* * SQL Data Type: uniqueidentifier
|
|
1248
|
+
* * Related Entity/Foreign Key: AI Prompt Types (vwAIPromptTypes.ID)
|
|
1249
|
+
* * Description: Reference to the type of the prompt.`),
|
|
1250
|
+
Status: zod_1.z.union([zod_1.z.literal('Pending'), zod_1.z.literal('Active'), zod_1.z.literal('Disabled')]).describe(`
|
|
1251
|
+
* * Field Name: Status
|
|
1252
|
+
* * Display Name: Status
|
|
1253
|
+
* * SQL Data Type: nvarchar(50)
|
|
1254
|
+
* * Value List Type: List
|
|
1255
|
+
* * Possible Values
|
|
1256
|
+
* * Pending
|
|
1257
|
+
* * Active
|
|
1258
|
+
* * Disabled`),
|
|
1259
|
+
CacheResults: zod_1.z.boolean().describe(`
|
|
1260
|
+
* * Field Name: CacheResults
|
|
1261
|
+
* * Display Name: Cache Results
|
|
1262
|
+
* * SQL Data Type: bit
|
|
1263
|
+
* * Default Value: 0
|
|
1264
|
+
* * Description: Indicates whether the results of the prompt should be cached.`),
|
|
1265
|
+
CacheExpiration: zod_1.z.number().describe(`
|
|
1266
|
+
* * Field Name: CacheExpiration
|
|
1267
|
+
* * Display Name: Cache Expiration
|
|
1268
|
+
* * SQL Data Type: decimal(10, 2)
|
|
1269
|
+
* * Default Value: 0
|
|
1270
|
+
* * Description: Number of hours the cache is valid for; can be fractional or 0 if the cache never expires.`),
|
|
1200
1271
|
__mj_CreatedAt: zod_1.z.date().describe(`
|
|
1201
1272
|
* * Field Name: __mj_CreatedAt
|
|
1202
1273
|
* * Display Name: Created At
|
|
@@ -1207,39 +1278,69 @@ exports.AIAgentNoteSchema = zod_1.z.object({
|
|
|
1207
1278
|
* * Display Name: Updated At
|
|
1208
1279
|
* * SQL Data Type: datetimeoffset
|
|
1209
1280
|
* * Default Value: getutcdate()`),
|
|
1210
|
-
|
|
1211
|
-
* * Field Name:
|
|
1212
|
-
* * Display Name:
|
|
1281
|
+
Template: zod_1.z.string().describe(`
|
|
1282
|
+
* * Field Name: Template
|
|
1283
|
+
* * Display Name: Template
|
|
1213
1284
|
* * SQL Data Type: nvarchar(255)`),
|
|
1214
|
-
|
|
1215
|
-
* * Field Name:
|
|
1216
|
-
* * Display Name:
|
|
1285
|
+
Category: zod_1.z.string().nullish().describe(`
|
|
1286
|
+
* * Field Name: Category
|
|
1287
|
+
* * Display Name: Category
|
|
1288
|
+
* * SQL Data Type: nvarchar(255)`),
|
|
1289
|
+
Type: zod_1.z.string().describe(`
|
|
1290
|
+
* * Field Name: Type
|
|
1291
|
+
* * Display Name: Type
|
|
1217
1292
|
* * SQL Data Type: nvarchar(255)`),
|
|
1218
1293
|
});
|
|
1219
1294
|
/**
|
|
1220
|
-
* zod schema definition for the entity
|
|
1295
|
+
* zod schema definition for the entity AI Result Cache
|
|
1221
1296
|
*/
|
|
1222
|
-
exports.
|
|
1297
|
+
exports.AIResultCacheSchema = zod_1.z.object({
|
|
1223
1298
|
ID: zod_1.z.string().describe(`
|
|
1224
1299
|
* * Field Name: ID
|
|
1225
1300
|
* * Display Name: ID
|
|
1226
1301
|
* * SQL Data Type: uniqueidentifier
|
|
1227
|
-
* * Default Value: newsequentialid()
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
* *
|
|
1231
|
-
* *
|
|
1232
|
-
* *
|
|
1233
|
-
* * Description:
|
|
1234
|
-
|
|
1235
|
-
* * Field Name:
|
|
1236
|
-
* * Display Name:
|
|
1302
|
+
* * Default Value: newsequentialid()`),
|
|
1303
|
+
AIPromptID: zod_1.z.string().describe(`
|
|
1304
|
+
* * Field Name: AIPromptID
|
|
1305
|
+
* * Display Name: AIPrompt ID
|
|
1306
|
+
* * SQL Data Type: uniqueidentifier
|
|
1307
|
+
* * Related Entity/Foreign Key: AI Prompts (vwAIPrompts.ID)
|
|
1308
|
+
* * Description: Reference to the AI prompt this result corresponds to.`),
|
|
1309
|
+
AIModelID: zod_1.z.string().describe(`
|
|
1310
|
+
* * Field Name: AIModelID
|
|
1311
|
+
* * Display Name: AIModel ID
|
|
1312
|
+
* * SQL Data Type: uniqueidentifier
|
|
1313
|
+
* * Related Entity/Foreign Key: AI Models (vwAIModels.ID)
|
|
1314
|
+
* * Description: Reference to the AI model that generated this result.`),
|
|
1315
|
+
RunAt: zod_1.z.date().describe(`
|
|
1316
|
+
* * Field Name: RunAt
|
|
1317
|
+
* * Display Name: Run At
|
|
1318
|
+
* * SQL Data Type: datetimeoffset
|
|
1319
|
+
* * Description: Timestamp of when this result was generated.`),
|
|
1320
|
+
PromptText: zod_1.z.string().describe(`
|
|
1321
|
+
* * Field Name: PromptText
|
|
1322
|
+
* * Display Name: Prompt Text
|
|
1237
1323
|
* * SQL Data Type: nvarchar(MAX)
|
|
1238
|
-
* * Description:
|
|
1239
|
-
|
|
1240
|
-
* * Field Name:
|
|
1241
|
-
* * Display Name:
|
|
1242
|
-
* * SQL Data Type: nvarchar(
|
|
1324
|
+
* * Description: The prompt text used to generate this result.`),
|
|
1325
|
+
ResultText: zod_1.z.string().nullish().describe(`
|
|
1326
|
+
* * Field Name: ResultText
|
|
1327
|
+
* * Display Name: Result Text
|
|
1328
|
+
* * SQL Data Type: nvarchar(MAX)
|
|
1329
|
+
* * Description: The text of the result generated by the AI model.`),
|
|
1330
|
+
Status: zod_1.z.union([zod_1.z.literal('Active'), zod_1.z.literal('Expired')]).describe(`
|
|
1331
|
+
* * Field Name: Status
|
|
1332
|
+
* * Display Name: Status
|
|
1333
|
+
* * SQL Data Type: nvarchar(50)
|
|
1334
|
+
* * Value List Type: List
|
|
1335
|
+
* * Possible Values
|
|
1336
|
+
* * Active
|
|
1337
|
+
* * Expired
|
|
1338
|
+
* * Description: The status of this result, indicating whether it is currently active or expired.`),
|
|
1339
|
+
ExpiredOn: zod_1.z.date().nullish().describe(`
|
|
1340
|
+
* * Field Name: ExpiredOn
|
|
1341
|
+
* * Display Name: Expired On
|
|
1342
|
+
* * SQL Data Type: datetimeoffset
|
|
1343
|
+
* * Description: Timestamp of when this result was marked as expired.`),
|
|
1243
1344
|
__mj_CreatedAt: zod_1.z.date().describe(`
|
|
1244
1345
|
* * Field Name: __mj_CreatedAt
|
|
1245
1346
|
* * Display Name: Created At
|
|
@@ -1250,6 +1351,14 @@ exports.AIAgentSchema = zod_1.z.object({
|
|
|
1250
1351
|
* * Display Name: Updated At
|
|
1251
1352
|
* * SQL Data Type: datetimeoffset
|
|
1252
1353
|
* * Default Value: getutcdate()`),
|
|
1354
|
+
AIPrompt: zod_1.z.string().describe(`
|
|
1355
|
+
* * Field Name: AIPrompt
|
|
1356
|
+
* * Display Name: AIPrompt
|
|
1357
|
+
* * SQL Data Type: nvarchar(255)`),
|
|
1358
|
+
AIModel: zod_1.z.string().describe(`
|
|
1359
|
+
* * Field Name: AIModel
|
|
1360
|
+
* * Display Name: AIModel
|
|
1361
|
+
* * SQL Data Type: nvarchar(50)`),
|
|
1253
1362
|
});
|
|
1254
1363
|
/**
|
|
1255
1364
|
* zod schema definition for the entity Application Entities
|
|
@@ -10682,25 +10791,25 @@ exports.AIActionEntity = AIActionEntity = __decorate([
|
|
|
10682
10791
|
(0, global_1.RegisterClass)(core_1.BaseEntity, 'AI Actions')
|
|
10683
10792
|
], AIActionEntity);
|
|
10684
10793
|
/**
|
|
10685
|
-
* AI
|
|
10794
|
+
* AI Agent Actions - strongly typed entity sub-class
|
|
10686
10795
|
* * Schema: __mj
|
|
10687
|
-
* * Base Table:
|
|
10688
|
-
* * Base View:
|
|
10689
|
-
* * @description
|
|
10796
|
+
* * Base Table: AIAgentAction
|
|
10797
|
+
* * Base View: vwAIAgentActions
|
|
10798
|
+
* * @description Table to store the relationship between AI agents and actions.
|
|
10690
10799
|
* * Primary Key: ID
|
|
10691
10800
|
* @extends {BaseEntity}
|
|
10692
10801
|
* @class
|
|
10693
10802
|
* @public
|
|
10694
10803
|
*/
|
|
10695
|
-
let
|
|
10804
|
+
let AIAgentActionEntity = class AIAgentActionEntity extends core_1.BaseEntity {
|
|
10696
10805
|
/**
|
|
10697
|
-
* Loads the AI
|
|
10698
|
-
* @param ID: string - primary key value to load the AI
|
|
10806
|
+
* Loads the AI Agent Actions record from the database
|
|
10807
|
+
* @param ID: string - primary key value to load the AI Agent Actions record.
|
|
10699
10808
|
* @param EntityRelationshipsToLoad - (optional) the relationships to load
|
|
10700
10809
|
* @returns {Promise<boolean>} - true if successful, false otherwise
|
|
10701
10810
|
* @public
|
|
10702
10811
|
* @async
|
|
10703
|
-
* @memberof
|
|
10812
|
+
* @memberof AIAgentActionEntity
|
|
10704
10813
|
* @method
|
|
10705
10814
|
* @override
|
|
10706
10815
|
*/
|
|
@@ -10714,45 +10823,197 @@ let AIModelActionEntity = class AIModelActionEntity extends core_1.BaseEntity {
|
|
|
10714
10823
|
* * Display Name: ID
|
|
10715
10824
|
* * SQL Data Type: uniqueidentifier
|
|
10716
10825
|
* * Default Value: newsequentialid()
|
|
10826
|
+
* * Description: The unique identifier for each AI agent-action mapping. Serves as the primary key.
|
|
10717
10827
|
*/
|
|
10718
10828
|
get ID() {
|
|
10719
10829
|
return this.Get('ID');
|
|
10720
10830
|
}
|
|
10721
10831
|
/**
|
|
10722
|
-
* * Field Name:
|
|
10723
|
-
* * Display Name:
|
|
10832
|
+
* * Field Name: AgentID
|
|
10833
|
+
* * Display Name: Agent ID
|
|
10724
10834
|
* * SQL Data Type: uniqueidentifier
|
|
10725
|
-
* * Related Entity/Foreign Key: AI
|
|
10835
|
+
* * Related Entity/Foreign Key: AI Agents (vwAIAgents.ID)
|
|
10836
|
+
* * Description: References the unique identifier of the associated AI agent from the AIAgent table.
|
|
10726
10837
|
*/
|
|
10727
|
-
get
|
|
10728
|
-
return this.Get('
|
|
10838
|
+
get AgentID() {
|
|
10839
|
+
return this.Get('AgentID');
|
|
10840
|
+
}
|
|
10841
|
+
set AgentID(value) {
|
|
10842
|
+
this.Set('AgentID', value);
|
|
10843
|
+
}
|
|
10844
|
+
/**
|
|
10845
|
+
* * Field Name: ActionID
|
|
10846
|
+
* * Display Name: Action ID
|
|
10847
|
+
* * SQL Data Type: uniqueidentifier
|
|
10848
|
+
* * Related Entity/Foreign Key: Actions (vwActions.ID)
|
|
10849
|
+
* * Description: References the unique identifier of the associated action from the Action table.
|
|
10850
|
+
*/
|
|
10851
|
+
get ActionID() {
|
|
10852
|
+
return this.Get('ActionID');
|
|
10853
|
+
}
|
|
10854
|
+
set ActionID(value) {
|
|
10855
|
+
this.Set('ActionID', value);
|
|
10856
|
+
}
|
|
10857
|
+
/**
|
|
10858
|
+
* * Field Name: Status
|
|
10859
|
+
* * Display Name: Status
|
|
10860
|
+
* * SQL Data Type: nvarchar(15)
|
|
10861
|
+
* * Default Value: Active
|
|
10862
|
+
* * Value List Type: List
|
|
10863
|
+
* * Possible Values
|
|
10864
|
+
* * Pending
|
|
10865
|
+
* * Active
|
|
10866
|
+
* * Revoked
|
|
10867
|
+
*/
|
|
10868
|
+
get Status() {
|
|
10869
|
+
return this.Get('Status');
|
|
10870
|
+
}
|
|
10871
|
+
set Status(value) {
|
|
10872
|
+
this.Set('Status', value);
|
|
10873
|
+
}
|
|
10874
|
+
/**
|
|
10875
|
+
* * Field Name: __mj_CreatedAt
|
|
10876
|
+
* * Display Name: Created At
|
|
10877
|
+
* * SQL Data Type: datetimeoffset
|
|
10878
|
+
* * Default Value: getutcdate()
|
|
10879
|
+
*/
|
|
10880
|
+
get __mj_CreatedAt() {
|
|
10881
|
+
return this.Get('__mj_CreatedAt');
|
|
10882
|
+
}
|
|
10883
|
+
/**
|
|
10884
|
+
* * Field Name: __mj_UpdatedAt
|
|
10885
|
+
* * Display Name: Updated At
|
|
10886
|
+
* * SQL Data Type: datetimeoffset
|
|
10887
|
+
* * Default Value: getutcdate()
|
|
10888
|
+
*/
|
|
10889
|
+
get __mj_UpdatedAt() {
|
|
10890
|
+
return this.Get('__mj_UpdatedAt');
|
|
10891
|
+
}
|
|
10892
|
+
/**
|
|
10893
|
+
* * Field Name: Agent
|
|
10894
|
+
* * Display Name: Agent
|
|
10895
|
+
* * SQL Data Type: nvarchar(255)
|
|
10896
|
+
*/
|
|
10897
|
+
get Agent() {
|
|
10898
|
+
return this.Get('Agent');
|
|
10899
|
+
}
|
|
10900
|
+
/**
|
|
10901
|
+
* * Field Name: Action
|
|
10902
|
+
* * Display Name: Action
|
|
10903
|
+
* * SQL Data Type: nvarchar(425)
|
|
10904
|
+
*/
|
|
10905
|
+
get Action() {
|
|
10906
|
+
return this.Get('Action');
|
|
10907
|
+
}
|
|
10908
|
+
};
|
|
10909
|
+
exports.AIAgentActionEntity = AIAgentActionEntity;
|
|
10910
|
+
exports.AIAgentActionEntity = AIAgentActionEntity = __decorate([
|
|
10911
|
+
(0, global_1.RegisterClass)(core_1.BaseEntity, 'AI Agent Actions')
|
|
10912
|
+
], AIAgentActionEntity);
|
|
10913
|
+
/**
|
|
10914
|
+
* AI Agent Learning Cycles - strongly typed entity sub-class
|
|
10915
|
+
* * Schema: __mj
|
|
10916
|
+
* * Base Table: AIAgentLearningCycle
|
|
10917
|
+
* * Base View: vwAIAgentLearningCycles
|
|
10918
|
+
* * @description Tracks the learning cycles for AI Agents where the Agent does offline reasoning, reflection, learning, and updates metadata.
|
|
10919
|
+
* * Primary Key: ID
|
|
10920
|
+
* @extends {BaseEntity}
|
|
10921
|
+
* @class
|
|
10922
|
+
* @public
|
|
10923
|
+
*/
|
|
10924
|
+
let AIAgentLearningCycleEntity = class AIAgentLearningCycleEntity extends core_1.BaseEntity {
|
|
10925
|
+
/**
|
|
10926
|
+
* Loads the AI Agent Learning Cycles record from the database
|
|
10927
|
+
* @param ID: string - primary key value to load the AI Agent Learning Cycles record.
|
|
10928
|
+
* @param EntityRelationshipsToLoad - (optional) the relationships to load
|
|
10929
|
+
* @returns {Promise<boolean>} - true if successful, false otherwise
|
|
10930
|
+
* @public
|
|
10931
|
+
* @async
|
|
10932
|
+
* @memberof AIAgentLearningCycleEntity
|
|
10933
|
+
* @method
|
|
10934
|
+
* @override
|
|
10935
|
+
*/
|
|
10936
|
+
async Load(ID, EntityRelationshipsToLoad) {
|
|
10937
|
+
const compositeKey = new core_1.CompositeKey();
|
|
10938
|
+
compositeKey.KeyValuePairs.push({ FieldName: 'ID', Value: ID });
|
|
10939
|
+
return await super.InnerLoad(compositeKey, EntityRelationshipsToLoad);
|
|
10940
|
+
}
|
|
10941
|
+
/**
|
|
10942
|
+
* * Field Name: ID
|
|
10943
|
+
* * Display Name: ID
|
|
10944
|
+
* * SQL Data Type: uniqueidentifier
|
|
10945
|
+
* * Default Value: newsequentialid()
|
|
10946
|
+
* * Description: Unique identifier for the learning cycle.
|
|
10947
|
+
*/
|
|
10948
|
+
get ID() {
|
|
10949
|
+
return this.Get('ID');
|
|
10950
|
+
}
|
|
10951
|
+
/**
|
|
10952
|
+
* * Field Name: AgentID
|
|
10953
|
+
* * Display Name: Agent ID
|
|
10954
|
+
* * SQL Data Type: uniqueidentifier
|
|
10955
|
+
* * Related Entity/Foreign Key: AI Agents (vwAIAgents.ID)
|
|
10956
|
+
* * Description: Identifier for the AI Agent associated with this learning cycle.
|
|
10957
|
+
*/
|
|
10958
|
+
get AgentID() {
|
|
10959
|
+
return this.Get('AgentID');
|
|
10960
|
+
}
|
|
10961
|
+
set AgentID(value) {
|
|
10962
|
+
this.Set('AgentID', value);
|
|
10963
|
+
}
|
|
10964
|
+
/**
|
|
10965
|
+
* * Field Name: StartedAt
|
|
10966
|
+
* * Display Name: Started At
|
|
10967
|
+
* * SQL Data Type: datetimeoffset
|
|
10968
|
+
* * Default Value: getutcdate()
|
|
10969
|
+
* * Description: Timestamp indicating when the learning cycle started.
|
|
10970
|
+
*/
|
|
10971
|
+
get StartedAt() {
|
|
10972
|
+
return this.Get('StartedAt');
|
|
10973
|
+
}
|
|
10974
|
+
set StartedAt(value) {
|
|
10975
|
+
this.Set('StartedAt', value);
|
|
10976
|
+
}
|
|
10977
|
+
/**
|
|
10978
|
+
* * Field Name: EndedAt
|
|
10979
|
+
* * Display Name: Ended At
|
|
10980
|
+
* * SQL Data Type: datetimeoffset
|
|
10981
|
+
* * Description: Timestamp indicating when the learning cycle ended.
|
|
10982
|
+
*/
|
|
10983
|
+
get EndedAt() {
|
|
10984
|
+
return this.Get('EndedAt');
|
|
10729
10985
|
}
|
|
10730
|
-
set
|
|
10731
|
-
this.Set('
|
|
10986
|
+
set EndedAt(value) {
|
|
10987
|
+
this.Set('EndedAt', value);
|
|
10732
10988
|
}
|
|
10733
10989
|
/**
|
|
10734
|
-
* * Field Name:
|
|
10735
|
-
* * Display Name:
|
|
10736
|
-
* * SQL Data Type:
|
|
10737
|
-
* *
|
|
10990
|
+
* * Field Name: Status
|
|
10991
|
+
* * Display Name: Status
|
|
10992
|
+
* * SQL Data Type: nvarchar(20)
|
|
10993
|
+
* * Value List Type: List
|
|
10994
|
+
* * Possible Values
|
|
10995
|
+
* * In-Progress
|
|
10996
|
+
* * Complete
|
|
10997
|
+
* * Failed
|
|
10998
|
+
* * Description: Status of the learning cycle (In-Progress, Complete, or Failed).
|
|
10738
10999
|
*/
|
|
10739
|
-
get
|
|
10740
|
-
return this.Get('
|
|
11000
|
+
get Status() {
|
|
11001
|
+
return this.Get('Status');
|
|
10741
11002
|
}
|
|
10742
|
-
set
|
|
10743
|
-
this.Set('
|
|
11003
|
+
set Status(value) {
|
|
11004
|
+
this.Set('Status', value);
|
|
10744
11005
|
}
|
|
10745
11006
|
/**
|
|
10746
|
-
* * Field Name:
|
|
10747
|
-
* * Display Name:
|
|
10748
|
-
* * SQL Data Type:
|
|
10749
|
-
* *
|
|
11007
|
+
* * Field Name: AgentSummary
|
|
11008
|
+
* * Display Name: Agent Summary
|
|
11009
|
+
* * SQL Data Type: nvarchar(MAX)
|
|
11010
|
+
* * Description: Text summary provided by the agent about what it learned and any changes it requested for stored metadata.
|
|
10750
11011
|
*/
|
|
10751
|
-
get
|
|
10752
|
-
return this.Get('
|
|
11012
|
+
get AgentSummary() {
|
|
11013
|
+
return this.Get('AgentSummary');
|
|
10753
11014
|
}
|
|
10754
|
-
set
|
|
10755
|
-
this.Set('
|
|
11015
|
+
set AgentSummary(value) {
|
|
11016
|
+
this.Set('AgentSummary', value);
|
|
10756
11017
|
}
|
|
10757
11018
|
/**
|
|
10758
11019
|
* * Field Name: __mj_CreatedAt
|
|
@@ -10773,46 +11034,38 @@ let AIModelActionEntity = class AIModelActionEntity extends core_1.BaseEntity {
|
|
|
10773
11034
|
return this.Get('__mj_UpdatedAt');
|
|
10774
11035
|
}
|
|
10775
11036
|
/**
|
|
10776
|
-
* * Field Name:
|
|
10777
|
-
* * Display Name:
|
|
10778
|
-
* * SQL Data Type: nvarchar(
|
|
10779
|
-
*/
|
|
10780
|
-
get AIModel() {
|
|
10781
|
-
return this.Get('AIModel');
|
|
10782
|
-
}
|
|
10783
|
-
/**
|
|
10784
|
-
* * Field Name: AIAction
|
|
10785
|
-
* * Display Name: AIAction
|
|
10786
|
-
* * SQL Data Type: nvarchar(50)
|
|
11037
|
+
* * Field Name: Agent
|
|
11038
|
+
* * Display Name: Agent
|
|
11039
|
+
* * SQL Data Type: nvarchar(255)
|
|
10787
11040
|
*/
|
|
10788
|
-
get
|
|
10789
|
-
return this.Get('
|
|
11041
|
+
get Agent() {
|
|
11042
|
+
return this.Get('Agent');
|
|
10790
11043
|
}
|
|
10791
11044
|
};
|
|
10792
|
-
exports.
|
|
10793
|
-
exports.
|
|
10794
|
-
(0, global_1.RegisterClass)(core_1.BaseEntity, 'AI
|
|
10795
|
-
],
|
|
11045
|
+
exports.AIAgentLearningCycleEntity = AIAgentLearningCycleEntity;
|
|
11046
|
+
exports.AIAgentLearningCycleEntity = AIAgentLearningCycleEntity = __decorate([
|
|
11047
|
+
(0, global_1.RegisterClass)(core_1.BaseEntity, 'AI Agent Learning Cycles')
|
|
11048
|
+
], AIAgentLearningCycleEntity);
|
|
10796
11049
|
/**
|
|
10797
|
-
* AI
|
|
11050
|
+
* AI Agent Models - strongly typed entity sub-class
|
|
10798
11051
|
* * Schema: __mj
|
|
10799
|
-
* * Base Table:
|
|
10800
|
-
* * Base View:
|
|
10801
|
-
* * @description
|
|
11052
|
+
* * Base Table: AIAgentModel
|
|
11053
|
+
* * Base View: vwAIAgentModels
|
|
11054
|
+
* * @description Table to store the relationship between AI agents and AI models.
|
|
10802
11055
|
* * Primary Key: ID
|
|
10803
11056
|
* @extends {BaseEntity}
|
|
10804
11057
|
* @class
|
|
10805
11058
|
* @public
|
|
10806
11059
|
*/
|
|
10807
|
-
let
|
|
11060
|
+
let AIAgentModelEntity = class AIAgentModelEntity extends core_1.BaseEntity {
|
|
10808
11061
|
/**
|
|
10809
|
-
* Loads the AI
|
|
10810
|
-
* @param ID: string - primary key value to load the AI
|
|
11062
|
+
* Loads the AI Agent Models record from the database
|
|
11063
|
+
* @param ID: string - primary key value to load the AI Agent Models record.
|
|
10811
11064
|
* @param EntityRelationshipsToLoad - (optional) the relationships to load
|
|
10812
11065
|
* @returns {Promise<boolean>} - true if successful, false otherwise
|
|
10813
11066
|
* @public
|
|
10814
11067
|
* @async
|
|
10815
|
-
* @memberof
|
|
11068
|
+
* @memberof AIAgentModelEntity
|
|
10816
11069
|
* @method
|
|
10817
11070
|
* @override
|
|
10818
11071
|
*/
|
|
@@ -10826,31 +11079,59 @@ let AIModelTypeEntity = class AIModelTypeEntity extends core_1.BaseEntity {
|
|
|
10826
11079
|
* * Display Name: ID
|
|
10827
11080
|
* * SQL Data Type: uniqueidentifier
|
|
10828
11081
|
* * Default Value: newsequentialid()
|
|
11082
|
+
* * Description: The unique identifier for each AI agent-model mapping. Serves as the primary key.
|
|
10829
11083
|
*/
|
|
10830
11084
|
get ID() {
|
|
10831
11085
|
return this.Get('ID');
|
|
10832
11086
|
}
|
|
10833
11087
|
/**
|
|
10834
|
-
* * Field Name:
|
|
10835
|
-
* * Display Name:
|
|
10836
|
-
* * SQL Data Type:
|
|
11088
|
+
* * Field Name: AgentID
|
|
11089
|
+
* * Display Name: Agent ID
|
|
11090
|
+
* * SQL Data Type: uniqueidentifier
|
|
11091
|
+
* * Related Entity/Foreign Key: AI Agents (vwAIAgents.ID)
|
|
11092
|
+
* * Description: References the unique identifier of the associated AI agent from AIAgent table.
|
|
10837
11093
|
*/
|
|
10838
|
-
get
|
|
10839
|
-
return this.Get('
|
|
11094
|
+
get AgentID() {
|
|
11095
|
+
return this.Get('AgentID');
|
|
10840
11096
|
}
|
|
10841
|
-
set
|
|
10842
|
-
this.Set('
|
|
11097
|
+
set AgentID(value) {
|
|
11098
|
+
this.Set('AgentID', value);
|
|
10843
11099
|
}
|
|
10844
11100
|
/**
|
|
10845
|
-
* * Field Name:
|
|
10846
|
-
* * Display Name:
|
|
10847
|
-
* * SQL Data Type:
|
|
11101
|
+
* * Field Name: ModelID
|
|
11102
|
+
* * Display Name: Model ID
|
|
11103
|
+
* * SQL Data Type: uniqueidentifier
|
|
11104
|
+
* * Related Entity/Foreign Key: AI Models (vwAIModels.ID)
|
|
11105
|
+
* * Description: The unique identifier of the associated AI model.
|
|
10848
11106
|
*/
|
|
10849
|
-
get
|
|
10850
|
-
return this.Get('
|
|
11107
|
+
get ModelID() {
|
|
11108
|
+
return this.Get('ModelID');
|
|
10851
11109
|
}
|
|
10852
|
-
set
|
|
10853
|
-
this.Set('
|
|
11110
|
+
set ModelID(value) {
|
|
11111
|
+
this.Set('ModelID', value);
|
|
11112
|
+
}
|
|
11113
|
+
/**
|
|
11114
|
+
* * Field Name: Active
|
|
11115
|
+
* * Display Name: Active
|
|
11116
|
+
* * SQL Data Type: bit
|
|
11117
|
+
*/
|
|
11118
|
+
get Active() {
|
|
11119
|
+
return this.Get('Active');
|
|
11120
|
+
}
|
|
11121
|
+
set Active(value) {
|
|
11122
|
+
this.Set('Active', value);
|
|
11123
|
+
}
|
|
11124
|
+
/**
|
|
11125
|
+
* * Field Name: Priority
|
|
11126
|
+
* * Display Name: Priority
|
|
11127
|
+
* * SQL Data Type: int
|
|
11128
|
+
* * Description: The priority level of the AI model for the agent, where higher values indicate higher priority.
|
|
11129
|
+
*/
|
|
11130
|
+
get Priority() {
|
|
11131
|
+
return this.Get('Priority');
|
|
11132
|
+
}
|
|
11133
|
+
set Priority(value) {
|
|
11134
|
+
this.Set('Priority', value);
|
|
10854
11135
|
}
|
|
10855
11136
|
/**
|
|
10856
11137
|
* * Field Name: __mj_CreatedAt
|
|
@@ -10870,31 +11151,46 @@ let AIModelTypeEntity = class AIModelTypeEntity extends core_1.BaseEntity {
|
|
|
10870
11151
|
get __mj_UpdatedAt() {
|
|
10871
11152
|
return this.Get('__mj_UpdatedAt');
|
|
10872
11153
|
}
|
|
11154
|
+
/**
|
|
11155
|
+
* * Field Name: Agent
|
|
11156
|
+
* * Display Name: Agent
|
|
11157
|
+
* * SQL Data Type: nvarchar(255)
|
|
11158
|
+
*/
|
|
11159
|
+
get Agent() {
|
|
11160
|
+
return this.Get('Agent');
|
|
11161
|
+
}
|
|
11162
|
+
/**
|
|
11163
|
+
* * Field Name: Model
|
|
11164
|
+
* * Display Name: Model
|
|
11165
|
+
* * SQL Data Type: nvarchar(50)
|
|
11166
|
+
*/
|
|
11167
|
+
get Model() {
|
|
11168
|
+
return this.Get('Model');
|
|
11169
|
+
}
|
|
10873
11170
|
};
|
|
10874
|
-
exports.
|
|
10875
|
-
exports.
|
|
10876
|
-
(0, global_1.RegisterClass)(core_1.BaseEntity, 'AI
|
|
10877
|
-
],
|
|
11171
|
+
exports.AIAgentModelEntity = AIAgentModelEntity;
|
|
11172
|
+
exports.AIAgentModelEntity = AIAgentModelEntity = __decorate([
|
|
11173
|
+
(0, global_1.RegisterClass)(core_1.BaseEntity, 'AI Agent Models')
|
|
11174
|
+
], AIAgentModelEntity);
|
|
10878
11175
|
/**
|
|
10879
|
-
* AI
|
|
11176
|
+
* AI Agent Note Types - strongly typed entity sub-class
|
|
10880
11177
|
* * Schema: __mj
|
|
10881
|
-
* * Base Table:
|
|
10882
|
-
* * Base View:
|
|
10883
|
-
* * @description Catalog of all AI Models configured in the system
|
|
11178
|
+
* * Base Table: AIAgentNoteType
|
|
11179
|
+
* * Base View: vwAIAgentNoteTypes
|
|
10884
11180
|
* * Primary Key: ID
|
|
10885
11181
|
* @extends {BaseEntity}
|
|
10886
11182
|
* @class
|
|
10887
11183
|
* @public
|
|
10888
11184
|
*/
|
|
10889
|
-
let
|
|
11185
|
+
let AIAgentNoteTypeEntity = class AIAgentNoteTypeEntity extends core_1.BaseEntity {
|
|
10890
11186
|
/**
|
|
10891
|
-
* Loads the AI
|
|
10892
|
-
* @param ID: string - primary key value to load the AI
|
|
11187
|
+
* Loads the AI Agent Note Types record from the database
|
|
11188
|
+
* @param ID: string - primary key value to load the AI Agent Note Types record.
|
|
10893
11189
|
* @param EntityRelationshipsToLoad - (optional) the relationships to load
|
|
10894
11190
|
* @returns {Promise<boolean>} - true if successful, false otherwise
|
|
10895
11191
|
* @public
|
|
10896
11192
|
* @async
|
|
10897
|
-
* @memberof
|
|
11193
|
+
* @memberof AIAgentNoteTypeEntity
|
|
10898
11194
|
* @method
|
|
10899
11195
|
* @override
|
|
10900
11196
|
*/
|
|
@@ -10915,106 +11211,24 @@ let AIModelEntity = class AIModelEntity extends core_1.BaseEntity {
|
|
|
10915
11211
|
/**
|
|
10916
11212
|
* * Field Name: Name
|
|
10917
11213
|
* * Display Name: Name
|
|
10918
|
-
* * SQL Data Type: nvarchar(
|
|
11214
|
+
* * SQL Data Type: nvarchar(255)
|
|
10919
11215
|
*/
|
|
10920
11216
|
get Name() {
|
|
10921
11217
|
return this.Get('Name');
|
|
10922
11218
|
}
|
|
10923
|
-
set Name(value) {
|
|
10924
|
-
this.Set('Name', value);
|
|
10925
|
-
}
|
|
10926
|
-
/**
|
|
10927
|
-
* * Field Name: Description
|
|
10928
|
-
* * Display Name: Description
|
|
10929
|
-
* * SQL Data Type: nvarchar(MAX)
|
|
10930
|
-
*/
|
|
10931
|
-
get Description() {
|
|
10932
|
-
return this.Get('Description');
|
|
10933
|
-
}
|
|
10934
|
-
set Description(value) {
|
|
10935
|
-
this.Set('Description', value);
|
|
10936
|
-
}
|
|
10937
|
-
/**
|
|
10938
|
-
* * Field Name: Vendor
|
|
10939
|
-
* * Display Name: Vendor
|
|
10940
|
-
* * SQL Data Type: nvarchar(50)
|
|
10941
|
-
*/
|
|
10942
|
-
get Vendor() {
|
|
10943
|
-
return this.Get('Vendor');
|
|
10944
|
-
}
|
|
10945
|
-
set Vendor(value) {
|
|
10946
|
-
this.Set('Vendor', value);
|
|
10947
|
-
}
|
|
10948
|
-
/**
|
|
10949
|
-
* * Field Name: AIModelTypeID
|
|
10950
|
-
* * Display Name: AI Model Type ID
|
|
10951
|
-
* * SQL Data Type: uniqueidentifier
|
|
10952
|
-
* * Related Entity/Foreign Key: AI Model Types (vwAIModelTypes.ID)
|
|
10953
|
-
*/
|
|
10954
|
-
get AIModelTypeID() {
|
|
10955
|
-
return this.Get('AIModelTypeID');
|
|
10956
|
-
}
|
|
10957
|
-
set AIModelTypeID(value) {
|
|
10958
|
-
this.Set('AIModelTypeID', value);
|
|
10959
|
-
}
|
|
10960
|
-
/**
|
|
10961
|
-
* * Field Name: PowerRank
|
|
10962
|
-
* * Display Name: Power Rank
|
|
10963
|
-
* * SQL Data Type: int
|
|
10964
|
-
* * Default Value: 0
|
|
10965
|
-
* * Description: Optional column that ranks the power of the AI model. Default is 0 and should be non-negative.
|
|
10966
|
-
*/
|
|
10967
|
-
get PowerRank() {
|
|
10968
|
-
return this.Get('PowerRank');
|
|
10969
|
-
}
|
|
10970
|
-
set PowerRank(value) {
|
|
10971
|
-
this.Set('PowerRank', value);
|
|
10972
|
-
}
|
|
10973
|
-
/**
|
|
10974
|
-
* * Field Name: IsActive
|
|
10975
|
-
* * Display Name: Is Active
|
|
10976
|
-
* * SQL Data Type: bit
|
|
10977
|
-
* * Default Value: 1
|
|
10978
|
-
*/
|
|
10979
|
-
get IsActive() {
|
|
10980
|
-
return this.Get('IsActive');
|
|
10981
|
-
}
|
|
10982
|
-
set IsActive(value) {
|
|
10983
|
-
this.Set('IsActive', value);
|
|
10984
|
-
}
|
|
10985
|
-
/**
|
|
10986
|
-
* * Field Name: DriverClass
|
|
10987
|
-
* * Display Name: Driver Class
|
|
10988
|
-
* * SQL Data Type: nvarchar(100)
|
|
10989
|
-
*/
|
|
10990
|
-
get DriverClass() {
|
|
10991
|
-
return this.Get('DriverClass');
|
|
10992
|
-
}
|
|
10993
|
-
set DriverClass(value) {
|
|
10994
|
-
this.Set('DriverClass', value);
|
|
10995
|
-
}
|
|
10996
|
-
/**
|
|
10997
|
-
* * Field Name: DriverImportPath
|
|
10998
|
-
* * Display Name: Driver Import Path
|
|
10999
|
-
* * SQL Data Type: nvarchar(255)
|
|
11000
|
-
*/
|
|
11001
|
-
get DriverImportPath() {
|
|
11002
|
-
return this.Get('DriverImportPath');
|
|
11003
|
-
}
|
|
11004
|
-
set DriverImportPath(value) {
|
|
11005
|
-
this.Set('DriverImportPath', value);
|
|
11006
|
-
}
|
|
11219
|
+
set Name(value) {
|
|
11220
|
+
this.Set('Name', value);
|
|
11221
|
+
}
|
|
11007
11222
|
/**
|
|
11008
|
-
* * Field Name:
|
|
11009
|
-
* * Display Name:
|
|
11010
|
-
* * SQL Data Type: nvarchar(
|
|
11011
|
-
* * Description: The name of the model to use with API calls which might differ from the Name, if APIName is not provided, Name will be used for API calls
|
|
11223
|
+
* * Field Name: Description
|
|
11224
|
+
* * Display Name: Description
|
|
11225
|
+
* * SQL Data Type: nvarchar(MAX)
|
|
11012
11226
|
*/
|
|
11013
|
-
get
|
|
11014
|
-
return this.Get('
|
|
11227
|
+
get Description() {
|
|
11228
|
+
return this.Get('Description');
|
|
11015
11229
|
}
|
|
11016
|
-
set
|
|
11017
|
-
this.Set('
|
|
11230
|
+
set Description(value) {
|
|
11231
|
+
this.Set('Description', value);
|
|
11018
11232
|
}
|
|
11019
11233
|
/**
|
|
11020
11234
|
* * Field Name: __mj_CreatedAt
|
|
@@ -11034,89 +11248,30 @@ let AIModelEntity = class AIModelEntity extends core_1.BaseEntity {
|
|
|
11034
11248
|
get __mj_UpdatedAt() {
|
|
11035
11249
|
return this.Get('__mj_UpdatedAt');
|
|
11036
11250
|
}
|
|
11037
|
-
/**
|
|
11038
|
-
* * Field Name: SpeedRank
|
|
11039
|
-
* * Display Name: Speed Rank
|
|
11040
|
-
* * SQL Data Type: int
|
|
11041
|
-
* * Default Value: 0
|
|
11042
|
-
* * Description: Optional column that ranks the speed of the AI model. Default is 0 and should be non-negative.
|
|
11043
|
-
*/
|
|
11044
|
-
get SpeedRank() {
|
|
11045
|
-
return this.Get('SpeedRank');
|
|
11046
|
-
}
|
|
11047
|
-
set SpeedRank(value) {
|
|
11048
|
-
this.Set('SpeedRank', value);
|
|
11049
|
-
}
|
|
11050
|
-
/**
|
|
11051
|
-
* * Field Name: CostRank
|
|
11052
|
-
* * Display Name: Cost Rank
|
|
11053
|
-
* * SQL Data Type: int
|
|
11054
|
-
* * Default Value: 0
|
|
11055
|
-
* * Description: Optional column that ranks the cost of the AI model. Default is 0 and should be non-negative.
|
|
11056
|
-
*/
|
|
11057
|
-
get CostRank() {
|
|
11058
|
-
return this.Get('CostRank');
|
|
11059
|
-
}
|
|
11060
|
-
set CostRank(value) {
|
|
11061
|
-
this.Set('CostRank', value);
|
|
11062
|
-
}
|
|
11063
|
-
/**
|
|
11064
|
-
* * Field Name: ModelSelectionInsights
|
|
11065
|
-
* * Display Name: Model Selection Insights
|
|
11066
|
-
* * SQL Data Type: nvarchar(MAX)
|
|
11067
|
-
* * Description: This column stores unstructured text notes that provide insights into what the model is particularly good at and areas where it may not perform as well. These notes can be used by a human or an AI to determine if the model is a good fit for various purposes.
|
|
11068
|
-
*/
|
|
11069
|
-
get ModelSelectionInsights() {
|
|
11070
|
-
return this.Get('ModelSelectionInsights');
|
|
11071
|
-
}
|
|
11072
|
-
set ModelSelectionInsights(value) {
|
|
11073
|
-
this.Set('ModelSelectionInsights', value);
|
|
11074
|
-
}
|
|
11075
|
-
/**
|
|
11076
|
-
* * Field Name: InputTokenLimit
|
|
11077
|
-
* * Display Name: Input Token Limit
|
|
11078
|
-
* * SQL Data Type: int
|
|
11079
|
-
* * Description: Stores the maximum number of tokens that fit in the context window for the model.
|
|
11080
|
-
*/
|
|
11081
|
-
get InputTokenLimit() {
|
|
11082
|
-
return this.Get('InputTokenLimit');
|
|
11083
|
-
}
|
|
11084
|
-
set InputTokenLimit(value) {
|
|
11085
|
-
this.Set('InputTokenLimit', value);
|
|
11086
|
-
}
|
|
11087
|
-
/**
|
|
11088
|
-
* * Field Name: AIModelType
|
|
11089
|
-
* * Display Name: AIModel Type
|
|
11090
|
-
* * SQL Data Type: nvarchar(50)
|
|
11091
|
-
*/
|
|
11092
|
-
get AIModelType() {
|
|
11093
|
-
return this.Get('AIModelType');
|
|
11094
|
-
}
|
|
11095
11251
|
};
|
|
11096
|
-
exports.
|
|
11097
|
-
exports.
|
|
11098
|
-
(0, global_1.RegisterClass)(core_1.BaseEntity, 'AI
|
|
11099
|
-
],
|
|
11252
|
+
exports.AIAgentNoteTypeEntity = AIAgentNoteTypeEntity;
|
|
11253
|
+
exports.AIAgentNoteTypeEntity = AIAgentNoteTypeEntity = __decorate([
|
|
11254
|
+
(0, global_1.RegisterClass)(core_1.BaseEntity, 'AI Agent Note Types')
|
|
11255
|
+
], AIAgentNoteTypeEntity);
|
|
11100
11256
|
/**
|
|
11101
|
-
* AI
|
|
11257
|
+
* AI Agent Notes - strongly typed entity sub-class
|
|
11102
11258
|
* * Schema: __mj
|
|
11103
|
-
* * Base Table:
|
|
11104
|
-
* * Base View:
|
|
11105
|
-
* * @description Categories for organizing AI prompts in a hierarchical structure.
|
|
11259
|
+
* * Base Table: AIAgentNote
|
|
11260
|
+
* * Base View: vwAIAgentNotes
|
|
11106
11261
|
* * Primary Key: ID
|
|
11107
11262
|
* @extends {BaseEntity}
|
|
11108
11263
|
* @class
|
|
11109
11264
|
* @public
|
|
11110
11265
|
*/
|
|
11111
|
-
let
|
|
11266
|
+
let AIAgentNoteEntity = class AIAgentNoteEntity extends core_1.BaseEntity {
|
|
11112
11267
|
/**
|
|
11113
|
-
* Loads the AI
|
|
11114
|
-
* @param ID: string - primary key value to load the AI
|
|
11268
|
+
* Loads the AI Agent Notes record from the database
|
|
11269
|
+
* @param ID: string - primary key value to load the AI Agent Notes record.
|
|
11115
11270
|
* @param EntityRelationshipsToLoad - (optional) the relationships to load
|
|
11116
11271
|
* @returns {Promise<boolean>} - true if successful, false otherwise
|
|
11117
11272
|
* @public
|
|
11118
11273
|
* @async
|
|
11119
|
-
* @memberof
|
|
11274
|
+
* @memberof AIAgentNoteEntity
|
|
11120
11275
|
* @method
|
|
11121
11276
|
* @override
|
|
11122
11277
|
*/
|
|
@@ -11135,39 +11290,39 @@ let AIPromptCategoryEntity = class AIPromptCategoryEntity extends core_1.BaseEnt
|
|
|
11135
11290
|
return this.Get('ID');
|
|
11136
11291
|
}
|
|
11137
11292
|
/**
|
|
11138
|
-
* * Field Name:
|
|
11139
|
-
* * Display Name:
|
|
11140
|
-
* * SQL Data Type:
|
|
11293
|
+
* * Field Name: AgentID
|
|
11294
|
+
* * Display Name: Agent ID
|
|
11295
|
+
* * SQL Data Type: uniqueidentifier
|
|
11296
|
+
* * Related Entity/Foreign Key: AI Agents (vwAIAgents.ID)
|
|
11141
11297
|
*/
|
|
11142
|
-
get
|
|
11143
|
-
return this.Get('
|
|
11298
|
+
get AgentID() {
|
|
11299
|
+
return this.Get('AgentID');
|
|
11144
11300
|
}
|
|
11145
|
-
set
|
|
11146
|
-
this.Set('
|
|
11301
|
+
set AgentID(value) {
|
|
11302
|
+
this.Set('AgentID', value);
|
|
11147
11303
|
}
|
|
11148
11304
|
/**
|
|
11149
|
-
* * Field Name:
|
|
11150
|
-
* * Display Name:
|
|
11305
|
+
* * Field Name: AgentNoteTypeID
|
|
11306
|
+
* * Display Name: Agent Note Type ID
|
|
11151
11307
|
* * SQL Data Type: uniqueidentifier
|
|
11152
|
-
* * Related Entity/Foreign Key: AI
|
|
11153
|
-
* * Description: Parent category ID for hierarchical organization.
|
|
11308
|
+
* * Related Entity/Foreign Key: AI Agent Note Types (vwAIAgentNoteTypes.ID)
|
|
11154
11309
|
*/
|
|
11155
|
-
get
|
|
11156
|
-
return this.Get('
|
|
11310
|
+
get AgentNoteTypeID() {
|
|
11311
|
+
return this.Get('AgentNoteTypeID');
|
|
11157
11312
|
}
|
|
11158
|
-
set
|
|
11159
|
-
this.Set('
|
|
11313
|
+
set AgentNoteTypeID(value) {
|
|
11314
|
+
this.Set('AgentNoteTypeID', value);
|
|
11160
11315
|
}
|
|
11161
11316
|
/**
|
|
11162
|
-
* * Field Name:
|
|
11163
|
-
* * Display Name:
|
|
11317
|
+
* * Field Name: Note
|
|
11318
|
+
* * Display Name: Note
|
|
11164
11319
|
* * SQL Data Type: nvarchar(MAX)
|
|
11165
11320
|
*/
|
|
11166
|
-
get
|
|
11167
|
-
return this.Get('
|
|
11321
|
+
get Note() {
|
|
11322
|
+
return this.Get('Note');
|
|
11168
11323
|
}
|
|
11169
|
-
set
|
|
11170
|
-
this.Set('
|
|
11324
|
+
set Note(value) {
|
|
11325
|
+
this.Set('Note', value);
|
|
11171
11326
|
}
|
|
11172
11327
|
/**
|
|
11173
11328
|
* * Field Name: __mj_CreatedAt
|
|
@@ -11188,76 +11343,217 @@ let AIPromptCategoryEntity = class AIPromptCategoryEntity extends core_1.BaseEnt
|
|
|
11188
11343
|
return this.Get('__mj_UpdatedAt');
|
|
11189
11344
|
}
|
|
11190
11345
|
/**
|
|
11191
|
-
* * Field Name:
|
|
11192
|
-
* * Display Name:
|
|
11346
|
+
* * Field Name: Type
|
|
11347
|
+
* * Display Name: Type
|
|
11348
|
+
* * SQL Data Type: nvarchar(20)
|
|
11349
|
+
* * Value List Type: List
|
|
11350
|
+
* * Possible Values
|
|
11351
|
+
* * User
|
|
11352
|
+
* * Global
|
|
11353
|
+
* * Description: Indicates the type of note, either User-specific or Global.
|
|
11354
|
+
*/
|
|
11355
|
+
get Type() {
|
|
11356
|
+
return this.Get('Type');
|
|
11357
|
+
}
|
|
11358
|
+
set Type(value) {
|
|
11359
|
+
this.Set('Type', value);
|
|
11360
|
+
}
|
|
11361
|
+
/**
|
|
11362
|
+
* * Field Name: UserID
|
|
11363
|
+
* * Display Name: User ID
|
|
11364
|
+
* * SQL Data Type: uniqueidentifier
|
|
11365
|
+
* * Related Entity/Foreign Key: Users (vwUsers.ID)
|
|
11366
|
+
* * Description: Foreign key referencing the ID column in the User table, indicating the user associated with the note. Used when Type=User
|
|
11367
|
+
*/
|
|
11368
|
+
get UserID() {
|
|
11369
|
+
return this.Get('UserID');
|
|
11370
|
+
}
|
|
11371
|
+
set UserID(value) {
|
|
11372
|
+
this.Set('UserID', value);
|
|
11373
|
+
}
|
|
11374
|
+
/**
|
|
11375
|
+
* * Field Name: Agent
|
|
11376
|
+
* * Display Name: Agent
|
|
11193
11377
|
* * SQL Data Type: nvarchar(255)
|
|
11194
11378
|
*/
|
|
11195
|
-
get
|
|
11196
|
-
return this.Get('
|
|
11379
|
+
get Agent() {
|
|
11380
|
+
return this.Get('Agent');
|
|
11381
|
+
}
|
|
11382
|
+
/**
|
|
11383
|
+
* * Field Name: AgentNoteType
|
|
11384
|
+
* * Display Name: Agent Note Type
|
|
11385
|
+
* * SQL Data Type: nvarchar(255)
|
|
11386
|
+
*/
|
|
11387
|
+
get AgentNoteType() {
|
|
11388
|
+
return this.Get('AgentNoteType');
|
|
11389
|
+
}
|
|
11390
|
+
/**
|
|
11391
|
+
* * Field Name: User
|
|
11392
|
+
* * Display Name: User
|
|
11393
|
+
* * SQL Data Type: nvarchar(100)
|
|
11394
|
+
* * Default Value: null
|
|
11395
|
+
*/
|
|
11396
|
+
get User() {
|
|
11397
|
+
return this.Get('User');
|
|
11197
11398
|
}
|
|
11198
11399
|
};
|
|
11199
|
-
exports.
|
|
11200
|
-
exports.
|
|
11201
|
-
(0, global_1.RegisterClass)(core_1.BaseEntity, 'AI
|
|
11202
|
-
],
|
|
11400
|
+
exports.AIAgentNoteEntity = AIAgentNoteEntity;
|
|
11401
|
+
exports.AIAgentNoteEntity = AIAgentNoteEntity = __decorate([
|
|
11402
|
+
(0, global_1.RegisterClass)(core_1.BaseEntity, 'AI Agent Notes')
|
|
11403
|
+
], AIAgentNoteEntity);
|
|
11203
11404
|
/**
|
|
11204
|
-
* AI
|
|
11405
|
+
* AI Agent Requests - strongly typed entity sub-class
|
|
11205
11406
|
* * Schema: __mj
|
|
11206
|
-
* * Base Table:
|
|
11207
|
-
* * Base View:
|
|
11208
|
-
* * @description Types of AI prompts such as Chat, Text-to-Image, Text-to-Video, etc.
|
|
11407
|
+
* * Base Table: AIAgentRequest
|
|
11408
|
+
* * Base View: vwAIAgentRequests
|
|
11209
11409
|
* * Primary Key: ID
|
|
11210
11410
|
* @extends {BaseEntity}
|
|
11211
11411
|
* @class
|
|
11212
11412
|
* @public
|
|
11213
11413
|
*/
|
|
11214
|
-
let
|
|
11414
|
+
let AIAgentRequestEntity = class AIAgentRequestEntity extends core_1.BaseEntity {
|
|
11215
11415
|
/**
|
|
11216
|
-
* Loads the AI
|
|
11217
|
-
* @param ID: string - primary key value to load the AI
|
|
11416
|
+
* Loads the AI Agent Requests record from the database
|
|
11417
|
+
* @param ID: string - primary key value to load the AI Agent Requests record.
|
|
11218
11418
|
* @param EntityRelationshipsToLoad - (optional) the relationships to load
|
|
11219
11419
|
* @returns {Promise<boolean>} - true if successful, false otherwise
|
|
11220
11420
|
* @public
|
|
11221
11421
|
* @async
|
|
11222
|
-
* @memberof
|
|
11422
|
+
* @memberof AIAgentRequestEntity
|
|
11223
11423
|
* @method
|
|
11224
11424
|
* @override
|
|
11225
11425
|
*/
|
|
11226
|
-
async Load(ID, EntityRelationshipsToLoad) {
|
|
11227
|
-
const compositeKey = new core_1.CompositeKey();
|
|
11228
|
-
compositeKey.KeyValuePairs.push({ FieldName: 'ID', Value: ID });
|
|
11229
|
-
return await super.InnerLoad(compositeKey, EntityRelationshipsToLoad);
|
|
11426
|
+
async Load(ID, EntityRelationshipsToLoad) {
|
|
11427
|
+
const compositeKey = new core_1.CompositeKey();
|
|
11428
|
+
compositeKey.KeyValuePairs.push({ FieldName: 'ID', Value: ID });
|
|
11429
|
+
return await super.InnerLoad(compositeKey, EntityRelationshipsToLoad);
|
|
11430
|
+
}
|
|
11431
|
+
/**
|
|
11432
|
+
* * Field Name: ID
|
|
11433
|
+
* * Display Name: ID
|
|
11434
|
+
* * SQL Data Type: uniqueidentifier
|
|
11435
|
+
* * Default Value: newsequentialid()
|
|
11436
|
+
* * Description: Primary key for the AIAgentRequest table, uniquely identifies each record.
|
|
11437
|
+
*/
|
|
11438
|
+
get ID() {
|
|
11439
|
+
return this.Get('ID');
|
|
11440
|
+
}
|
|
11441
|
+
/**
|
|
11442
|
+
* * Field Name: AgentID
|
|
11443
|
+
* * Display Name: Agent ID
|
|
11444
|
+
* * SQL Data Type: uniqueidentifier
|
|
11445
|
+
* * Related Entity/Foreign Key: AI Agents (vwAIAgents.ID)
|
|
11446
|
+
* * Description: Foreign key referencing the ID column in the AIAgent table.
|
|
11447
|
+
*/
|
|
11448
|
+
get AgentID() {
|
|
11449
|
+
return this.Get('AgentID');
|
|
11450
|
+
}
|
|
11451
|
+
set AgentID(value) {
|
|
11452
|
+
this.Set('AgentID', value);
|
|
11453
|
+
}
|
|
11454
|
+
/**
|
|
11455
|
+
* * Field Name: RequestedAt
|
|
11456
|
+
* * Display Name: Requested At
|
|
11457
|
+
* * SQL Data Type: datetime
|
|
11458
|
+
* * Description: Timestamp when the request was made by the agent.
|
|
11459
|
+
*/
|
|
11460
|
+
get RequestedAt() {
|
|
11461
|
+
return this.Get('RequestedAt');
|
|
11462
|
+
}
|
|
11463
|
+
set RequestedAt(value) {
|
|
11464
|
+
this.Set('RequestedAt', value);
|
|
11465
|
+
}
|
|
11466
|
+
/**
|
|
11467
|
+
* * Field Name: RequestForUserID
|
|
11468
|
+
* * Display Name: Request For User ID
|
|
11469
|
+
* * SQL Data Type: uniqueidentifier
|
|
11470
|
+
* * Related Entity/Foreign Key: Users (vwUsers.ID)
|
|
11471
|
+
* * Description: Optional, a user that the AI specifically is directing the request to, if null intended for general system owner.
|
|
11472
|
+
*/
|
|
11473
|
+
get RequestForUserID() {
|
|
11474
|
+
return this.Get('RequestForUserID');
|
|
11475
|
+
}
|
|
11476
|
+
set RequestForUserID(value) {
|
|
11477
|
+
this.Set('RequestForUserID', value);
|
|
11478
|
+
}
|
|
11479
|
+
/**
|
|
11480
|
+
* * Field Name: Status
|
|
11481
|
+
* * Display Name: Status
|
|
11482
|
+
* * SQL Data Type: nvarchar(20)
|
|
11483
|
+
* * Value List Type: List
|
|
11484
|
+
* * Possible Values
|
|
11485
|
+
* * Requested
|
|
11486
|
+
* * Approved
|
|
11487
|
+
* * Rejected
|
|
11488
|
+
* * Canceled
|
|
11489
|
+
* * Description: Current status of the request (Requested, Approved, Rejected, Canceled).
|
|
11490
|
+
*/
|
|
11491
|
+
get Status() {
|
|
11492
|
+
return this.Get('Status');
|
|
11493
|
+
}
|
|
11494
|
+
set Status(value) {
|
|
11495
|
+
this.Set('Status', value);
|
|
11496
|
+
}
|
|
11497
|
+
/**
|
|
11498
|
+
* * Field Name: Request
|
|
11499
|
+
* * Display Name: Request
|
|
11500
|
+
* * SQL Data Type: nvarchar(MAX)
|
|
11501
|
+
* * Description: Details of what the AI Agent is requesting.
|
|
11502
|
+
*/
|
|
11503
|
+
get Request() {
|
|
11504
|
+
return this.Get('Request');
|
|
11505
|
+
}
|
|
11506
|
+
set Request(value) {
|
|
11507
|
+
this.Set('Request', value);
|
|
11230
11508
|
}
|
|
11231
11509
|
/**
|
|
11232
|
-
* * Field Name:
|
|
11233
|
-
* * Display Name:
|
|
11510
|
+
* * Field Name: Response
|
|
11511
|
+
* * Display Name: Response
|
|
11512
|
+
* * SQL Data Type: nvarchar(MAX)
|
|
11513
|
+
* * Description: Response provided by the human to the agent request.
|
|
11514
|
+
*/
|
|
11515
|
+
get Response() {
|
|
11516
|
+
return this.Get('Response');
|
|
11517
|
+
}
|
|
11518
|
+
set Response(value) {
|
|
11519
|
+
this.Set('Response', value);
|
|
11520
|
+
}
|
|
11521
|
+
/**
|
|
11522
|
+
* * Field Name: ResponseByUserID
|
|
11523
|
+
* * Display Name: Response By User ID
|
|
11234
11524
|
* * SQL Data Type: uniqueidentifier
|
|
11235
|
-
* *
|
|
11525
|
+
* * Related Entity/Foreign Key: Users (vwUsers.ID)
|
|
11526
|
+
* * Description: Populated when a user responds indicating which user responded to the request.
|
|
11236
11527
|
*/
|
|
11237
|
-
get
|
|
11238
|
-
return this.Get('
|
|
11528
|
+
get ResponseByUserID() {
|
|
11529
|
+
return this.Get('ResponseByUserID');
|
|
11530
|
+
}
|
|
11531
|
+
set ResponseByUserID(value) {
|
|
11532
|
+
this.Set('ResponseByUserID', value);
|
|
11239
11533
|
}
|
|
11240
11534
|
/**
|
|
11241
|
-
* * Field Name:
|
|
11242
|
-
* * Display Name:
|
|
11243
|
-
* * SQL Data Type:
|
|
11535
|
+
* * Field Name: RespondedAt
|
|
11536
|
+
* * Display Name: Responded At
|
|
11537
|
+
* * SQL Data Type: datetime
|
|
11538
|
+
* * Description: Timestamp when the response was provided by the human.
|
|
11244
11539
|
*/
|
|
11245
|
-
get
|
|
11246
|
-
return this.Get('
|
|
11540
|
+
get RespondedAt() {
|
|
11541
|
+
return this.Get('RespondedAt');
|
|
11247
11542
|
}
|
|
11248
|
-
set
|
|
11249
|
-
this.Set('
|
|
11543
|
+
set RespondedAt(value) {
|
|
11544
|
+
this.Set('RespondedAt', value);
|
|
11250
11545
|
}
|
|
11251
11546
|
/**
|
|
11252
|
-
* * Field Name:
|
|
11253
|
-
* * Display Name:
|
|
11547
|
+
* * Field Name: Comments
|
|
11548
|
+
* * Display Name: Comments
|
|
11254
11549
|
* * SQL Data Type: nvarchar(MAX)
|
|
11550
|
+
* * Description: Additional comments about the request. Not shared with the agent, purely record keeping.
|
|
11255
11551
|
*/
|
|
11256
|
-
get
|
|
11257
|
-
return this.Get('
|
|
11552
|
+
get Comments() {
|
|
11553
|
+
return this.Get('Comments');
|
|
11258
11554
|
}
|
|
11259
|
-
set
|
|
11260
|
-
this.Set('
|
|
11555
|
+
set Comments(value) {
|
|
11556
|
+
this.Set('Comments', value);
|
|
11261
11557
|
}
|
|
11262
11558
|
/**
|
|
11263
11559
|
* * Field Name: __mj_CreatedAt
|
|
@@ -11277,31 +11573,57 @@ let AIPromptTypeEntity = class AIPromptTypeEntity extends core_1.BaseEntity {
|
|
|
11277
11573
|
get __mj_UpdatedAt() {
|
|
11278
11574
|
return this.Get('__mj_UpdatedAt');
|
|
11279
11575
|
}
|
|
11576
|
+
/**
|
|
11577
|
+
* * Field Name: Agent
|
|
11578
|
+
* * Display Name: Agent
|
|
11579
|
+
* * SQL Data Type: nvarchar(255)
|
|
11580
|
+
*/
|
|
11581
|
+
get Agent() {
|
|
11582
|
+
return this.Get('Agent');
|
|
11583
|
+
}
|
|
11584
|
+
/**
|
|
11585
|
+
* * Field Name: RequestForUser
|
|
11586
|
+
* * Display Name: Request For User
|
|
11587
|
+
* * SQL Data Type: nvarchar(100)
|
|
11588
|
+
* * Default Value: null
|
|
11589
|
+
*/
|
|
11590
|
+
get RequestForUser() {
|
|
11591
|
+
return this.Get('RequestForUser');
|
|
11592
|
+
}
|
|
11593
|
+
/**
|
|
11594
|
+
* * Field Name: ResponseByUser
|
|
11595
|
+
* * Display Name: Response By User
|
|
11596
|
+
* * SQL Data Type: nvarchar(100)
|
|
11597
|
+
* * Default Value: null
|
|
11598
|
+
*/
|
|
11599
|
+
get ResponseByUser() {
|
|
11600
|
+
return this.Get('ResponseByUser');
|
|
11601
|
+
}
|
|
11280
11602
|
};
|
|
11281
|
-
exports.
|
|
11282
|
-
exports.
|
|
11283
|
-
(0, global_1.RegisterClass)(core_1.BaseEntity, 'AI
|
|
11284
|
-
],
|
|
11603
|
+
exports.AIAgentRequestEntity = AIAgentRequestEntity;
|
|
11604
|
+
exports.AIAgentRequestEntity = AIAgentRequestEntity = __decorate([
|
|
11605
|
+
(0, global_1.RegisterClass)(core_1.BaseEntity, 'AI Agent Requests')
|
|
11606
|
+
], AIAgentRequestEntity);
|
|
11285
11607
|
/**
|
|
11286
|
-
* AI
|
|
11608
|
+
* AI Agents - strongly typed entity sub-class
|
|
11287
11609
|
* * Schema: __mj
|
|
11288
|
-
* * Base Table:
|
|
11289
|
-
* * Base View:
|
|
11290
|
-
* * @description
|
|
11610
|
+
* * Base Table: AIAgent
|
|
11611
|
+
* * Base View: vwAIAgents
|
|
11612
|
+
* * @description Table to store information about AI agents.
|
|
11291
11613
|
* * Primary Key: ID
|
|
11292
11614
|
* @extends {BaseEntity}
|
|
11293
11615
|
* @class
|
|
11294
11616
|
* @public
|
|
11295
11617
|
*/
|
|
11296
|
-
let
|
|
11618
|
+
let AIAgentEntity = class AIAgentEntity extends core_1.BaseEntity {
|
|
11297
11619
|
/**
|
|
11298
|
-
* Loads the AI
|
|
11299
|
-
* @param ID: string - primary key value to load the AI
|
|
11620
|
+
* Loads the AI Agents record from the database
|
|
11621
|
+
* @param ID: string - primary key value to load the AI Agents record.
|
|
11300
11622
|
* @param EntityRelationshipsToLoad - (optional) the relationships to load
|
|
11301
11623
|
* @returns {Promise<boolean>} - true if successful, false otherwise
|
|
11302
11624
|
* @public
|
|
11303
11625
|
* @async
|
|
11304
|
-
* @memberof
|
|
11626
|
+
* @memberof AIAgentEntity
|
|
11305
11627
|
* @method
|
|
11306
11628
|
* @override
|
|
11307
11629
|
*/
|
|
@@ -11315,6 +11637,7 @@ let AIPromptEntity = class AIPromptEntity extends core_1.BaseEntity {
|
|
|
11315
11637
|
* * Display Name: ID
|
|
11316
11638
|
* * SQL Data Type: uniqueidentifier
|
|
11317
11639
|
* * Default Value: newsequentialid()
|
|
11640
|
+
* * Description: The unique identifier for each AI agent. Serves as the primary key.
|
|
11318
11641
|
*/
|
|
11319
11642
|
get ID() {
|
|
11320
11643
|
return this.Get('ID');
|
|
@@ -11323,6 +11646,7 @@ let AIPromptEntity = class AIPromptEntity extends core_1.BaseEntity {
|
|
|
11323
11646
|
* * Field Name: Name
|
|
11324
11647
|
* * Display Name: Name
|
|
11325
11648
|
* * SQL Data Type: nvarchar(255)
|
|
11649
|
+
* * Description: The name of the AI agent.
|
|
11326
11650
|
*/
|
|
11327
11651
|
get Name() {
|
|
11328
11652
|
return this.Get('Name');
|
|
@@ -11334,6 +11658,7 @@ let AIPromptEntity = class AIPromptEntity extends core_1.BaseEntity {
|
|
|
11334
11658
|
* * Field Name: Description
|
|
11335
11659
|
* * Display Name: Description
|
|
11336
11660
|
* * SQL Data Type: nvarchar(MAX)
|
|
11661
|
+
* * Description: A detailed description of the AI agent.
|
|
11337
11662
|
*/
|
|
11338
11663
|
get Description() {
|
|
11339
11664
|
return this.Get('Description');
|
|
@@ -11342,85 +11667,15 @@ let AIPromptEntity = class AIPromptEntity extends core_1.BaseEntity {
|
|
|
11342
11667
|
this.Set('Description', value);
|
|
11343
11668
|
}
|
|
11344
11669
|
/**
|
|
11345
|
-
* * Field Name:
|
|
11346
|
-
* * Display Name:
|
|
11347
|
-
* * SQL Data Type:
|
|
11348
|
-
* * Related Entity/Foreign Key: Templates (vwTemplates.ID)
|
|
11349
|
-
* * Description: Reference to the template used for the prompt.
|
|
11350
|
-
*/
|
|
11351
|
-
get TemplateID() {
|
|
11352
|
-
return this.Get('TemplateID');
|
|
11353
|
-
}
|
|
11354
|
-
set TemplateID(value) {
|
|
11355
|
-
this.Set('TemplateID', value);
|
|
11356
|
-
}
|
|
11357
|
-
/**
|
|
11358
|
-
* * Field Name: CategoryID
|
|
11359
|
-
* * Display Name: Category ID
|
|
11360
|
-
* * SQL Data Type: uniqueidentifier
|
|
11361
|
-
* * Related Entity/Foreign Key: AI Prompt Categories (vwAIPromptCategories.ID)
|
|
11362
|
-
* * Description: Reference to the category the prompt belongs to.
|
|
11363
|
-
*/
|
|
11364
|
-
get CategoryID() {
|
|
11365
|
-
return this.Get('CategoryID');
|
|
11366
|
-
}
|
|
11367
|
-
set CategoryID(value) {
|
|
11368
|
-
this.Set('CategoryID', value);
|
|
11369
|
-
}
|
|
11370
|
-
/**
|
|
11371
|
-
* * Field Name: TypeID
|
|
11372
|
-
* * Display Name: Type ID
|
|
11373
|
-
* * SQL Data Type: uniqueidentifier
|
|
11374
|
-
* * Related Entity/Foreign Key: AI Prompt Types (vwAIPromptTypes.ID)
|
|
11375
|
-
* * Description: Reference to the type of the prompt.
|
|
11376
|
-
*/
|
|
11377
|
-
get TypeID() {
|
|
11378
|
-
return this.Get('TypeID');
|
|
11379
|
-
}
|
|
11380
|
-
set TypeID(value) {
|
|
11381
|
-
this.Set('TypeID', value);
|
|
11382
|
-
}
|
|
11383
|
-
/**
|
|
11384
|
-
* * Field Name: Status
|
|
11385
|
-
* * Display Name: Status
|
|
11386
|
-
* * SQL Data Type: nvarchar(50)
|
|
11387
|
-
* * Value List Type: List
|
|
11388
|
-
* * Possible Values
|
|
11389
|
-
* * Pending
|
|
11390
|
-
* * Active
|
|
11391
|
-
* * Disabled
|
|
11392
|
-
*/
|
|
11393
|
-
get Status() {
|
|
11394
|
-
return this.Get('Status');
|
|
11395
|
-
}
|
|
11396
|
-
set Status(value) {
|
|
11397
|
-
this.Set('Status', value);
|
|
11398
|
-
}
|
|
11399
|
-
/**
|
|
11400
|
-
* * Field Name: CacheResults
|
|
11401
|
-
* * Display Name: Cache Results
|
|
11402
|
-
* * SQL Data Type: bit
|
|
11403
|
-
* * Default Value: 0
|
|
11404
|
-
* * Description: Indicates whether the results of the prompt should be cached.
|
|
11405
|
-
*/
|
|
11406
|
-
get CacheResults() {
|
|
11407
|
-
return this.Get('CacheResults');
|
|
11408
|
-
}
|
|
11409
|
-
set CacheResults(value) {
|
|
11410
|
-
this.Set('CacheResults', value);
|
|
11411
|
-
}
|
|
11412
|
-
/**
|
|
11413
|
-
* * Field Name: CacheExpiration
|
|
11414
|
-
* * Display Name: Cache Expiration
|
|
11415
|
-
* * SQL Data Type: decimal(10, 2)
|
|
11416
|
-
* * Default Value: 0
|
|
11417
|
-
* * Description: Number of hours the cache is valid for; can be fractional or 0 if the cache never expires.
|
|
11670
|
+
* * Field Name: LogoURL
|
|
11671
|
+
* * Display Name: Logo URL
|
|
11672
|
+
* * SQL Data Type: nvarchar(255)
|
|
11418
11673
|
*/
|
|
11419
|
-
get
|
|
11420
|
-
return this.Get('
|
|
11674
|
+
get LogoURL() {
|
|
11675
|
+
return this.Get('LogoURL');
|
|
11421
11676
|
}
|
|
11422
|
-
set
|
|
11423
|
-
this.Set('
|
|
11677
|
+
set LogoURL(value) {
|
|
11678
|
+
this.Set('LogoURL', value);
|
|
11424
11679
|
}
|
|
11425
11680
|
/**
|
|
11426
11681
|
* * Field Name: __mj_CreatedAt
|
|
@@ -11440,55 +11695,31 @@ let AIPromptEntity = class AIPromptEntity extends core_1.BaseEntity {
|
|
|
11440
11695
|
get __mj_UpdatedAt() {
|
|
11441
11696
|
return this.Get('__mj_UpdatedAt');
|
|
11442
11697
|
}
|
|
11443
|
-
/**
|
|
11444
|
-
* * Field Name: Template
|
|
11445
|
-
* * Display Name: Template
|
|
11446
|
-
* * SQL Data Type: nvarchar(255)
|
|
11447
|
-
*/
|
|
11448
|
-
get Template() {
|
|
11449
|
-
return this.Get('Template');
|
|
11450
|
-
}
|
|
11451
|
-
/**
|
|
11452
|
-
* * Field Name: Category
|
|
11453
|
-
* * Display Name: Category
|
|
11454
|
-
* * SQL Data Type: nvarchar(255)
|
|
11455
|
-
*/
|
|
11456
|
-
get Category() {
|
|
11457
|
-
return this.Get('Category');
|
|
11458
|
-
}
|
|
11459
|
-
/**
|
|
11460
|
-
* * Field Name: Type
|
|
11461
|
-
* * Display Name: Type
|
|
11462
|
-
* * SQL Data Type: nvarchar(255)
|
|
11463
|
-
*/
|
|
11464
|
-
get Type() {
|
|
11465
|
-
return this.Get('Type');
|
|
11466
|
-
}
|
|
11467
11698
|
};
|
|
11468
|
-
exports.
|
|
11469
|
-
exports.
|
|
11470
|
-
(0, global_1.RegisterClass)(core_1.BaseEntity, 'AI
|
|
11471
|
-
],
|
|
11699
|
+
exports.AIAgentEntity = AIAgentEntity;
|
|
11700
|
+
exports.AIAgentEntity = AIAgentEntity = __decorate([
|
|
11701
|
+
(0, global_1.RegisterClass)(core_1.BaseEntity, 'AI Agents')
|
|
11702
|
+
], AIAgentEntity);
|
|
11472
11703
|
/**
|
|
11473
|
-
* AI
|
|
11704
|
+
* AI Model Actions - strongly typed entity sub-class
|
|
11474
11705
|
* * Schema: __mj
|
|
11475
|
-
* * Base Table:
|
|
11476
|
-
* * Base View:
|
|
11477
|
-
* * @description
|
|
11706
|
+
* * Base Table: AIModelAction
|
|
11707
|
+
* * Base View: vwAIModelActions
|
|
11708
|
+
* * @description Tracks the actions supported by each AI Model
|
|
11478
11709
|
* * Primary Key: ID
|
|
11479
11710
|
* @extends {BaseEntity}
|
|
11480
11711
|
* @class
|
|
11481
11712
|
* @public
|
|
11482
11713
|
*/
|
|
11483
|
-
let
|
|
11714
|
+
let AIModelActionEntity = class AIModelActionEntity extends core_1.BaseEntity {
|
|
11484
11715
|
/**
|
|
11485
|
-
* Loads the AI
|
|
11486
|
-
* @param ID: string - primary key value to load the AI
|
|
11716
|
+
* Loads the AI Model Actions record from the database
|
|
11717
|
+
* @param ID: string - primary key value to load the AI Model Actions record.
|
|
11487
11718
|
* @param EntityRelationshipsToLoad - (optional) the relationships to load
|
|
11488
11719
|
* @returns {Promise<boolean>} - true if successful, false otherwise
|
|
11489
11720
|
* @public
|
|
11490
11721
|
* @async
|
|
11491
|
-
* @memberof
|
|
11722
|
+
* @memberof AIModelActionEntity
|
|
11492
11723
|
* @method
|
|
11493
11724
|
* @override
|
|
11494
11725
|
*/
|
|
@@ -11507,94 +11738,40 @@ let AIResultCacheEntity = class AIResultCacheEntity extends core_1.BaseEntity {
|
|
|
11507
11738
|
return this.Get('ID');
|
|
11508
11739
|
}
|
|
11509
11740
|
/**
|
|
11510
|
-
* * Field Name: AIPromptID
|
|
11511
|
-
* * Display Name: AIPrompt ID
|
|
11512
|
-
* * SQL Data Type: uniqueidentifier
|
|
11513
|
-
* * Related Entity/Foreign Key: AI Prompts (vwAIPrompts.ID)
|
|
11514
|
-
* * Description: Reference to the AI prompt this result corresponds to.
|
|
11515
|
-
*/
|
|
11516
|
-
get AIPromptID() {
|
|
11517
|
-
return this.Get('AIPromptID');
|
|
11518
|
-
}
|
|
11519
|
-
set AIPromptID(value) {
|
|
11520
|
-
this.Set('AIPromptID', value);
|
|
11521
|
-
}
|
|
11522
|
-
/**
|
|
11523
11741
|
* * Field Name: AIModelID
|
|
11524
|
-
* * Display Name:
|
|
11742
|
+
* * Display Name: AI Model ID
|
|
11525
11743
|
* * SQL Data Type: uniqueidentifier
|
|
11526
11744
|
* * Related Entity/Foreign Key: AI Models (vwAIModels.ID)
|
|
11527
|
-
* * Description: Reference to the AI model that generated this result.
|
|
11528
11745
|
*/
|
|
11529
11746
|
get AIModelID() {
|
|
11530
11747
|
return this.Get('AIModelID');
|
|
11531
11748
|
}
|
|
11532
|
-
set AIModelID(value) {
|
|
11533
|
-
this.Set('AIModelID', value);
|
|
11534
|
-
}
|
|
11535
|
-
/**
|
|
11536
|
-
* * Field Name: RunAt
|
|
11537
|
-
* * Display Name: Run At
|
|
11538
|
-
* * SQL Data Type: datetimeoffset
|
|
11539
|
-
* * Description: Timestamp of when this result was generated.
|
|
11540
|
-
*/
|
|
11541
|
-
get RunAt() {
|
|
11542
|
-
return this.Get('RunAt');
|
|
11543
|
-
}
|
|
11544
|
-
set RunAt(value) {
|
|
11545
|
-
this.Set('RunAt', value);
|
|
11546
|
-
}
|
|
11547
|
-
/**
|
|
11548
|
-
* * Field Name: PromptText
|
|
11549
|
-
* * Display Name: Prompt Text
|
|
11550
|
-
* * SQL Data Type: nvarchar(MAX)
|
|
11551
|
-
* * Description: The prompt text used to generate this result.
|
|
11552
|
-
*/
|
|
11553
|
-
get PromptText() {
|
|
11554
|
-
return this.Get('PromptText');
|
|
11555
|
-
}
|
|
11556
|
-
set PromptText(value) {
|
|
11557
|
-
this.Set('PromptText', value);
|
|
11558
|
-
}
|
|
11559
|
-
/**
|
|
11560
|
-
* * Field Name: ResultText
|
|
11561
|
-
* * Display Name: Result Text
|
|
11562
|
-
* * SQL Data Type: nvarchar(MAX)
|
|
11563
|
-
* * Description: The text of the result generated by the AI model.
|
|
11564
|
-
*/
|
|
11565
|
-
get ResultText() {
|
|
11566
|
-
return this.Get('ResultText');
|
|
11567
|
-
}
|
|
11568
|
-
set ResultText(value) {
|
|
11569
|
-
this.Set('ResultText', value);
|
|
11749
|
+
set AIModelID(value) {
|
|
11750
|
+
this.Set('AIModelID', value);
|
|
11570
11751
|
}
|
|
11571
11752
|
/**
|
|
11572
|
-
* * Field Name:
|
|
11573
|
-
* * Display Name:
|
|
11574
|
-
* * SQL Data Type:
|
|
11575
|
-
* *
|
|
11576
|
-
* * Possible Values
|
|
11577
|
-
* * Active
|
|
11578
|
-
* * Expired
|
|
11579
|
-
* * Description: The status of this result, indicating whether it is currently active or expired.
|
|
11753
|
+
* * Field Name: AIActionID
|
|
11754
|
+
* * Display Name: AI Action ID
|
|
11755
|
+
* * SQL Data Type: uniqueidentifier
|
|
11756
|
+
* * Related Entity/Foreign Key: AI Actions (vwAIActions.ID)
|
|
11580
11757
|
*/
|
|
11581
|
-
get
|
|
11582
|
-
return this.Get('
|
|
11758
|
+
get AIActionID() {
|
|
11759
|
+
return this.Get('AIActionID');
|
|
11583
11760
|
}
|
|
11584
|
-
set
|
|
11585
|
-
this.Set('
|
|
11761
|
+
set AIActionID(value) {
|
|
11762
|
+
this.Set('AIActionID', value);
|
|
11586
11763
|
}
|
|
11587
11764
|
/**
|
|
11588
|
-
* * Field Name:
|
|
11589
|
-
* * Display Name:
|
|
11590
|
-
* * SQL Data Type:
|
|
11591
|
-
* *
|
|
11765
|
+
* * Field Name: IsActive
|
|
11766
|
+
* * Display Name: Is Active
|
|
11767
|
+
* * SQL Data Type: bit
|
|
11768
|
+
* * Default Value: 1
|
|
11592
11769
|
*/
|
|
11593
|
-
get
|
|
11594
|
-
return this.Get('
|
|
11770
|
+
get IsActive() {
|
|
11771
|
+
return this.Get('IsActive');
|
|
11595
11772
|
}
|
|
11596
|
-
set
|
|
11597
|
-
this.Set('
|
|
11773
|
+
set IsActive(value) {
|
|
11774
|
+
this.Set('IsActive', value);
|
|
11598
11775
|
}
|
|
11599
11776
|
/**
|
|
11600
11777
|
* * Field Name: __mj_CreatedAt
|
|
@@ -11615,14 +11792,6 @@ let AIResultCacheEntity = class AIResultCacheEntity extends core_1.BaseEntity {
|
|
|
11615
11792
|
return this.Get('__mj_UpdatedAt');
|
|
11616
11793
|
}
|
|
11617
11794
|
/**
|
|
11618
|
-
* * Field Name: AIPrompt
|
|
11619
|
-
* * Display Name: AIPrompt
|
|
11620
|
-
* * SQL Data Type: nvarchar(255)
|
|
11621
|
-
*/
|
|
11622
|
-
get AIPrompt() {
|
|
11623
|
-
return this.Get('AIPrompt');
|
|
11624
|
-
}
|
|
11625
|
-
/**
|
|
11626
11795
|
* * Field Name: AIModel
|
|
11627
11796
|
* * Display Name: AIModel
|
|
11628
11797
|
* * SQL Data Type: nvarchar(50)
|
|
@@ -11630,31 +11799,39 @@ let AIResultCacheEntity = class AIResultCacheEntity extends core_1.BaseEntity {
|
|
|
11630
11799
|
get AIModel() {
|
|
11631
11800
|
return this.Get('AIModel');
|
|
11632
11801
|
}
|
|
11802
|
+
/**
|
|
11803
|
+
* * Field Name: AIAction
|
|
11804
|
+
* * Display Name: AIAction
|
|
11805
|
+
* * SQL Data Type: nvarchar(50)
|
|
11806
|
+
*/
|
|
11807
|
+
get AIAction() {
|
|
11808
|
+
return this.Get('AIAction');
|
|
11809
|
+
}
|
|
11633
11810
|
};
|
|
11634
|
-
exports.
|
|
11635
|
-
exports.
|
|
11636
|
-
(0, global_1.RegisterClass)(core_1.BaseEntity, 'AI
|
|
11637
|
-
],
|
|
11811
|
+
exports.AIModelActionEntity = AIModelActionEntity;
|
|
11812
|
+
exports.AIModelActionEntity = AIModelActionEntity = __decorate([
|
|
11813
|
+
(0, global_1.RegisterClass)(core_1.BaseEntity, 'AI Model Actions')
|
|
11814
|
+
], AIModelActionEntity);
|
|
11638
11815
|
/**
|
|
11639
|
-
*
|
|
11816
|
+
* AI Model Types - strongly typed entity sub-class
|
|
11640
11817
|
* * Schema: __mj
|
|
11641
|
-
* * Base Table:
|
|
11642
|
-
* * Base View:
|
|
11643
|
-
* * @description
|
|
11818
|
+
* * Base Table: AIModelType
|
|
11819
|
+
* * Base View: vwAIModelTypes
|
|
11820
|
+
* * @description Types of AI Models
|
|
11644
11821
|
* * Primary Key: ID
|
|
11645
11822
|
* @extends {BaseEntity}
|
|
11646
11823
|
* @class
|
|
11647
11824
|
* @public
|
|
11648
11825
|
*/
|
|
11649
|
-
let
|
|
11826
|
+
let AIModelTypeEntity = class AIModelTypeEntity extends core_1.BaseEntity {
|
|
11650
11827
|
/**
|
|
11651
|
-
* Loads the
|
|
11652
|
-
* @param ID: string - primary key value to load the
|
|
11828
|
+
* Loads the AI Model Types record from the database
|
|
11829
|
+
* @param ID: string - primary key value to load the AI Model Types record.
|
|
11653
11830
|
* @param EntityRelationshipsToLoad - (optional) the relationships to load
|
|
11654
11831
|
* @returns {Promise<boolean>} - true if successful, false otherwise
|
|
11655
11832
|
* @public
|
|
11656
11833
|
* @async
|
|
11657
|
-
* @memberof
|
|
11834
|
+
* @memberof AIModelTypeEntity
|
|
11658
11835
|
* @method
|
|
11659
11836
|
* @override
|
|
11660
11837
|
*/
|
|
@@ -11668,53 +11845,31 @@ let AIAgentActionEntity = class AIAgentActionEntity extends core_1.BaseEntity {
|
|
|
11668
11845
|
* * Display Name: ID
|
|
11669
11846
|
* * SQL Data Type: uniqueidentifier
|
|
11670
11847
|
* * Default Value: newsequentialid()
|
|
11671
|
-
* * Description: The unique identifier for each AI agent-action mapping. Serves as the primary key.
|
|
11672
11848
|
*/
|
|
11673
11849
|
get ID() {
|
|
11674
11850
|
return this.Get('ID');
|
|
11675
11851
|
}
|
|
11676
11852
|
/**
|
|
11677
|
-
* * Field Name:
|
|
11678
|
-
* * Display Name:
|
|
11679
|
-
* * SQL Data Type:
|
|
11680
|
-
* * Related Entity/Foreign Key: AIAgents (vwAIAgents.ID)
|
|
11681
|
-
* * Description: References the unique identifier of the associated AI agent from the AIAgent table.
|
|
11682
|
-
*/
|
|
11683
|
-
get AgentID() {
|
|
11684
|
-
return this.Get('AgentID');
|
|
11685
|
-
}
|
|
11686
|
-
set AgentID(value) {
|
|
11687
|
-
this.Set('AgentID', value);
|
|
11688
|
-
}
|
|
11689
|
-
/**
|
|
11690
|
-
* * Field Name: ActionID
|
|
11691
|
-
* * Display Name: Action ID
|
|
11692
|
-
* * SQL Data Type: uniqueidentifier
|
|
11693
|
-
* * Related Entity/Foreign Key: Actions (vwActions.ID)
|
|
11694
|
-
* * Description: References the unique identifier of the associated action from the Action table.
|
|
11853
|
+
* * Field Name: Name
|
|
11854
|
+
* * Display Name: Name
|
|
11855
|
+
* * SQL Data Type: nvarchar(50)
|
|
11695
11856
|
*/
|
|
11696
|
-
get
|
|
11697
|
-
return this.Get('
|
|
11857
|
+
get Name() {
|
|
11858
|
+
return this.Get('Name');
|
|
11698
11859
|
}
|
|
11699
|
-
set
|
|
11700
|
-
this.Set('
|
|
11860
|
+
set Name(value) {
|
|
11861
|
+
this.Set('Name', value);
|
|
11701
11862
|
}
|
|
11702
11863
|
/**
|
|
11703
|
-
* * Field Name:
|
|
11704
|
-
* * Display Name:
|
|
11705
|
-
* * SQL Data Type: nvarchar(
|
|
11706
|
-
* * Default Value: Active
|
|
11707
|
-
* * Value List Type: List
|
|
11708
|
-
* * Possible Values
|
|
11709
|
-
* * Pending
|
|
11710
|
-
* * Active
|
|
11711
|
-
* * Revoked
|
|
11864
|
+
* * Field Name: Description
|
|
11865
|
+
* * Display Name: Description
|
|
11866
|
+
* * SQL Data Type: nvarchar(MAX)
|
|
11712
11867
|
*/
|
|
11713
|
-
get
|
|
11714
|
-
return this.Get('
|
|
11868
|
+
get Description() {
|
|
11869
|
+
return this.Get('Description');
|
|
11715
11870
|
}
|
|
11716
|
-
set
|
|
11717
|
-
this.Set('
|
|
11871
|
+
set Description(value) {
|
|
11872
|
+
this.Set('Description', value);
|
|
11718
11873
|
}
|
|
11719
11874
|
/**
|
|
11720
11875
|
* * Field Name: __mj_CreatedAt
|
|
@@ -11734,47 +11889,31 @@ let AIAgentActionEntity = class AIAgentActionEntity extends core_1.BaseEntity {
|
|
|
11734
11889
|
get __mj_UpdatedAt() {
|
|
11735
11890
|
return this.Get('__mj_UpdatedAt');
|
|
11736
11891
|
}
|
|
11737
|
-
/**
|
|
11738
|
-
* * Field Name: Agent
|
|
11739
|
-
* * Display Name: Agent
|
|
11740
|
-
* * SQL Data Type: nvarchar(255)
|
|
11741
|
-
*/
|
|
11742
|
-
get Agent() {
|
|
11743
|
-
return this.Get('Agent');
|
|
11744
|
-
}
|
|
11745
|
-
/**
|
|
11746
|
-
* * Field Name: Action
|
|
11747
|
-
* * Display Name: Action
|
|
11748
|
-
* * SQL Data Type: nvarchar(425)
|
|
11749
|
-
*/
|
|
11750
|
-
get Action() {
|
|
11751
|
-
return this.Get('Action');
|
|
11752
|
-
}
|
|
11753
11892
|
};
|
|
11754
|
-
exports.
|
|
11755
|
-
exports.
|
|
11756
|
-
(0, global_1.RegisterClass)(core_1.BaseEntity, '
|
|
11757
|
-
],
|
|
11893
|
+
exports.AIModelTypeEntity = AIModelTypeEntity;
|
|
11894
|
+
exports.AIModelTypeEntity = AIModelTypeEntity = __decorate([
|
|
11895
|
+
(0, global_1.RegisterClass)(core_1.BaseEntity, 'AI Model Types')
|
|
11896
|
+
], AIModelTypeEntity);
|
|
11758
11897
|
/**
|
|
11759
|
-
*
|
|
11898
|
+
* AI Models - strongly typed entity sub-class
|
|
11760
11899
|
* * Schema: __mj
|
|
11761
|
-
* * Base Table:
|
|
11762
|
-
* * Base View:
|
|
11763
|
-
* * @description
|
|
11900
|
+
* * Base Table: AIModel
|
|
11901
|
+
* * Base View: vwAIModels
|
|
11902
|
+
* * @description Catalog of all AI Models configured in the system
|
|
11764
11903
|
* * Primary Key: ID
|
|
11765
11904
|
* @extends {BaseEntity}
|
|
11766
11905
|
* @class
|
|
11767
11906
|
* @public
|
|
11768
11907
|
*/
|
|
11769
|
-
let
|
|
11908
|
+
let AIModelEntity = class AIModelEntity extends core_1.BaseEntity {
|
|
11770
11909
|
/**
|
|
11771
|
-
* Loads the
|
|
11772
|
-
* @param ID: string - primary key value to load the
|
|
11910
|
+
* Loads the AI Models record from the database
|
|
11911
|
+
* @param ID: string - primary key value to load the AI Models record.
|
|
11773
11912
|
* @param EntityRelationshipsToLoad - (optional) the relationships to load
|
|
11774
11913
|
* @returns {Promise<boolean>} - true if successful, false otherwise
|
|
11775
11914
|
* @public
|
|
11776
11915
|
* @async
|
|
11777
|
-
* @memberof
|
|
11916
|
+
* @memberof AIModelEntity
|
|
11778
11917
|
* @method
|
|
11779
11918
|
* @override
|
|
11780
11919
|
*/
|
|
@@ -11788,77 +11927,113 @@ let AIAgentLearningCycleEntity = class AIAgentLearningCycleEntity extends core_1
|
|
|
11788
11927
|
* * Display Name: ID
|
|
11789
11928
|
* * SQL Data Type: uniqueidentifier
|
|
11790
11929
|
* * Default Value: newsequentialid()
|
|
11791
|
-
* * Description: Unique identifier for the learning cycle.
|
|
11792
11930
|
*/
|
|
11793
11931
|
get ID() {
|
|
11794
11932
|
return this.Get('ID');
|
|
11795
11933
|
}
|
|
11796
11934
|
/**
|
|
11797
|
-
* * Field Name:
|
|
11798
|
-
* * Display Name:
|
|
11935
|
+
* * Field Name: Name
|
|
11936
|
+
* * Display Name: Name
|
|
11937
|
+
* * SQL Data Type: nvarchar(50)
|
|
11938
|
+
*/
|
|
11939
|
+
get Name() {
|
|
11940
|
+
return this.Get('Name');
|
|
11941
|
+
}
|
|
11942
|
+
set Name(value) {
|
|
11943
|
+
this.Set('Name', value);
|
|
11944
|
+
}
|
|
11945
|
+
/**
|
|
11946
|
+
* * Field Name: Description
|
|
11947
|
+
* * Display Name: Description
|
|
11948
|
+
* * SQL Data Type: nvarchar(MAX)
|
|
11949
|
+
*/
|
|
11950
|
+
get Description() {
|
|
11951
|
+
return this.Get('Description');
|
|
11952
|
+
}
|
|
11953
|
+
set Description(value) {
|
|
11954
|
+
this.Set('Description', value);
|
|
11955
|
+
}
|
|
11956
|
+
/**
|
|
11957
|
+
* * Field Name: Vendor
|
|
11958
|
+
* * Display Name: Vendor
|
|
11959
|
+
* * SQL Data Type: nvarchar(50)
|
|
11960
|
+
*/
|
|
11961
|
+
get Vendor() {
|
|
11962
|
+
return this.Get('Vendor');
|
|
11963
|
+
}
|
|
11964
|
+
set Vendor(value) {
|
|
11965
|
+
this.Set('Vendor', value);
|
|
11966
|
+
}
|
|
11967
|
+
/**
|
|
11968
|
+
* * Field Name: AIModelTypeID
|
|
11969
|
+
* * Display Name: AI Model Type ID
|
|
11799
11970
|
* * SQL Data Type: uniqueidentifier
|
|
11800
|
-
* * Related Entity/Foreign Key:
|
|
11801
|
-
* * Description: Identifier for the AI Agent associated with this learning cycle.
|
|
11971
|
+
* * Related Entity/Foreign Key: AI Model Types (vwAIModelTypes.ID)
|
|
11802
11972
|
*/
|
|
11803
|
-
get
|
|
11804
|
-
return this.Get('
|
|
11973
|
+
get AIModelTypeID() {
|
|
11974
|
+
return this.Get('AIModelTypeID');
|
|
11805
11975
|
}
|
|
11806
|
-
set
|
|
11807
|
-
this.Set('
|
|
11976
|
+
set AIModelTypeID(value) {
|
|
11977
|
+
this.Set('AIModelTypeID', value);
|
|
11808
11978
|
}
|
|
11809
11979
|
/**
|
|
11810
|
-
* * Field Name:
|
|
11811
|
-
* * Display Name:
|
|
11812
|
-
* * SQL Data Type:
|
|
11813
|
-
* * Default Value:
|
|
11814
|
-
* * Description:
|
|
11980
|
+
* * Field Name: PowerRank
|
|
11981
|
+
* * Display Name: Power Rank
|
|
11982
|
+
* * SQL Data Type: int
|
|
11983
|
+
* * Default Value: 0
|
|
11984
|
+
* * Description: Optional column that ranks the power of the AI model. Default is 0 and should be non-negative.
|
|
11815
11985
|
*/
|
|
11816
|
-
get
|
|
11817
|
-
return this.Get('
|
|
11986
|
+
get PowerRank() {
|
|
11987
|
+
return this.Get('PowerRank');
|
|
11818
11988
|
}
|
|
11819
|
-
set
|
|
11820
|
-
this.Set('
|
|
11989
|
+
set PowerRank(value) {
|
|
11990
|
+
this.Set('PowerRank', value);
|
|
11821
11991
|
}
|
|
11822
11992
|
/**
|
|
11823
|
-
* * Field Name:
|
|
11824
|
-
* * Display Name:
|
|
11825
|
-
* * SQL Data Type:
|
|
11826
|
-
* *
|
|
11993
|
+
* * Field Name: IsActive
|
|
11994
|
+
* * Display Name: Is Active
|
|
11995
|
+
* * SQL Data Type: bit
|
|
11996
|
+
* * Default Value: 1
|
|
11827
11997
|
*/
|
|
11828
|
-
get
|
|
11829
|
-
return this.Get('
|
|
11998
|
+
get IsActive() {
|
|
11999
|
+
return this.Get('IsActive');
|
|
11830
12000
|
}
|
|
11831
|
-
set
|
|
11832
|
-
this.Set('
|
|
12001
|
+
set IsActive(value) {
|
|
12002
|
+
this.Set('IsActive', value);
|
|
11833
12003
|
}
|
|
11834
12004
|
/**
|
|
11835
|
-
* * Field Name:
|
|
11836
|
-
* * Display Name:
|
|
11837
|
-
* * SQL Data Type: nvarchar(
|
|
11838
|
-
* * Value List Type: List
|
|
11839
|
-
* * Possible Values
|
|
11840
|
-
* * In-Progress
|
|
11841
|
-
* * Complete
|
|
11842
|
-
* * Failed
|
|
11843
|
-
* * Description: Status of the learning cycle (In-Progress, Complete, or Failed).
|
|
12005
|
+
* * Field Name: DriverClass
|
|
12006
|
+
* * Display Name: Driver Class
|
|
12007
|
+
* * SQL Data Type: nvarchar(100)
|
|
11844
12008
|
*/
|
|
11845
|
-
get
|
|
11846
|
-
return this.Get('
|
|
12009
|
+
get DriverClass() {
|
|
12010
|
+
return this.Get('DriverClass');
|
|
11847
12011
|
}
|
|
11848
|
-
set
|
|
11849
|
-
this.Set('
|
|
12012
|
+
set DriverClass(value) {
|
|
12013
|
+
this.Set('DriverClass', value);
|
|
11850
12014
|
}
|
|
11851
12015
|
/**
|
|
11852
|
-
* * Field Name:
|
|
11853
|
-
* * Display Name:
|
|
11854
|
-
* * SQL Data Type: nvarchar(
|
|
11855
|
-
* * Description: Text summary provided by the agent about what it learned and any changes it requested for stored metadata.
|
|
12016
|
+
* * Field Name: DriverImportPath
|
|
12017
|
+
* * Display Name: Driver Import Path
|
|
12018
|
+
* * SQL Data Type: nvarchar(255)
|
|
11856
12019
|
*/
|
|
11857
|
-
get
|
|
11858
|
-
return this.Get('
|
|
12020
|
+
get DriverImportPath() {
|
|
12021
|
+
return this.Get('DriverImportPath');
|
|
11859
12022
|
}
|
|
11860
|
-
set
|
|
11861
|
-
this.Set('
|
|
12023
|
+
set DriverImportPath(value) {
|
|
12024
|
+
this.Set('DriverImportPath', value);
|
|
12025
|
+
}
|
|
12026
|
+
/**
|
|
12027
|
+
* * Field Name: APIName
|
|
12028
|
+
* * Display Name: APIName
|
|
12029
|
+
* * SQL Data Type: nvarchar(100)
|
|
12030
|
+
* * Description: The name of the model to use with API calls which might differ from the Name, if APIName is not provided, Name will be used for API calls
|
|
12031
|
+
*/
|
|
12032
|
+
get APIName() {
|
|
12033
|
+
return this.Get('APIName');
|
|
12034
|
+
}
|
|
12035
|
+
set APIName(value) {
|
|
12036
|
+
this.Set('APIName', value);
|
|
11862
12037
|
}
|
|
11863
12038
|
/**
|
|
11864
12039
|
* * Field Name: __mj_CreatedAt
|
|
@@ -11879,38 +12054,88 @@ let AIAgentLearningCycleEntity = class AIAgentLearningCycleEntity extends core_1
|
|
|
11879
12054
|
return this.Get('__mj_UpdatedAt');
|
|
11880
12055
|
}
|
|
11881
12056
|
/**
|
|
11882
|
-
* * Field Name:
|
|
11883
|
-
* * Display Name:
|
|
11884
|
-
* * SQL Data Type:
|
|
12057
|
+
* * Field Name: SpeedRank
|
|
12058
|
+
* * Display Name: Speed Rank
|
|
12059
|
+
* * SQL Data Type: int
|
|
12060
|
+
* * Default Value: 0
|
|
12061
|
+
* * Description: Optional column that ranks the speed of the AI model. Default is 0 and should be non-negative.
|
|
11885
12062
|
*/
|
|
11886
|
-
get
|
|
11887
|
-
return this.Get('
|
|
12063
|
+
get SpeedRank() {
|
|
12064
|
+
return this.Get('SpeedRank');
|
|
12065
|
+
}
|
|
12066
|
+
set SpeedRank(value) {
|
|
12067
|
+
this.Set('SpeedRank', value);
|
|
12068
|
+
}
|
|
12069
|
+
/**
|
|
12070
|
+
* * Field Name: CostRank
|
|
12071
|
+
* * Display Name: Cost Rank
|
|
12072
|
+
* * SQL Data Type: int
|
|
12073
|
+
* * Default Value: 0
|
|
12074
|
+
* * Description: Optional column that ranks the cost of the AI model. Default is 0 and should be non-negative.
|
|
12075
|
+
*/
|
|
12076
|
+
get CostRank() {
|
|
12077
|
+
return this.Get('CostRank');
|
|
12078
|
+
}
|
|
12079
|
+
set CostRank(value) {
|
|
12080
|
+
this.Set('CostRank', value);
|
|
12081
|
+
}
|
|
12082
|
+
/**
|
|
12083
|
+
* * Field Name: ModelSelectionInsights
|
|
12084
|
+
* * Display Name: Model Selection Insights
|
|
12085
|
+
* * SQL Data Type: nvarchar(MAX)
|
|
12086
|
+
* * Description: This column stores unstructured text notes that provide insights into what the model is particularly good at and areas where it may not perform as well. These notes can be used by a human or an AI to determine if the model is a good fit for various purposes.
|
|
12087
|
+
*/
|
|
12088
|
+
get ModelSelectionInsights() {
|
|
12089
|
+
return this.Get('ModelSelectionInsights');
|
|
12090
|
+
}
|
|
12091
|
+
set ModelSelectionInsights(value) {
|
|
12092
|
+
this.Set('ModelSelectionInsights', value);
|
|
12093
|
+
}
|
|
12094
|
+
/**
|
|
12095
|
+
* * Field Name: InputTokenLimit
|
|
12096
|
+
* * Display Name: Input Token Limit
|
|
12097
|
+
* * SQL Data Type: int
|
|
12098
|
+
* * Description: Stores the maximum number of tokens that fit in the context window for the model.
|
|
12099
|
+
*/
|
|
12100
|
+
get InputTokenLimit() {
|
|
12101
|
+
return this.Get('InputTokenLimit');
|
|
12102
|
+
}
|
|
12103
|
+
set InputTokenLimit(value) {
|
|
12104
|
+
this.Set('InputTokenLimit', value);
|
|
12105
|
+
}
|
|
12106
|
+
/**
|
|
12107
|
+
* * Field Name: AIModelType
|
|
12108
|
+
* * Display Name: AIModel Type
|
|
12109
|
+
* * SQL Data Type: nvarchar(50)
|
|
12110
|
+
*/
|
|
12111
|
+
get AIModelType() {
|
|
12112
|
+
return this.Get('AIModelType');
|
|
11888
12113
|
}
|
|
11889
12114
|
};
|
|
11890
|
-
exports.
|
|
11891
|
-
exports.
|
|
11892
|
-
(0, global_1.RegisterClass)(core_1.BaseEntity, '
|
|
11893
|
-
],
|
|
12115
|
+
exports.AIModelEntity = AIModelEntity;
|
|
12116
|
+
exports.AIModelEntity = AIModelEntity = __decorate([
|
|
12117
|
+
(0, global_1.RegisterClass)(core_1.BaseEntity, 'AI Models')
|
|
12118
|
+
], AIModelEntity);
|
|
11894
12119
|
/**
|
|
11895
|
-
*
|
|
12120
|
+
* AI Prompt Categories - strongly typed entity sub-class
|
|
11896
12121
|
* * Schema: __mj
|
|
11897
|
-
* * Base Table:
|
|
11898
|
-
* * Base View:
|
|
11899
|
-
* * @description
|
|
12122
|
+
* * Base Table: AIPromptCategory
|
|
12123
|
+
* * Base View: vwAIPromptCategories
|
|
12124
|
+
* * @description Categories for organizing AI prompts in a hierarchical structure.
|
|
11900
12125
|
* * Primary Key: ID
|
|
11901
12126
|
* @extends {BaseEntity}
|
|
11902
12127
|
* @class
|
|
11903
12128
|
* @public
|
|
11904
12129
|
*/
|
|
11905
|
-
let
|
|
12130
|
+
let AIPromptCategoryEntity = class AIPromptCategoryEntity extends core_1.BaseEntity {
|
|
11906
12131
|
/**
|
|
11907
|
-
* Loads the
|
|
11908
|
-
* @param ID: string - primary key value to load the
|
|
12132
|
+
* Loads the AI Prompt Categories record from the database
|
|
12133
|
+
* @param ID: string - primary key value to load the AI Prompt Categories record.
|
|
11909
12134
|
* @param EntityRelationshipsToLoad - (optional) the relationships to load
|
|
11910
12135
|
* @returns {Promise<boolean>} - true if successful, false otherwise
|
|
11911
12136
|
* @public
|
|
11912
12137
|
* @async
|
|
11913
|
-
* @memberof
|
|
12138
|
+
* @memberof AIPromptCategoryEntity
|
|
11914
12139
|
* @method
|
|
11915
12140
|
* @override
|
|
11916
12141
|
*/
|
|
@@ -11924,59 +12149,44 @@ let AIAgentModelEntity = class AIAgentModelEntity extends core_1.BaseEntity {
|
|
|
11924
12149
|
* * Display Name: ID
|
|
11925
12150
|
* * SQL Data Type: uniqueidentifier
|
|
11926
12151
|
* * Default Value: newsequentialid()
|
|
11927
|
-
* * Description: The unique identifier for each AI agent-model mapping. Serves as the primary key.
|
|
11928
12152
|
*/
|
|
11929
12153
|
get ID() {
|
|
11930
12154
|
return this.Get('ID');
|
|
11931
12155
|
}
|
|
11932
12156
|
/**
|
|
11933
|
-
* * Field Name:
|
|
11934
|
-
* * Display Name:
|
|
11935
|
-
* * SQL Data Type:
|
|
11936
|
-
* * Related Entity/Foreign Key: AIAgents (vwAIAgents.ID)
|
|
11937
|
-
* * Description: References the unique identifier of the associated AI agent from AIAgent table.
|
|
12157
|
+
* * Field Name: Name
|
|
12158
|
+
* * Display Name: Name
|
|
12159
|
+
* * SQL Data Type: nvarchar(255)
|
|
11938
12160
|
*/
|
|
11939
|
-
get
|
|
11940
|
-
return this.Get('
|
|
12161
|
+
get Name() {
|
|
12162
|
+
return this.Get('Name');
|
|
11941
12163
|
}
|
|
11942
|
-
set
|
|
11943
|
-
this.Set('
|
|
12164
|
+
set Name(value) {
|
|
12165
|
+
this.Set('Name', value);
|
|
11944
12166
|
}
|
|
11945
12167
|
/**
|
|
11946
|
-
* * Field Name:
|
|
11947
|
-
* * Display Name:
|
|
12168
|
+
* * Field Name: ParentID
|
|
12169
|
+
* * Display Name: Parent ID
|
|
11948
12170
|
* * SQL Data Type: uniqueidentifier
|
|
11949
|
-
* * Related Entity/Foreign Key: AI
|
|
11950
|
-
* * Description:
|
|
11951
|
-
*/
|
|
11952
|
-
get ModelID() {
|
|
11953
|
-
return this.Get('ModelID');
|
|
11954
|
-
}
|
|
11955
|
-
set ModelID(value) {
|
|
11956
|
-
this.Set('ModelID', value);
|
|
11957
|
-
}
|
|
11958
|
-
/**
|
|
11959
|
-
* * Field Name: Active
|
|
11960
|
-
* * Display Name: Active
|
|
11961
|
-
* * SQL Data Type: bit
|
|
12171
|
+
* * Related Entity/Foreign Key: AI Prompt Categories (vwAIPromptCategories.ID)
|
|
12172
|
+
* * Description: Parent category ID for hierarchical organization.
|
|
11962
12173
|
*/
|
|
11963
|
-
get
|
|
11964
|
-
return this.Get('
|
|
12174
|
+
get ParentID() {
|
|
12175
|
+
return this.Get('ParentID');
|
|
11965
12176
|
}
|
|
11966
|
-
set
|
|
11967
|
-
this.Set('
|
|
12177
|
+
set ParentID(value) {
|
|
12178
|
+
this.Set('ParentID', value);
|
|
11968
12179
|
}
|
|
11969
12180
|
/**
|
|
11970
|
-
* * Field Name:
|
|
11971
|
-
* * Display Name:
|
|
11972
|
-
* * SQL Data Type:
|
|
11973
|
-
* * Description: The priority level of the AI model for the agent, where higher values indicate higher priority.
|
|
12181
|
+
* * Field Name: Description
|
|
12182
|
+
* * Display Name: Description
|
|
12183
|
+
* * SQL Data Type: nvarchar(MAX)
|
|
11974
12184
|
*/
|
|
11975
|
-
get
|
|
11976
|
-
return this.Get('
|
|
12185
|
+
get Description() {
|
|
12186
|
+
return this.Get('Description');
|
|
11977
12187
|
}
|
|
11978
|
-
set
|
|
11979
|
-
this.Set('
|
|
12188
|
+
set Description(value) {
|
|
12189
|
+
this.Set('Description', value);
|
|
11980
12190
|
}
|
|
11981
12191
|
/**
|
|
11982
12192
|
* * Field Name: __mj_CreatedAt
|
|
@@ -11997,45 +12207,38 @@ let AIAgentModelEntity = class AIAgentModelEntity extends core_1.BaseEntity {
|
|
|
11997
12207
|
return this.Get('__mj_UpdatedAt');
|
|
11998
12208
|
}
|
|
11999
12209
|
/**
|
|
12000
|
-
* * Field Name:
|
|
12001
|
-
* * Display Name:
|
|
12210
|
+
* * Field Name: Parent
|
|
12211
|
+
* * Display Name: Parent
|
|
12002
12212
|
* * SQL Data Type: nvarchar(255)
|
|
12003
12213
|
*/
|
|
12004
|
-
get
|
|
12005
|
-
return this.Get('
|
|
12006
|
-
}
|
|
12007
|
-
/**
|
|
12008
|
-
* * Field Name: Model
|
|
12009
|
-
* * Display Name: Model
|
|
12010
|
-
* * SQL Data Type: nvarchar(50)
|
|
12011
|
-
*/
|
|
12012
|
-
get Model() {
|
|
12013
|
-
return this.Get('Model');
|
|
12214
|
+
get Parent() {
|
|
12215
|
+
return this.Get('Parent');
|
|
12014
12216
|
}
|
|
12015
12217
|
};
|
|
12016
|
-
exports.
|
|
12017
|
-
exports.
|
|
12018
|
-
(0, global_1.RegisterClass)(core_1.BaseEntity, '
|
|
12019
|
-
],
|
|
12218
|
+
exports.AIPromptCategoryEntity = AIPromptCategoryEntity;
|
|
12219
|
+
exports.AIPromptCategoryEntity = AIPromptCategoryEntity = __decorate([
|
|
12220
|
+
(0, global_1.RegisterClass)(core_1.BaseEntity, 'AI Prompt Categories')
|
|
12221
|
+
], AIPromptCategoryEntity);
|
|
12020
12222
|
/**
|
|
12021
|
-
*
|
|
12223
|
+
* AI Prompt Types - strongly typed entity sub-class
|
|
12022
12224
|
* * Schema: __mj
|
|
12023
|
-
* * Base Table:
|
|
12024
|
-
* * Base View:
|
|
12225
|
+
* * Base Table: AIPromptType
|
|
12226
|
+
* * Base View: vwAIPromptTypes
|
|
12227
|
+
* * @description Types of AI prompts such as Chat, Text-to-Image, Text-to-Video, etc.
|
|
12025
12228
|
* * Primary Key: ID
|
|
12026
12229
|
* @extends {BaseEntity}
|
|
12027
12230
|
* @class
|
|
12028
12231
|
* @public
|
|
12029
12232
|
*/
|
|
12030
|
-
let
|
|
12233
|
+
let AIPromptTypeEntity = class AIPromptTypeEntity extends core_1.BaseEntity {
|
|
12031
12234
|
/**
|
|
12032
|
-
* Loads the
|
|
12033
|
-
* @param ID: string - primary key value to load the
|
|
12235
|
+
* Loads the AI Prompt Types record from the database
|
|
12236
|
+
* @param ID: string - primary key value to load the AI Prompt Types record.
|
|
12034
12237
|
* @param EntityRelationshipsToLoad - (optional) the relationships to load
|
|
12035
12238
|
* @returns {Promise<boolean>} - true if successful, false otherwise
|
|
12036
12239
|
* @public
|
|
12037
12240
|
* @async
|
|
12038
|
-
* @memberof
|
|
12241
|
+
* @memberof AIPromptTypeEntity
|
|
12039
12242
|
* @method
|
|
12040
12243
|
* @override
|
|
12041
12244
|
*/
|
|
@@ -12094,29 +12297,30 @@ let AIAgentNoteTypeEntity = class AIAgentNoteTypeEntity extends core_1.BaseEntit
|
|
|
12094
12297
|
return this.Get('__mj_UpdatedAt');
|
|
12095
12298
|
}
|
|
12096
12299
|
};
|
|
12097
|
-
exports.
|
|
12098
|
-
exports.
|
|
12099
|
-
(0, global_1.RegisterClass)(core_1.BaseEntity, '
|
|
12100
|
-
],
|
|
12300
|
+
exports.AIPromptTypeEntity = AIPromptTypeEntity;
|
|
12301
|
+
exports.AIPromptTypeEntity = AIPromptTypeEntity = __decorate([
|
|
12302
|
+
(0, global_1.RegisterClass)(core_1.BaseEntity, 'AI Prompt Types')
|
|
12303
|
+
], AIPromptTypeEntity);
|
|
12101
12304
|
/**
|
|
12102
|
-
*
|
|
12305
|
+
* AI Prompts - strongly typed entity sub-class
|
|
12103
12306
|
* * Schema: __mj
|
|
12104
|
-
* * Base Table:
|
|
12105
|
-
* * Base View:
|
|
12307
|
+
* * Base Table: AIPrompt
|
|
12308
|
+
* * Base View: vwAIPrompts
|
|
12309
|
+
* * @description Stores AI prompts, including references to categories, types, and templates.
|
|
12106
12310
|
* * Primary Key: ID
|
|
12107
12311
|
* @extends {BaseEntity}
|
|
12108
12312
|
* @class
|
|
12109
12313
|
* @public
|
|
12110
12314
|
*/
|
|
12111
|
-
let
|
|
12315
|
+
let AIPromptEntity = class AIPromptEntity extends core_1.BaseEntity {
|
|
12112
12316
|
/**
|
|
12113
|
-
* Loads the
|
|
12114
|
-
* @param ID: string - primary key value to load the
|
|
12317
|
+
* Loads the AI Prompts record from the database
|
|
12318
|
+
* @param ID: string - primary key value to load the AI Prompts record.
|
|
12115
12319
|
* @param EntityRelationshipsToLoad - (optional) the relationships to load
|
|
12116
12320
|
* @returns {Promise<boolean>} - true if successful, false otherwise
|
|
12117
12321
|
* @public
|
|
12118
12322
|
* @async
|
|
12119
|
-
* @memberof
|
|
12323
|
+
* @memberof AIPromptEntity
|
|
12120
12324
|
* @method
|
|
12121
12325
|
* @override
|
|
12122
12326
|
*/
|
|
@@ -12126,48 +12330,116 @@ let AIAgentNoteEntity = class AIAgentNoteEntity extends core_1.BaseEntity {
|
|
|
12126
12330
|
return await super.InnerLoad(compositeKey, EntityRelationshipsToLoad);
|
|
12127
12331
|
}
|
|
12128
12332
|
/**
|
|
12129
|
-
* * Field Name: ID
|
|
12130
|
-
* * Display Name: ID
|
|
12333
|
+
* * Field Name: ID
|
|
12334
|
+
* * Display Name: ID
|
|
12335
|
+
* * SQL Data Type: uniqueidentifier
|
|
12336
|
+
* * Default Value: newsequentialid()
|
|
12337
|
+
*/
|
|
12338
|
+
get ID() {
|
|
12339
|
+
return this.Get('ID');
|
|
12340
|
+
}
|
|
12341
|
+
/**
|
|
12342
|
+
* * Field Name: Name
|
|
12343
|
+
* * Display Name: Name
|
|
12344
|
+
* * SQL Data Type: nvarchar(255)
|
|
12345
|
+
*/
|
|
12346
|
+
get Name() {
|
|
12347
|
+
return this.Get('Name');
|
|
12348
|
+
}
|
|
12349
|
+
set Name(value) {
|
|
12350
|
+
this.Set('Name', value);
|
|
12351
|
+
}
|
|
12352
|
+
/**
|
|
12353
|
+
* * Field Name: Description
|
|
12354
|
+
* * Display Name: Description
|
|
12355
|
+
* * SQL Data Type: nvarchar(MAX)
|
|
12356
|
+
*/
|
|
12357
|
+
get Description() {
|
|
12358
|
+
return this.Get('Description');
|
|
12359
|
+
}
|
|
12360
|
+
set Description(value) {
|
|
12361
|
+
this.Set('Description', value);
|
|
12362
|
+
}
|
|
12363
|
+
/**
|
|
12364
|
+
* * Field Name: TemplateID
|
|
12365
|
+
* * Display Name: Template ID
|
|
12131
12366
|
* * SQL Data Type: uniqueidentifier
|
|
12132
|
-
* *
|
|
12367
|
+
* * Related Entity/Foreign Key: Templates (vwTemplates.ID)
|
|
12368
|
+
* * Description: Reference to the template used for the prompt.
|
|
12133
12369
|
*/
|
|
12134
|
-
get
|
|
12135
|
-
return this.Get('
|
|
12370
|
+
get TemplateID() {
|
|
12371
|
+
return this.Get('TemplateID');
|
|
12372
|
+
}
|
|
12373
|
+
set TemplateID(value) {
|
|
12374
|
+
this.Set('TemplateID', value);
|
|
12136
12375
|
}
|
|
12137
12376
|
/**
|
|
12138
|
-
* * Field Name:
|
|
12139
|
-
* * Display Name:
|
|
12377
|
+
* * Field Name: CategoryID
|
|
12378
|
+
* * Display Name: Category ID
|
|
12140
12379
|
* * SQL Data Type: uniqueidentifier
|
|
12141
|
-
* * Related Entity/Foreign Key:
|
|
12380
|
+
* * Related Entity/Foreign Key: AI Prompt Categories (vwAIPromptCategories.ID)
|
|
12381
|
+
* * Description: Reference to the category the prompt belongs to.
|
|
12142
12382
|
*/
|
|
12143
|
-
get
|
|
12144
|
-
return this.Get('
|
|
12383
|
+
get CategoryID() {
|
|
12384
|
+
return this.Get('CategoryID');
|
|
12145
12385
|
}
|
|
12146
|
-
set
|
|
12147
|
-
this.Set('
|
|
12386
|
+
set CategoryID(value) {
|
|
12387
|
+
this.Set('CategoryID', value);
|
|
12148
12388
|
}
|
|
12149
12389
|
/**
|
|
12150
|
-
* * Field Name:
|
|
12151
|
-
* * Display Name:
|
|
12390
|
+
* * Field Name: TypeID
|
|
12391
|
+
* * Display Name: Type ID
|
|
12152
12392
|
* * SQL Data Type: uniqueidentifier
|
|
12153
|
-
* * Related Entity/Foreign Key:
|
|
12393
|
+
* * Related Entity/Foreign Key: AI Prompt Types (vwAIPromptTypes.ID)
|
|
12394
|
+
* * Description: Reference to the type of the prompt.
|
|
12154
12395
|
*/
|
|
12155
|
-
get
|
|
12156
|
-
return this.Get('
|
|
12396
|
+
get TypeID() {
|
|
12397
|
+
return this.Get('TypeID');
|
|
12157
12398
|
}
|
|
12158
|
-
set
|
|
12159
|
-
this.Set('
|
|
12399
|
+
set TypeID(value) {
|
|
12400
|
+
this.Set('TypeID', value);
|
|
12160
12401
|
}
|
|
12161
12402
|
/**
|
|
12162
|
-
* * Field Name:
|
|
12163
|
-
* * Display Name:
|
|
12164
|
-
* * SQL Data Type: nvarchar(
|
|
12403
|
+
* * Field Name: Status
|
|
12404
|
+
* * Display Name: Status
|
|
12405
|
+
* * SQL Data Type: nvarchar(50)
|
|
12406
|
+
* * Value List Type: List
|
|
12407
|
+
* * Possible Values
|
|
12408
|
+
* * Pending
|
|
12409
|
+
* * Active
|
|
12410
|
+
* * Disabled
|
|
12165
12411
|
*/
|
|
12166
|
-
get
|
|
12167
|
-
return this.Get('
|
|
12412
|
+
get Status() {
|
|
12413
|
+
return this.Get('Status');
|
|
12168
12414
|
}
|
|
12169
|
-
set
|
|
12170
|
-
this.Set('
|
|
12415
|
+
set Status(value) {
|
|
12416
|
+
this.Set('Status', value);
|
|
12417
|
+
}
|
|
12418
|
+
/**
|
|
12419
|
+
* * Field Name: CacheResults
|
|
12420
|
+
* * Display Name: Cache Results
|
|
12421
|
+
* * SQL Data Type: bit
|
|
12422
|
+
* * Default Value: 0
|
|
12423
|
+
* * Description: Indicates whether the results of the prompt should be cached.
|
|
12424
|
+
*/
|
|
12425
|
+
get CacheResults() {
|
|
12426
|
+
return this.Get('CacheResults');
|
|
12427
|
+
}
|
|
12428
|
+
set CacheResults(value) {
|
|
12429
|
+
this.Set('CacheResults', value);
|
|
12430
|
+
}
|
|
12431
|
+
/**
|
|
12432
|
+
* * Field Name: CacheExpiration
|
|
12433
|
+
* * Display Name: Cache Expiration
|
|
12434
|
+
* * SQL Data Type: decimal(10, 2)
|
|
12435
|
+
* * Default Value: 0
|
|
12436
|
+
* * Description: Number of hours the cache is valid for; can be fractional or 0 if the cache never expires.
|
|
12437
|
+
*/
|
|
12438
|
+
get CacheExpiration() {
|
|
12439
|
+
return this.Get('CacheExpiration');
|
|
12440
|
+
}
|
|
12441
|
+
set CacheExpiration(value) {
|
|
12442
|
+
this.Set('CacheExpiration', value);
|
|
12171
12443
|
}
|
|
12172
12444
|
/**
|
|
12173
12445
|
* * Field Name: __mj_CreatedAt
|
|
@@ -12188,46 +12460,54 @@ let AIAgentNoteEntity = class AIAgentNoteEntity extends core_1.BaseEntity {
|
|
|
12188
12460
|
return this.Get('__mj_UpdatedAt');
|
|
12189
12461
|
}
|
|
12190
12462
|
/**
|
|
12191
|
-
* * Field Name:
|
|
12192
|
-
* * Display Name:
|
|
12463
|
+
* * Field Name: Template
|
|
12464
|
+
* * Display Name: Template
|
|
12193
12465
|
* * SQL Data Type: nvarchar(255)
|
|
12194
12466
|
*/
|
|
12195
|
-
get
|
|
12196
|
-
return this.Get('
|
|
12467
|
+
get Template() {
|
|
12468
|
+
return this.Get('Template');
|
|
12197
12469
|
}
|
|
12198
12470
|
/**
|
|
12199
|
-
* * Field Name:
|
|
12200
|
-
* * Display Name:
|
|
12471
|
+
* * Field Name: Category
|
|
12472
|
+
* * Display Name: Category
|
|
12201
12473
|
* * SQL Data Type: nvarchar(255)
|
|
12202
12474
|
*/
|
|
12203
|
-
get
|
|
12204
|
-
return this.Get('
|
|
12475
|
+
get Category() {
|
|
12476
|
+
return this.Get('Category');
|
|
12477
|
+
}
|
|
12478
|
+
/**
|
|
12479
|
+
* * Field Name: Type
|
|
12480
|
+
* * Display Name: Type
|
|
12481
|
+
* * SQL Data Type: nvarchar(255)
|
|
12482
|
+
*/
|
|
12483
|
+
get Type() {
|
|
12484
|
+
return this.Get('Type');
|
|
12205
12485
|
}
|
|
12206
12486
|
};
|
|
12207
|
-
exports.
|
|
12208
|
-
exports.
|
|
12209
|
-
(0, global_1.RegisterClass)(core_1.BaseEntity, '
|
|
12210
|
-
],
|
|
12487
|
+
exports.AIPromptEntity = AIPromptEntity;
|
|
12488
|
+
exports.AIPromptEntity = AIPromptEntity = __decorate([
|
|
12489
|
+
(0, global_1.RegisterClass)(core_1.BaseEntity, 'AI Prompts')
|
|
12490
|
+
], AIPromptEntity);
|
|
12211
12491
|
/**
|
|
12212
|
-
*
|
|
12492
|
+
* AI Result Cache - strongly typed entity sub-class
|
|
12213
12493
|
* * Schema: __mj
|
|
12214
|
-
* * Base Table:
|
|
12215
|
-
* * Base View:
|
|
12216
|
-
* * @description
|
|
12494
|
+
* * Base Table: AIResultCache
|
|
12495
|
+
* * Base View: vwAIResultCaches
|
|
12496
|
+
* * @description Stores cached results of AI prompts, including multiple runs for history and tracking purposes.
|
|
12217
12497
|
* * Primary Key: ID
|
|
12218
12498
|
* @extends {BaseEntity}
|
|
12219
12499
|
* @class
|
|
12220
12500
|
* @public
|
|
12221
12501
|
*/
|
|
12222
|
-
let
|
|
12502
|
+
let AIResultCacheEntity = class AIResultCacheEntity extends core_1.BaseEntity {
|
|
12223
12503
|
/**
|
|
12224
|
-
* Loads the
|
|
12225
|
-
* @param ID: string - primary key value to load the
|
|
12504
|
+
* Loads the AI Result Cache record from the database
|
|
12505
|
+
* @param ID: string - primary key value to load the AI Result Cache record.
|
|
12226
12506
|
* @param EntityRelationshipsToLoad - (optional) the relationships to load
|
|
12227
12507
|
* @returns {Promise<boolean>} - true if successful, false otherwise
|
|
12228
12508
|
* @public
|
|
12229
12509
|
* @async
|
|
12230
|
-
* @memberof
|
|
12510
|
+
* @memberof AIResultCacheEntity
|
|
12231
12511
|
* @method
|
|
12232
12512
|
* @override
|
|
12233
12513
|
*/
|
|
@@ -12241,45 +12521,99 @@ let AIAgentEntity = class AIAgentEntity extends core_1.BaseEntity {
|
|
|
12241
12521
|
* * Display Name: ID
|
|
12242
12522
|
* * SQL Data Type: uniqueidentifier
|
|
12243
12523
|
* * Default Value: newsequentialid()
|
|
12244
|
-
* * Description: The unique identifier for each AI agent. Serves as the primary key.
|
|
12245
12524
|
*/
|
|
12246
12525
|
get ID() {
|
|
12247
12526
|
return this.Get('ID');
|
|
12248
12527
|
}
|
|
12249
12528
|
/**
|
|
12250
|
-
* * Field Name:
|
|
12251
|
-
* * Display Name:
|
|
12252
|
-
* * SQL Data Type:
|
|
12253
|
-
* *
|
|
12529
|
+
* * Field Name: AIPromptID
|
|
12530
|
+
* * Display Name: AIPrompt ID
|
|
12531
|
+
* * SQL Data Type: uniqueidentifier
|
|
12532
|
+
* * Related Entity/Foreign Key: AI Prompts (vwAIPrompts.ID)
|
|
12533
|
+
* * Description: Reference to the AI prompt this result corresponds to.
|
|
12254
12534
|
*/
|
|
12255
|
-
get
|
|
12256
|
-
return this.Get('
|
|
12535
|
+
get AIPromptID() {
|
|
12536
|
+
return this.Get('AIPromptID');
|
|
12257
12537
|
}
|
|
12258
|
-
set
|
|
12259
|
-
this.Set('
|
|
12538
|
+
set AIPromptID(value) {
|
|
12539
|
+
this.Set('AIPromptID', value);
|
|
12260
12540
|
}
|
|
12261
12541
|
/**
|
|
12262
|
-
* * Field Name:
|
|
12263
|
-
* * Display Name:
|
|
12542
|
+
* * Field Name: AIModelID
|
|
12543
|
+
* * Display Name: AIModel ID
|
|
12544
|
+
* * SQL Data Type: uniqueidentifier
|
|
12545
|
+
* * Related Entity/Foreign Key: AI Models (vwAIModels.ID)
|
|
12546
|
+
* * Description: Reference to the AI model that generated this result.
|
|
12547
|
+
*/
|
|
12548
|
+
get AIModelID() {
|
|
12549
|
+
return this.Get('AIModelID');
|
|
12550
|
+
}
|
|
12551
|
+
set AIModelID(value) {
|
|
12552
|
+
this.Set('AIModelID', value);
|
|
12553
|
+
}
|
|
12554
|
+
/**
|
|
12555
|
+
* * Field Name: RunAt
|
|
12556
|
+
* * Display Name: Run At
|
|
12557
|
+
* * SQL Data Type: datetimeoffset
|
|
12558
|
+
* * Description: Timestamp of when this result was generated.
|
|
12559
|
+
*/
|
|
12560
|
+
get RunAt() {
|
|
12561
|
+
return this.Get('RunAt');
|
|
12562
|
+
}
|
|
12563
|
+
set RunAt(value) {
|
|
12564
|
+
this.Set('RunAt', value);
|
|
12565
|
+
}
|
|
12566
|
+
/**
|
|
12567
|
+
* * Field Name: PromptText
|
|
12568
|
+
* * Display Name: Prompt Text
|
|
12264
12569
|
* * SQL Data Type: nvarchar(MAX)
|
|
12265
|
-
* * Description:
|
|
12570
|
+
* * Description: The prompt text used to generate this result.
|
|
12266
12571
|
*/
|
|
12267
|
-
get
|
|
12268
|
-
return this.Get('
|
|
12572
|
+
get PromptText() {
|
|
12573
|
+
return this.Get('PromptText');
|
|
12269
12574
|
}
|
|
12270
|
-
set
|
|
12271
|
-
this.Set('
|
|
12575
|
+
set PromptText(value) {
|
|
12576
|
+
this.Set('PromptText', value);
|
|
12272
12577
|
}
|
|
12273
12578
|
/**
|
|
12274
|
-
* * Field Name:
|
|
12275
|
-
* * Display Name:
|
|
12276
|
-
* * SQL Data Type: nvarchar(
|
|
12579
|
+
* * Field Name: ResultText
|
|
12580
|
+
* * Display Name: Result Text
|
|
12581
|
+
* * SQL Data Type: nvarchar(MAX)
|
|
12582
|
+
* * Description: The text of the result generated by the AI model.
|
|
12277
12583
|
*/
|
|
12278
|
-
get
|
|
12279
|
-
return this.Get('
|
|
12584
|
+
get ResultText() {
|
|
12585
|
+
return this.Get('ResultText');
|
|
12280
12586
|
}
|
|
12281
|
-
set
|
|
12282
|
-
this.Set('
|
|
12587
|
+
set ResultText(value) {
|
|
12588
|
+
this.Set('ResultText', value);
|
|
12589
|
+
}
|
|
12590
|
+
/**
|
|
12591
|
+
* * Field Name: Status
|
|
12592
|
+
* * Display Name: Status
|
|
12593
|
+
* * SQL Data Type: nvarchar(50)
|
|
12594
|
+
* * Value List Type: List
|
|
12595
|
+
* * Possible Values
|
|
12596
|
+
* * Active
|
|
12597
|
+
* * Expired
|
|
12598
|
+
* * Description: The status of this result, indicating whether it is currently active or expired.
|
|
12599
|
+
*/
|
|
12600
|
+
get Status() {
|
|
12601
|
+
return this.Get('Status');
|
|
12602
|
+
}
|
|
12603
|
+
set Status(value) {
|
|
12604
|
+
this.Set('Status', value);
|
|
12605
|
+
}
|
|
12606
|
+
/**
|
|
12607
|
+
* * Field Name: ExpiredOn
|
|
12608
|
+
* * Display Name: Expired On
|
|
12609
|
+
* * SQL Data Type: datetimeoffset
|
|
12610
|
+
* * Description: Timestamp of when this result was marked as expired.
|
|
12611
|
+
*/
|
|
12612
|
+
get ExpiredOn() {
|
|
12613
|
+
return this.Get('ExpiredOn');
|
|
12614
|
+
}
|
|
12615
|
+
set ExpiredOn(value) {
|
|
12616
|
+
this.Set('ExpiredOn', value);
|
|
12283
12617
|
}
|
|
12284
12618
|
/**
|
|
12285
12619
|
* * Field Name: __mj_CreatedAt
|
|
@@ -12299,11 +12633,27 @@ let AIAgentEntity = class AIAgentEntity extends core_1.BaseEntity {
|
|
|
12299
12633
|
get __mj_UpdatedAt() {
|
|
12300
12634
|
return this.Get('__mj_UpdatedAt');
|
|
12301
12635
|
}
|
|
12636
|
+
/**
|
|
12637
|
+
* * Field Name: AIPrompt
|
|
12638
|
+
* * Display Name: AIPrompt
|
|
12639
|
+
* * SQL Data Type: nvarchar(255)
|
|
12640
|
+
*/
|
|
12641
|
+
get AIPrompt() {
|
|
12642
|
+
return this.Get('AIPrompt');
|
|
12643
|
+
}
|
|
12644
|
+
/**
|
|
12645
|
+
* * Field Name: AIModel
|
|
12646
|
+
* * Display Name: AIModel
|
|
12647
|
+
* * SQL Data Type: nvarchar(50)
|
|
12648
|
+
*/
|
|
12649
|
+
get AIModel() {
|
|
12650
|
+
return this.Get('AIModel');
|
|
12651
|
+
}
|
|
12302
12652
|
};
|
|
12303
|
-
exports.
|
|
12304
|
-
exports.
|
|
12305
|
-
(0, global_1.RegisterClass)(core_1.BaseEntity, '
|
|
12306
|
-
],
|
|
12653
|
+
exports.AIResultCacheEntity = AIResultCacheEntity;
|
|
12654
|
+
exports.AIResultCacheEntity = AIResultCacheEntity = __decorate([
|
|
12655
|
+
(0, global_1.RegisterClass)(core_1.BaseEntity, 'AI Result Cache')
|
|
12656
|
+
], AIResultCacheEntity);
|
|
12307
12657
|
/**
|
|
12308
12658
|
* Application Entities - strongly typed entity sub-class
|
|
12309
12659
|
* * Schema: __mj
|