@memberjunction/core-entities 2.67.0 → 2.69.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.
|
@@ -432,6 +432,8 @@ export declare const AIAgentActionSchema: z.ZodObject<{
|
|
|
432
432
|
Status: z.ZodUnion<[z.ZodLiteral<"Pending">, z.ZodLiteral<"Active">, z.ZodLiteral<"Revoked">]>;
|
|
433
433
|
__mj_CreatedAt: z.ZodDate;
|
|
434
434
|
__mj_UpdatedAt: z.ZodDate;
|
|
435
|
+
MinExecutionsPerRun: z.ZodNullable<z.ZodNumber>;
|
|
436
|
+
MaxExecutionsPerRun: z.ZodNullable<z.ZodNumber>;
|
|
435
437
|
Agent: z.ZodNullable<z.ZodString>;
|
|
436
438
|
Action: z.ZodNullable<z.ZodString>;
|
|
437
439
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -442,6 +444,8 @@ export declare const AIAgentActionSchema: z.ZodObject<{
|
|
|
442
444
|
Action?: string;
|
|
443
445
|
Status?: "Active" | "Pending" | "Revoked";
|
|
444
446
|
AgentID?: string;
|
|
447
|
+
MinExecutionsPerRun?: number;
|
|
448
|
+
MaxExecutionsPerRun?: number;
|
|
445
449
|
Agent?: string;
|
|
446
450
|
}, {
|
|
447
451
|
ID?: string;
|
|
@@ -451,6 +455,8 @@ export declare const AIAgentActionSchema: z.ZodObject<{
|
|
|
451
455
|
Action?: string;
|
|
452
456
|
Status?: "Active" | "Pending" | "Revoked";
|
|
453
457
|
AgentID?: string;
|
|
458
|
+
MinExecutionsPerRun?: number;
|
|
459
|
+
MaxExecutionsPerRun?: number;
|
|
454
460
|
Agent?: string;
|
|
455
461
|
}>;
|
|
456
462
|
export type AIAgentActionEntityType = z.infer<typeof AIAgentActionSchema>;
|
|
@@ -668,6 +674,16 @@ export declare const AIAgentSchema: z.ZodObject<{
|
|
|
668
674
|
PayloadUpstreamPaths: z.ZodString;
|
|
669
675
|
PayloadSelfReadPaths: z.ZodNullable<z.ZodString>;
|
|
670
676
|
PayloadSelfWritePaths: z.ZodNullable<z.ZodString>;
|
|
677
|
+
PayloadScope: z.ZodNullable<z.ZodString>;
|
|
678
|
+
FinalPayloadValidation: z.ZodNullable<z.ZodString>;
|
|
679
|
+
FinalPayloadValidationMode: z.ZodUnion<[z.ZodLiteral<"Retry">, z.ZodLiteral<"Fail">, z.ZodLiteral<"Warn">]>;
|
|
680
|
+
FinalPayloadValidationMaxRetries: z.ZodNumber;
|
|
681
|
+
MaxCostPerRun: z.ZodNullable<z.ZodNumber>;
|
|
682
|
+
MaxTokensPerRun: z.ZodNullable<z.ZodNumber>;
|
|
683
|
+
MaxIterationsPerRun: z.ZodNullable<z.ZodNumber>;
|
|
684
|
+
MaxTimePerRun: z.ZodNullable<z.ZodNumber>;
|
|
685
|
+
MinExecutionsPerRun: z.ZodNullable<z.ZodNumber>;
|
|
686
|
+
MaxExecutionsPerRun: z.ZodNullable<z.ZodNumber>;
|
|
671
687
|
Parent: z.ZodNullable<z.ZodString>;
|
|
672
688
|
ContextCompressionPrompt: z.ZodNullable<z.ZodString>;
|
|
673
689
|
Type: z.ZodNullable<z.ZodString>;
|
|
@@ -683,6 +699,8 @@ export declare const AIAgentSchema: z.ZodObject<{
|
|
|
683
699
|
Type?: string;
|
|
684
700
|
DriverClass?: string;
|
|
685
701
|
IconClass?: string;
|
|
702
|
+
MinExecutionsPerRun?: number;
|
|
703
|
+
MaxExecutionsPerRun?: number;
|
|
686
704
|
LogoURL?: string;
|
|
687
705
|
ExposeAsAction?: boolean;
|
|
688
706
|
ExecutionOrder?: number;
|
|
@@ -697,6 +715,14 @@ export declare const AIAgentSchema: z.ZodObject<{
|
|
|
697
715
|
PayloadUpstreamPaths?: string;
|
|
698
716
|
PayloadSelfReadPaths?: string;
|
|
699
717
|
PayloadSelfWritePaths?: string;
|
|
718
|
+
PayloadScope?: string;
|
|
719
|
+
FinalPayloadValidation?: string;
|
|
720
|
+
FinalPayloadValidationMode?: "Retry" | "Fail" | "Warn";
|
|
721
|
+
FinalPayloadValidationMaxRetries?: number;
|
|
722
|
+
MaxCostPerRun?: number;
|
|
723
|
+
MaxTokensPerRun?: number;
|
|
724
|
+
MaxIterationsPerRun?: number;
|
|
725
|
+
MaxTimePerRun?: number;
|
|
700
726
|
ContextCompressionPrompt?: string;
|
|
701
727
|
}, {
|
|
702
728
|
ID?: string;
|
|
@@ -710,6 +736,8 @@ export declare const AIAgentSchema: z.ZodObject<{
|
|
|
710
736
|
Type?: string;
|
|
711
737
|
DriverClass?: string;
|
|
712
738
|
IconClass?: string;
|
|
739
|
+
MinExecutionsPerRun?: number;
|
|
740
|
+
MaxExecutionsPerRun?: number;
|
|
713
741
|
LogoURL?: string;
|
|
714
742
|
ExposeAsAction?: boolean;
|
|
715
743
|
ExecutionOrder?: number;
|
|
@@ -724,6 +752,14 @@ export declare const AIAgentSchema: z.ZodObject<{
|
|
|
724
752
|
PayloadUpstreamPaths?: string;
|
|
725
753
|
PayloadSelfReadPaths?: string;
|
|
726
754
|
PayloadSelfWritePaths?: string;
|
|
755
|
+
PayloadScope?: string;
|
|
756
|
+
FinalPayloadValidation?: string;
|
|
757
|
+
FinalPayloadValidationMode?: "Retry" | "Fail" | "Warn";
|
|
758
|
+
FinalPayloadValidationMaxRetries?: number;
|
|
759
|
+
MaxCostPerRun?: number;
|
|
760
|
+
MaxTokensPerRun?: number;
|
|
761
|
+
MaxIterationsPerRun?: number;
|
|
762
|
+
MaxTimePerRun?: number;
|
|
727
763
|
ContextCompressionPrompt?: string;
|
|
728
764
|
}>;
|
|
729
765
|
export type AIAgentEntityType = z.infer<typeof AIAgentSchema>;
|
|
@@ -948,9 +984,9 @@ export declare const AIPromptSchema: z.ZodObject<{
|
|
|
948
984
|
StopSequences: z.ZodNullable<z.ZodString>;
|
|
949
985
|
IncludeLogProbs: z.ZodNullable<z.ZodBoolean>;
|
|
950
986
|
TopLogProbs: z.ZodNullable<z.ZodNumber>;
|
|
987
|
+
FailoverStrategy: z.ZodString;
|
|
951
988
|
FailoverMaxAttempts: z.ZodNullable<z.ZodNumber>;
|
|
952
989
|
FailoverDelaySeconds: z.ZodNullable<z.ZodNumber>;
|
|
953
|
-
FailoverStrategy: z.ZodString;
|
|
954
990
|
FailoverModelStrategy: z.ZodString;
|
|
955
991
|
FailoverErrorScope: z.ZodString;
|
|
956
992
|
Template: z.ZodString;
|
|
@@ -982,7 +1018,7 @@ export declare const AIPromptSchema: z.ZodObject<{
|
|
|
982
1018
|
ParallelConfigParam?: string;
|
|
983
1019
|
OutputType?: "string" | "number" | "boolean" | "object" | "date";
|
|
984
1020
|
OutputExample?: string;
|
|
985
|
-
ValidationBehavior?: "
|
|
1021
|
+
ValidationBehavior?: "Warn" | "None" | "Strict";
|
|
986
1022
|
MaxRetries?: number;
|
|
987
1023
|
RetryDelayMS?: number;
|
|
988
1024
|
RetryStrategy?: "Fixed" | "Exponential" | "Linear";
|
|
@@ -1007,9 +1043,9 @@ export declare const AIPromptSchema: z.ZodObject<{
|
|
|
1007
1043
|
StopSequences?: string;
|
|
1008
1044
|
IncludeLogProbs?: boolean;
|
|
1009
1045
|
TopLogProbs?: number;
|
|
1046
|
+
FailoverStrategy?: string;
|
|
1010
1047
|
FailoverMaxAttempts?: number;
|
|
1011
1048
|
FailoverDelaySeconds?: number;
|
|
1012
|
-
FailoverStrategy?: string;
|
|
1013
1049
|
FailoverModelStrategy?: string;
|
|
1014
1050
|
FailoverErrorScope?: string;
|
|
1015
1051
|
Template?: string;
|
|
@@ -1038,7 +1074,7 @@ export declare const AIPromptSchema: z.ZodObject<{
|
|
|
1038
1074
|
ParallelConfigParam?: string;
|
|
1039
1075
|
OutputType?: "string" | "number" | "boolean" | "object" | "date";
|
|
1040
1076
|
OutputExample?: string;
|
|
1041
|
-
ValidationBehavior?: "
|
|
1077
|
+
ValidationBehavior?: "Warn" | "None" | "Strict";
|
|
1042
1078
|
MaxRetries?: number;
|
|
1043
1079
|
RetryDelayMS?: number;
|
|
1044
1080
|
RetryStrategy?: "Fixed" | "Exponential" | "Linear";
|
|
@@ -1063,9 +1099,9 @@ export declare const AIPromptSchema: z.ZodObject<{
|
|
|
1063
1099
|
StopSequences?: string;
|
|
1064
1100
|
IncludeLogProbs?: boolean;
|
|
1065
1101
|
TopLogProbs?: number;
|
|
1102
|
+
FailoverStrategy?: string;
|
|
1066
1103
|
FailoverMaxAttempts?: number;
|
|
1067
1104
|
FailoverDelaySeconds?: number;
|
|
1068
|
-
FailoverStrategy?: string;
|
|
1069
1105
|
FailoverModelStrategy?: string;
|
|
1070
1106
|
FailoverErrorScope?: string;
|
|
1071
1107
|
Template?: string;
|
|
@@ -4667,6 +4703,8 @@ export declare const AIAgentRunStepSchema: z.ZodObject<{
|
|
|
4667
4703
|
TargetLogID: z.ZodNullable<z.ZodString>;
|
|
4668
4704
|
PayloadAtStart: z.ZodNullable<z.ZodString>;
|
|
4669
4705
|
PayloadAtEnd: z.ZodNullable<z.ZodString>;
|
|
4706
|
+
FinalPayloadValidationResult: z.ZodNullable<z.ZodString>;
|
|
4707
|
+
FinalPayloadValidationMessages: z.ZodNullable<z.ZodString>;
|
|
4670
4708
|
}, "strip", z.ZodTypeAny, {
|
|
4671
4709
|
ID?: string;
|
|
4672
4710
|
__mj_CreatedAt?: Date;
|
|
@@ -4686,6 +4724,8 @@ export declare const AIAgentRunStepSchema: z.ZodObject<{
|
|
|
4686
4724
|
TargetLogID?: string;
|
|
4687
4725
|
PayloadAtStart?: string;
|
|
4688
4726
|
PayloadAtEnd?: string;
|
|
4727
|
+
FinalPayloadValidationResult?: string;
|
|
4728
|
+
FinalPayloadValidationMessages?: string;
|
|
4689
4729
|
}, {
|
|
4690
4730
|
ID?: string;
|
|
4691
4731
|
__mj_CreatedAt?: Date;
|
|
@@ -4705,6 +4745,8 @@ export declare const AIAgentRunStepSchema: z.ZodObject<{
|
|
|
4705
4745
|
TargetLogID?: string;
|
|
4706
4746
|
PayloadAtStart?: string;
|
|
4707
4747
|
PayloadAtEnd?: string;
|
|
4748
|
+
FinalPayloadValidationResult?: string;
|
|
4749
|
+
FinalPayloadValidationMessages?: string;
|
|
4708
4750
|
}>;
|
|
4709
4751
|
export type AIAgentRunStepEntityType = z.infer<typeof AIAgentRunStepSchema>;
|
|
4710
4752
|
/**
|
|
@@ -4741,6 +4783,7 @@ export declare const AIAgentRunSchema: z.ZodObject<{
|
|
|
4741
4783
|
Message: z.ZodNullable<z.ZodString>;
|
|
4742
4784
|
LastRunID: z.ZodNullable<z.ZodString>;
|
|
4743
4785
|
StartingPayload: z.ZodNullable<z.ZodString>;
|
|
4786
|
+
TotalPromptIterations: z.ZodNumber;
|
|
4744
4787
|
Agent: z.ZodNullable<z.ZodString>;
|
|
4745
4788
|
Conversation: z.ZodNullable<z.ZodString>;
|
|
4746
4789
|
User: z.ZodNullable<z.ZodString>;
|
|
@@ -4775,9 +4818,10 @@ export declare const AIAgentRunSchema: z.ZodObject<{
|
|
|
4775
4818
|
ConversationDetailID?: string;
|
|
4776
4819
|
ConversationDetailSequence?: number;
|
|
4777
4820
|
CancellationReason?: "System" | "User Request" | "Timeout";
|
|
4778
|
-
FinalStep?: "Failed" | "Success" | "Actions" | "Sub-Agent" | "Chat"
|
|
4821
|
+
FinalStep?: "Failed" | "Retry" | "Success" | "Actions" | "Sub-Agent" | "Chat";
|
|
4779
4822
|
FinalPayload?: string;
|
|
4780
4823
|
StartingPayload?: string;
|
|
4824
|
+
TotalPromptIterations?: number;
|
|
4781
4825
|
}, {
|
|
4782
4826
|
ID?: string;
|
|
4783
4827
|
__mj_CreatedAt?: Date;
|
|
@@ -4809,9 +4853,10 @@ export declare const AIAgentRunSchema: z.ZodObject<{
|
|
|
4809
4853
|
ConversationDetailID?: string;
|
|
4810
4854
|
ConversationDetailSequence?: number;
|
|
4811
4855
|
CancellationReason?: "System" | "User Request" | "Timeout";
|
|
4812
|
-
FinalStep?: "Failed" | "Success" | "Actions" | "Sub-Agent" | "Chat"
|
|
4856
|
+
FinalStep?: "Failed" | "Retry" | "Success" | "Actions" | "Sub-Agent" | "Chat";
|
|
4813
4857
|
FinalPayload?: string;
|
|
4814
4858
|
StartingPayload?: string;
|
|
4859
|
+
TotalPromptIterations?: number;
|
|
4815
4860
|
}>;
|
|
4816
4861
|
export type AIAgentRunEntityType = z.infer<typeof AIAgentRunSchema>;
|
|
4817
4862
|
/**
|
|
@@ -5230,9 +5275,9 @@ export declare const AIPromptRunSchema: z.ZodObject<{
|
|
|
5230
5275
|
FailoverAttempts: z.ZodNullable<z.ZodNumber>;
|
|
5231
5276
|
FailoverErrors: z.ZodNullable<z.ZodString>;
|
|
5232
5277
|
FailoverDurations: z.ZodNullable<z.ZodString>;
|
|
5278
|
+
OriginalModelID: z.ZodNullable<z.ZodString>;
|
|
5233
5279
|
OriginalRequestStartTime: z.ZodNullable<z.ZodDate>;
|
|
5234
5280
|
TotalFailoverDuration: z.ZodNullable<z.ZodNumber>;
|
|
5235
|
-
OriginalModelID: z.ZodNullable<z.ZodString>;
|
|
5236
5281
|
Prompt: z.ZodString;
|
|
5237
5282
|
Model: z.ZodString;
|
|
5238
5283
|
Vendor: z.ZodString;
|
|
@@ -5302,9 +5347,9 @@ export declare const AIPromptRunSchema: z.ZodObject<{
|
|
|
5302
5347
|
FailoverAttempts?: number;
|
|
5303
5348
|
FailoverErrors?: string;
|
|
5304
5349
|
FailoverDurations?: string;
|
|
5350
|
+
OriginalModelID?: string;
|
|
5305
5351
|
OriginalRequestStartTime?: Date;
|
|
5306
5352
|
TotalFailoverDuration?: number;
|
|
5307
|
-
OriginalModelID?: string;
|
|
5308
5353
|
OriginalModel?: string;
|
|
5309
5354
|
}, {
|
|
5310
5355
|
ID?: string;
|
|
@@ -5369,9 +5414,9 @@ export declare const AIPromptRunSchema: z.ZodObject<{
|
|
|
5369
5414
|
FailoverAttempts?: number;
|
|
5370
5415
|
FailoverErrors?: string;
|
|
5371
5416
|
FailoverDurations?: string;
|
|
5417
|
+
OriginalModelID?: string;
|
|
5372
5418
|
OriginalRequestStartTime?: Date;
|
|
5373
5419
|
TotalFailoverDuration?: number;
|
|
5374
|
-
OriginalModelID?: string;
|
|
5375
5420
|
OriginalModel?: string;
|
|
5376
5421
|
}>;
|
|
5377
5422
|
export type AIPromptRunEntityType = z.infer<typeof AIPromptRunSchema>;
|
|
@@ -9186,6 +9231,37 @@ export declare class AIAgentActionEntity extends BaseEntity<AIAgentActionEntityT
|
|
|
9186
9231
|
*/
|
|
9187
9232
|
Load(ID: string, EntityRelationshipsToLoad?: string[]): Promise<boolean>;
|
|
9188
9233
|
/**
|
|
9234
|
+
* Validate() method override for AI Agent Actions entity. This is an auto-generated method that invokes the generated validators for this entity for the following fields:
|
|
9235
|
+
* * MaxExecutionsPerRun: This rule ensures that if a value for the maximum number of executions per run is provided, it must be greater than zero. If no value is provided, that's acceptable.
|
|
9236
|
+
* * Table-Level: This rule ensures that the minimum number of executions per run cannot be greater than the maximum number of executions per run. If either value is not specified, the rule is considered satisfied.
|
|
9237
|
+
* * MinExecutionsPerRun: This rule ensures that if a value for 'Minimum Executions Per Run' is provided, it must be zero or greater. If the value is not provided (left blank), that's also allowed.
|
|
9238
|
+
* @public
|
|
9239
|
+
* @method
|
|
9240
|
+
* @override
|
|
9241
|
+
*/
|
|
9242
|
+
Validate(): ValidationResult;
|
|
9243
|
+
/**
|
|
9244
|
+
* This rule ensures that if a value for the maximum number of executions per run is provided, it must be greater than zero. If no value is provided, that's acceptable.
|
|
9245
|
+
* @param result - the ValidationResult object to add any errors or warnings to
|
|
9246
|
+
* @public
|
|
9247
|
+
* @method
|
|
9248
|
+
*/
|
|
9249
|
+
ValidateMaxExecutionsPerRunGreaterThanZero(result: ValidationResult): void;
|
|
9250
|
+
/**
|
|
9251
|
+
* This rule ensures that the minimum number of executions per run cannot be greater than the maximum number of executions per run. If either value is not specified, the rule is considered satisfied.
|
|
9252
|
+
* @param result - the ValidationResult object to add any errors or warnings to
|
|
9253
|
+
* @public
|
|
9254
|
+
* @method
|
|
9255
|
+
*/
|
|
9256
|
+
ValidateMinExecutionsPerRunLessThanOrEqualToMax(result: ValidationResult): void;
|
|
9257
|
+
/**
|
|
9258
|
+
* This rule ensures that if a value for 'Minimum Executions Per Run' is provided, it must be zero or greater. If the value is not provided (left blank), that's also allowed.
|
|
9259
|
+
* @param result - the ValidationResult object to add any errors or warnings to
|
|
9260
|
+
* @public
|
|
9261
|
+
* @method
|
|
9262
|
+
*/
|
|
9263
|
+
ValidateMinExecutionsPerRunIsNonNegative(result: ValidationResult): void;
|
|
9264
|
+
/**
|
|
9189
9265
|
* * Field Name: ID
|
|
9190
9266
|
* * Display Name: ID
|
|
9191
9267
|
* * SQL Data Type: uniqueidentifier
|
|
@@ -9240,6 +9316,22 @@ export declare class AIAgentActionEntity extends BaseEntity<AIAgentActionEntityT
|
|
|
9240
9316
|
*/
|
|
9241
9317
|
get __mj_UpdatedAt(): Date;
|
|
9242
9318
|
/**
|
|
9319
|
+
* * Field Name: MinExecutionsPerRun
|
|
9320
|
+
* * Display Name: Min Executions Per Run
|
|
9321
|
+
* * SQL Data Type: int
|
|
9322
|
+
* * Description: Minimum number of times this action must be executed per agent run
|
|
9323
|
+
*/
|
|
9324
|
+
get MinExecutionsPerRun(): number | null;
|
|
9325
|
+
set MinExecutionsPerRun(value: number | null);
|
|
9326
|
+
/**
|
|
9327
|
+
* * Field Name: MaxExecutionsPerRun
|
|
9328
|
+
* * Display Name: Max Executions Per Run
|
|
9329
|
+
* * SQL Data Type: int
|
|
9330
|
+
* * Description: Maximum number of times this action can be executed per agent run
|
|
9331
|
+
*/
|
|
9332
|
+
get MaxExecutionsPerRun(): number | null;
|
|
9333
|
+
set MaxExecutionsPerRun(value: number | null);
|
|
9334
|
+
/**
|
|
9243
9335
|
* * Field Name: Agent
|
|
9244
9336
|
* * Display Name: Agent
|
|
9245
9337
|
* * SQL Data Type: nvarchar(255)
|
|
@@ -9790,6 +9882,9 @@ export declare class AIAgentEntity extends BaseEntity<AIAgentEntityType> {
|
|
|
9790
9882
|
* Validate() method override for AI Agents entity. This is an auto-generated method that invokes the generated validators for this entity for the following fields:
|
|
9791
9883
|
* * Table-Level: This rule makes sure that if the ParentID is set (not empty), then the ExposeAsAction option must be disabled. If ExposeAsAction is enabled, ParentID must be empty.
|
|
9792
9884
|
* * Table-Level: This rule ensures that if context compression is enabled, all related settings (message threshold, prompt ID, and message retention count) must be specified. If context compression is not enabled, these settings may be left unspecified.
|
|
9885
|
+
* * MinExecutionsPerRun: This rule ensures that if the minimum executions per run value is provided, it must be zero or greater.
|
|
9886
|
+
* * Table-Level: This rule ensures that if both 'Minimum Executions Per Run' and 'Maximum Executions Per Run' are specified, the minimum must not be greater than the maximum. If either field is not specified, this rule does not apply.
|
|
9887
|
+
* * MaxExecutionsPerRun: This rule ensures that the maximum number of executions per run can either be left blank (unspecified) or, if provided, it must be a positive number greater than zero.
|
|
9793
9888
|
* @public
|
|
9794
9889
|
* @method
|
|
9795
9890
|
* @override
|
|
@@ -9810,6 +9905,27 @@ export declare class AIAgentEntity extends BaseEntity<AIAgentEntityType> {
|
|
|
9810
9905
|
*/
|
|
9811
9906
|
ValidateEnableContextCompressionRequiresContextFields(result: ValidationResult): void;
|
|
9812
9907
|
/**
|
|
9908
|
+
* This rule ensures that if the minimum executions per run value is provided, it must be zero or greater.
|
|
9909
|
+
* @param result - the ValidationResult object to add any errors or warnings to
|
|
9910
|
+
* @public
|
|
9911
|
+
* @method
|
|
9912
|
+
*/
|
|
9913
|
+
ValidateMinExecutionsPerRunIsNonNegative(result: ValidationResult): void;
|
|
9914
|
+
/**
|
|
9915
|
+
* This rule ensures that if both 'Minimum Executions Per Run' and 'Maximum Executions Per Run' are specified, the minimum must not be greater than the maximum. If either field is not specified, this rule does not apply.
|
|
9916
|
+
* @param result - the ValidationResult object to add any errors or warnings to
|
|
9917
|
+
* @public
|
|
9918
|
+
* @method
|
|
9919
|
+
*/
|
|
9920
|
+
ValidateMinExecutionsPerRunLessThanOrEqualToMaxExecutionsPerRun(result: ValidationResult): void;
|
|
9921
|
+
/**
|
|
9922
|
+
* This rule ensures that the maximum number of executions per run can either be left blank (unspecified) or, if provided, it must be a positive number greater than zero.
|
|
9923
|
+
* @param result - the ValidationResult object to add any errors or warnings to
|
|
9924
|
+
* @public
|
|
9925
|
+
* @method
|
|
9926
|
+
*/
|
|
9927
|
+
ValidateMaxExecutionsPerRunIsNullOrPositive(result: ValidationResult): void;
|
|
9928
|
+
/**
|
|
9813
9929
|
* * Field Name: ID
|
|
9814
9930
|
* * Display Name: ID
|
|
9815
9931
|
* * SQL Data Type: uniqueidentifier
|
|
@@ -10012,6 +10128,98 @@ data flow when the agent executes its own prompt step.
|
|
|
10012
10128
|
get PayloadSelfWritePaths(): string | null;
|
|
10013
10129
|
set PayloadSelfWritePaths(value: string | null);
|
|
10014
10130
|
/**
|
|
10131
|
+
* * Field Name: PayloadScope
|
|
10132
|
+
* * Display Name: Payload Scope
|
|
10133
|
+
* * SQL Data Type: nvarchar(MAX)
|
|
10134
|
+
* * Description: Defines the scope/path within the parent payload that this sub-agent operates on. When set, the sub-agent receives only this portion of the payload and all change requests are relative to this scope. Format: /path/to/scope (e.g. /PropA/SubProp1)
|
|
10135
|
+
*/
|
|
10136
|
+
get PayloadScope(): string | null;
|
|
10137
|
+
set PayloadScope(value: string | null);
|
|
10138
|
+
/**
|
|
10139
|
+
* * Field Name: FinalPayloadValidation
|
|
10140
|
+
* * Display Name: Final Payload Validation
|
|
10141
|
+
* * SQL Data Type: nvarchar(MAX)
|
|
10142
|
+
* * Description: Optional JSON schema or requirements that define the expected structure and content of the agent's final payload. Used to validate the output when the agent declares success. Similar to OutputExample in AI Prompts.
|
|
10143
|
+
*/
|
|
10144
|
+
get FinalPayloadValidation(): string | null;
|
|
10145
|
+
set FinalPayloadValidation(value: string | null);
|
|
10146
|
+
/**
|
|
10147
|
+
* * Field Name: FinalPayloadValidationMode
|
|
10148
|
+
* * Display Name: Final Payload Validation Mode
|
|
10149
|
+
* * SQL Data Type: nvarchar(25)
|
|
10150
|
+
* * Default Value: Retry
|
|
10151
|
+
* * Value List Type: List
|
|
10152
|
+
* * Possible Values
|
|
10153
|
+
* * Retry
|
|
10154
|
+
* * Fail
|
|
10155
|
+
* * Warn
|
|
10156
|
+
* * Description: Determines how to handle validation failures when FinalPayloadValidation is specified. Options: Retry (default) - retry the agent with validation feedback, Fail - fail the agent run immediately, Warn - log a warning but allow success.
|
|
10157
|
+
*/
|
|
10158
|
+
get FinalPayloadValidationMode(): 'Retry' | 'Fail' | 'Warn';
|
|
10159
|
+
set FinalPayloadValidationMode(value: 'Retry' | 'Fail' | 'Warn');
|
|
10160
|
+
/**
|
|
10161
|
+
* * Field Name: FinalPayloadValidationMaxRetries
|
|
10162
|
+
* * Display Name: Final Payload Validation Max Retries
|
|
10163
|
+
* * SQL Data Type: int
|
|
10164
|
+
* * Default Value: 3
|
|
10165
|
+
* * Description: Maximum number of retry attempts allowed when FinalPayloadValidation fails with
|
|
10166
|
+
Retry mode. After reaching this limit, the validation will fail permanently.
|
|
10167
|
+
*/
|
|
10168
|
+
get FinalPayloadValidationMaxRetries(): number;
|
|
10169
|
+
set FinalPayloadValidationMaxRetries(value: number);
|
|
10170
|
+
/**
|
|
10171
|
+
* * Field Name: MaxCostPerRun
|
|
10172
|
+
* * Display Name: Max Cost Per Run
|
|
10173
|
+
* * SQL Data Type: decimal(10, 4)
|
|
10174
|
+
* * Description: Maximum cost in dollars allowed for a single agent run. Run will be terminated
|
|
10175
|
+
if this limit is exceeded.
|
|
10176
|
+
*/
|
|
10177
|
+
get MaxCostPerRun(): number | null;
|
|
10178
|
+
set MaxCostPerRun(value: number | null);
|
|
10179
|
+
/**
|
|
10180
|
+
* * Field Name: MaxTokensPerRun
|
|
10181
|
+
* * Display Name: Max Tokens Per Run
|
|
10182
|
+
* * SQL Data Type: int
|
|
10183
|
+
* * Description: Maximum total tokens (input + output) allowed for a single agent run. Run will
|
|
10184
|
+
be terminated if this limit is exceeded.
|
|
10185
|
+
*/
|
|
10186
|
+
get MaxTokensPerRun(): number | null;
|
|
10187
|
+
set MaxTokensPerRun(value: number | null);
|
|
10188
|
+
/**
|
|
10189
|
+
* * Field Name: MaxIterationsPerRun
|
|
10190
|
+
* * Display Name: Max Iterations Per Run
|
|
10191
|
+
* * SQL Data Type: int
|
|
10192
|
+
* * Description: Maximum number of prompt iterations allowed for a single agent run. Run will be
|
|
10193
|
+
terminated if this limit is exceeded.
|
|
10194
|
+
*/
|
|
10195
|
+
get MaxIterationsPerRun(): number | null;
|
|
10196
|
+
set MaxIterationsPerRun(value: number | null);
|
|
10197
|
+
/**
|
|
10198
|
+
* * Field Name: MaxTimePerRun
|
|
10199
|
+
* * Display Name: Max Time Per Run
|
|
10200
|
+
* * SQL Data Type: int
|
|
10201
|
+
* * Description: Maximum time in seconds allowed for a single agent run. Run will be terminated
|
|
10202
|
+
if this limit is exceeded.
|
|
10203
|
+
*/
|
|
10204
|
+
get MaxTimePerRun(): number | null;
|
|
10205
|
+
set MaxTimePerRun(value: number | null);
|
|
10206
|
+
/**
|
|
10207
|
+
* * Field Name: MinExecutionsPerRun
|
|
10208
|
+
* * Display Name: Min Executions Per Run
|
|
10209
|
+
* * SQL Data Type: int
|
|
10210
|
+
* * Description: When acting as a sub-agent, minimum number of times this agent must be executed per parent agent run
|
|
10211
|
+
*/
|
|
10212
|
+
get MinExecutionsPerRun(): number | null;
|
|
10213
|
+
set MinExecutionsPerRun(value: number | null);
|
|
10214
|
+
/**
|
|
10215
|
+
* * Field Name: MaxExecutionsPerRun
|
|
10216
|
+
* * Display Name: Max Executions Per Run
|
|
10217
|
+
* * SQL Data Type: int
|
|
10218
|
+
* * Description: When acting as a sub-agent, maximum number of times this agent can be executed per parent agent run
|
|
10219
|
+
*/
|
|
10220
|
+
get MaxExecutionsPerRun(): number | null;
|
|
10221
|
+
set MaxExecutionsPerRun(value: number | null);
|
|
10222
|
+
/**
|
|
10015
10223
|
* * Field Name: Parent
|
|
10016
10224
|
* * Display Name: Parent
|
|
10017
10225
|
* * SQL Data Type: nvarchar(255)
|
|
@@ -10529,11 +10737,11 @@ export declare class AIPromptEntity extends BaseEntity<AIPromptEntityType> {
|
|
|
10529
10737
|
Load(ID: string, EntityRelationshipsToLoad?: string[]): Promise<boolean>;
|
|
10530
10738
|
/**
|
|
10531
10739
|
* Validate() method override for AI Prompts entity. This is an auto-generated method that invokes the generated validators for this entity for the following fields:
|
|
10532
|
-
* * CacheSimilarityThreshold: This rule ensures that if a cache similarity threshold is provided, it must be a value between 0 and 1, inclusive. If no value is provided, that's also allowed.
|
|
10533
|
-
* * CacheTTLSeconds: This rule ensures that if the cache expiration time in seconds is provided, it must be greater than zero.
|
|
10534
10740
|
* * FailoverStrategy: This rule ensures that the FailoverStrategy field, if specified, must be either 'None', 'PowerRank', 'NextBestModel', 'SameModelDifferentVendor', or left blank (unset).
|
|
10535
10741
|
* * FailoverModelStrategy: This rule ensures that the value for FailoverModelStrategy is either 'RequireSameModel', 'PreferDifferentModel', 'PreferSameModel', or left blank (not set). Any other value is not allowed.
|
|
10536
10742
|
* * FailoverErrorScope: This rule ensures that the FailoverErrorScope field can only be set to 'ServiceErrorOnly', 'RateLimitOnly', 'NetworkOnly', 'All', or left empty.
|
|
10743
|
+
* * CacheSimilarityThreshold: This rule ensures that if a cache similarity threshold is provided, it must be a value between 0 and 1, inclusive. If no value is provided, that's also allowed.
|
|
10744
|
+
* * CacheTTLSeconds: This rule ensures that if the cache expiration time in seconds is provided, it must be greater than zero.
|
|
10537
10745
|
* * Table-Level: This rule ensures that the ResultSelectorPromptID field must be different from the ID field. In other words, a result selector prompt cannot reference itself.
|
|
10538
10746
|
* * Table-Level: This rule ensures that if the cache match type is set to 'Vector', the cache similarity threshold must be specified. If the match type is anything other than 'Vector', the similarity threshold can be left empty.
|
|
10539
10747
|
* * Table-Level: This rule ensures that if the parallelization mode is set to 'StaticCount', then the number of parallel tasks (ParallelCount) must be provided.
|
|
@@ -10545,40 +10753,40 @@ export declare class AIPromptEntity extends BaseEntity<AIPromptEntityType> {
|
|
|
10545
10753
|
*/
|
|
10546
10754
|
Validate(): ValidationResult;
|
|
10547
10755
|
/**
|
|
10548
|
-
* This rule ensures that
|
|
10756
|
+
* This rule ensures that the FailoverStrategy field, if specified, must be either 'None', 'PowerRank', 'NextBestModel', 'SameModelDifferentVendor', or left blank (unset).
|
|
10549
10757
|
* @param result - the ValidationResult object to add any errors or warnings to
|
|
10550
10758
|
* @public
|
|
10551
10759
|
* @method
|
|
10552
10760
|
*/
|
|
10553
|
-
|
|
10761
|
+
ValidateFailoverStrategyAllowedValues(result: ValidationResult): void;
|
|
10554
10762
|
/**
|
|
10555
|
-
* This rule ensures that
|
|
10763
|
+
* This rule ensures that the value for FailoverModelStrategy is either 'RequireSameModel', 'PreferDifferentModel', 'PreferSameModel', or left blank (not set). Any other value is not allowed.
|
|
10556
10764
|
* @param result - the ValidationResult object to add any errors or warnings to
|
|
10557
10765
|
* @public
|
|
10558
10766
|
* @method
|
|
10559
10767
|
*/
|
|
10560
|
-
|
|
10768
|
+
ValidateFailoverModelStrategyAgainstAllowedValues(result: ValidationResult): void;
|
|
10561
10769
|
/**
|
|
10562
|
-
* This rule ensures that the
|
|
10770
|
+
* This rule ensures that the FailoverErrorScope field can only be set to 'ServiceErrorOnly', 'RateLimitOnly', 'NetworkOnly', 'All', or left empty.
|
|
10563
10771
|
* @param result - the ValidationResult object to add any errors or warnings to
|
|
10564
10772
|
* @public
|
|
10565
10773
|
* @method
|
|
10566
10774
|
*/
|
|
10567
|
-
|
|
10775
|
+
ValidateFailoverErrorScopeAgainstAllowedValues(result: ValidationResult): void;
|
|
10568
10776
|
/**
|
|
10569
|
-
* This rule ensures that
|
|
10777
|
+
* This rule ensures that if a cache similarity threshold is provided, it must be a value between 0 and 1, inclusive. If no value is provided, that's also allowed.
|
|
10570
10778
|
* @param result - the ValidationResult object to add any errors or warnings to
|
|
10571
10779
|
* @public
|
|
10572
10780
|
* @method
|
|
10573
10781
|
*/
|
|
10574
|
-
|
|
10782
|
+
ValidateCacheSimilarityThresholdIsBetweenZeroAndOne(result: ValidationResult): void;
|
|
10575
10783
|
/**
|
|
10576
|
-
* This rule ensures that the
|
|
10784
|
+
* This rule ensures that if the cache expiration time in seconds is provided, it must be greater than zero.
|
|
10577
10785
|
* @param result - the ValidationResult object to add any errors or warnings to
|
|
10578
10786
|
* @public
|
|
10579
10787
|
* @method
|
|
10580
10788
|
*/
|
|
10581
|
-
|
|
10789
|
+
ValidateCacheTTLSecondsGreaterThanZero(result: ValidationResult): void;
|
|
10582
10790
|
/**
|
|
10583
10791
|
* This rule ensures that the ResultSelectorPromptID field must be different from the ID field. In other words, a result selector prompt cannot reference itself.
|
|
10584
10792
|
* @param result - the ValidationResult object to add any errors or warnings to
|
|
@@ -11054,6 +11262,15 @@ export declare class AIPromptEntity extends BaseEntity<AIPromptEntityType> {
|
|
|
11054
11262
|
get TopLogProbs(): number | null;
|
|
11055
11263
|
set TopLogProbs(value: number | null);
|
|
11056
11264
|
/**
|
|
11265
|
+
* * Field Name: FailoverStrategy
|
|
11266
|
+
* * Display Name: Failover Strategy
|
|
11267
|
+
* * SQL Data Type: nvarchar(50)
|
|
11268
|
+
* * Default Value: SameModelDifferentVendor
|
|
11269
|
+
* * Description: Failover strategy to use when the primary model fails. Options: SameModelDifferentVendor, NextBestModel, PowerRank, None
|
|
11270
|
+
*/
|
|
11271
|
+
get FailoverStrategy(): string;
|
|
11272
|
+
set FailoverStrategy(value: string);
|
|
11273
|
+
/**
|
|
11057
11274
|
* * Field Name: FailoverMaxAttempts
|
|
11058
11275
|
* * Display Name: Failover Max Attempts
|
|
11059
11276
|
* * SQL Data Type: int
|
|
@@ -11072,15 +11289,6 @@ export declare class AIPromptEntity extends BaseEntity<AIPromptEntityType> {
|
|
|
11072
11289
|
get FailoverDelaySeconds(): number | null;
|
|
11073
11290
|
set FailoverDelaySeconds(value: number | null);
|
|
11074
11291
|
/**
|
|
11075
|
-
* * Field Name: FailoverStrategy
|
|
11076
|
-
* * Display Name: Failover Strategy
|
|
11077
|
-
* * SQL Data Type: nvarchar(50)
|
|
11078
|
-
* * Default Value: SameModelDifferentVendor
|
|
11079
|
-
* * Description: Failover strategy to use when the primary model fails. Options: SameModelDifferentVendor, NextBestModel, PowerRank, None
|
|
11080
|
-
*/
|
|
11081
|
-
get FailoverStrategy(): string;
|
|
11082
|
-
set FailoverStrategy(value: string);
|
|
11083
|
-
/**
|
|
11084
11292
|
* * Field Name: FailoverModelStrategy
|
|
11085
11293
|
* * Display Name: Failover Model Strategy
|
|
11086
11294
|
* * SQL Data Type: nvarchar(50)
|
|
@@ -20658,6 +20866,7 @@ export declare class AIAgentRunStepEntity extends BaseEntity<AIAgentRunStepEntit
|
|
|
20658
20866
|
/**
|
|
20659
20867
|
* Validate() method override for MJ: AI Agent Run Steps entity. This is an auto-generated method that invokes the generated validators for this entity for the following fields:
|
|
20660
20868
|
* * StepNumber: This rule ensures that the step number must always be greater than zero.
|
|
20869
|
+
* * FinalPayloadValidationResult: This rule ensures that the FinalPayloadValidationResult field is either left blank or is set to one of the following values: 'Warn', 'Fail', 'Retry', or 'Pass'. No other values are allowed.
|
|
20661
20870
|
* @public
|
|
20662
20871
|
* @method
|
|
20663
20872
|
* @override
|
|
@@ -20671,6 +20880,13 @@ export declare class AIAgentRunStepEntity extends BaseEntity<AIAgentRunStepEntit
|
|
|
20671
20880
|
*/
|
|
20672
20881
|
ValidateStepNumberGreaterThanZero(result: ValidationResult): void;
|
|
20673
20882
|
/**
|
|
20883
|
+
* This rule ensures that the FinalPayloadValidationResult field is either left blank or is set to one of the following values: 'Warn', 'Fail', 'Retry', or 'Pass'. No other values are allowed.
|
|
20884
|
+
* @param result - the ValidationResult object to add any errors or warnings to
|
|
20885
|
+
* @public
|
|
20886
|
+
* @method
|
|
20887
|
+
*/
|
|
20888
|
+
ValidateFinalPayloadValidationResultAllowedValues(result: ValidationResult): void;
|
|
20889
|
+
/**
|
|
20674
20890
|
* * Field Name: ID
|
|
20675
20891
|
* * Display Name: ID
|
|
20676
20892
|
* * SQL Data Type: uniqueidentifier
|
|
@@ -20831,6 +21047,25 @@ export declare class AIAgentRunStepEntity extends BaseEntity<AIAgentRunStepEntit
|
|
|
20831
21047
|
*/
|
|
20832
21048
|
get PayloadAtEnd(): string | null;
|
|
20833
21049
|
set PayloadAtEnd(value: string | null);
|
|
21050
|
+
/**
|
|
21051
|
+
* * Field Name: FinalPayloadValidationResult
|
|
21052
|
+
* * Display Name: Final Payload Validation Result
|
|
21053
|
+
* * SQL Data Type: nvarchar(25)
|
|
21054
|
+
* * Description: Result of the final payload validation for this step. Pass indicates successful
|
|
21055
|
+
validation, Retry means validation failed but will retry, Fail means validation failed
|
|
21056
|
+
permanently, Warn means validation failed but execution continues.
|
|
21057
|
+
*/
|
|
21058
|
+
get FinalPayloadValidationResult(): string | null;
|
|
21059
|
+
set FinalPayloadValidationResult(value: string | null);
|
|
21060
|
+
/**
|
|
21061
|
+
* * Field Name: FinalPayloadValidationMessages
|
|
21062
|
+
* * Display Name: Final Payload Validation Messages
|
|
21063
|
+
* * SQL Data Type: nvarchar(MAX)
|
|
21064
|
+
* * Description: Validation error messages or warnings from final payload validation. Contains
|
|
21065
|
+
detailed information about what validation rules failed.
|
|
21066
|
+
*/
|
|
21067
|
+
get FinalPayloadValidationMessages(): string | null;
|
|
21068
|
+
set FinalPayloadValidationMessages(value: string | null);
|
|
20834
21069
|
}
|
|
20835
21070
|
/**
|
|
20836
21071
|
* MJ: AI Agent Runs - strongly typed entity sub-class
|
|
@@ -21127,6 +21362,16 @@ export declare class AIAgentRunEntity extends BaseEntity<AIAgentRunEntityType> {
|
|
|
21127
21362
|
get StartingPayload(): string | null;
|
|
21128
21363
|
set StartingPayload(value: string | null);
|
|
21129
21364
|
/**
|
|
21365
|
+
* * Field Name: TotalPromptIterations
|
|
21366
|
+
* * Display Name: Total Prompt Iterations
|
|
21367
|
+
* * SQL Data Type: int
|
|
21368
|
+
* * Default Value: 0
|
|
21369
|
+
* * Description: Total number of prompt iterations executed during this agent run. Incremented
|
|
21370
|
+
each time the agent processes a prompt step.
|
|
21371
|
+
*/
|
|
21372
|
+
get TotalPromptIterations(): number;
|
|
21373
|
+
set TotalPromptIterations(value: number);
|
|
21374
|
+
/**
|
|
21130
21375
|
* * Field Name: Agent
|
|
21131
21376
|
* * Display Name: Agent
|
|
21132
21377
|
* * SQL Data Type: nvarchar(255)
|
|
@@ -22805,6 +23050,15 @@ export declare class AIPromptRunEntity extends BaseEntity<AIPromptRunEntityType>
|
|
|
22805
23050
|
get FailoverDurations(): string | null;
|
|
22806
23051
|
set FailoverDurations(value: string | null);
|
|
22807
23052
|
/**
|
|
23053
|
+
* * Field Name: OriginalModelID
|
|
23054
|
+
* * Display Name: Original Model ID
|
|
23055
|
+
* * SQL Data Type: uniqueidentifier
|
|
23056
|
+
* * Related Entity/Foreign Key: AI Models (vwAIModels.ID)
|
|
23057
|
+
* * Description: The AI Model ID that was originally attempted before any failovers
|
|
23058
|
+
*/
|
|
23059
|
+
get OriginalModelID(): string | null;
|
|
23060
|
+
set OriginalModelID(value: string | null);
|
|
23061
|
+
/**
|
|
22808
23062
|
* * Field Name: OriginalRequestStartTime
|
|
22809
23063
|
* * Display Name: Original Request Start Time
|
|
22810
23064
|
* * SQL Data Type: datetime
|
|
@@ -22821,15 +23075,6 @@ export declare class AIPromptRunEntity extends BaseEntity<AIPromptRunEntityType>
|
|
|
22821
23075
|
get TotalFailoverDuration(): number | null;
|
|
22822
23076
|
set TotalFailoverDuration(value: number | null);
|
|
22823
23077
|
/**
|
|
22824
|
-
* * Field Name: OriginalModelID
|
|
22825
|
-
* * Display Name: Original Model ID
|
|
22826
|
-
* * SQL Data Type: uniqueidentifier
|
|
22827
|
-
* * Related Entity/Foreign Key: AI Models (vwAIModels.ID)
|
|
22828
|
-
* * Description: The AI Model ID that was originally attempted before any failovers
|
|
22829
|
-
*/
|
|
22830
|
-
get OriginalModelID(): string | null;
|
|
22831
|
-
set OriginalModelID(value: string | null);
|
|
22832
|
-
/**
|
|
22833
23078
|
* * Field Name: Prompt
|
|
22834
23079
|
* * Display Name: Prompt
|
|
22835
23080
|
* * SQL Data Type: nvarchar(255)
|