@memberjunction/core-entities 2.71.0 → 2.72.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.
|
@@ -1152,32 +1152,32 @@ data flow when the agent executes its own prompt step.`),
|
|
|
1152
1152
|
* * Display Name: Final Payload Validation Max Retries
|
|
1153
1153
|
* * SQL Data Type: int
|
|
1154
1154
|
* * Default Value: 3
|
|
1155
|
-
* * Description: Maximum number of retry attempts allowed when FinalPayloadValidation fails with
|
|
1155
|
+
* * Description: Maximum number of retry attempts allowed when FinalPayloadValidation fails with
|
|
1156
1156
|
Retry mode. After reaching this limit, the validation will fail permanently.`),
|
|
1157
1157
|
MaxCostPerRun: zod_1.z.number().nullable().describe(`
|
|
1158
1158
|
* * Field Name: MaxCostPerRun
|
|
1159
1159
|
* * Display Name: Max Cost Per Run
|
|
1160
1160
|
* * SQL Data Type: decimal(10, 4)
|
|
1161
|
-
* * Description: Maximum cost in dollars allowed for a single agent run. Run will be terminated
|
|
1162
|
-
|
|
1161
|
+
* * Description: Maximum cost in dollars allowed for a single agent run. Run will be terminated
|
|
1162
|
+
if this limit is exceeded.`),
|
|
1163
1163
|
MaxTokensPerRun: zod_1.z.number().nullable().describe(`
|
|
1164
1164
|
* * Field Name: MaxTokensPerRun
|
|
1165
1165
|
* * Display Name: Max Tokens Per Run
|
|
1166
1166
|
* * SQL Data Type: int
|
|
1167
|
-
* * Description: Maximum total tokens (input + output) allowed for a single agent run. Run will
|
|
1168
|
-
|
|
1167
|
+
* * Description: Maximum total tokens (input + output) allowed for a single agent run. Run will
|
|
1168
|
+
be terminated if this limit is exceeded.`),
|
|
1169
1169
|
MaxIterationsPerRun: zod_1.z.number().nullable().describe(`
|
|
1170
1170
|
* * Field Name: MaxIterationsPerRun
|
|
1171
1171
|
* * Display Name: Max Iterations Per Run
|
|
1172
1172
|
* * SQL Data Type: int
|
|
1173
|
-
* * Description: Maximum number of prompt iterations allowed for a single agent run. Run will be
|
|
1174
|
-
|
|
1173
|
+
* * Description: Maximum number of prompt iterations allowed for a single agent run. Run will be
|
|
1174
|
+
terminated if this limit is exceeded.`),
|
|
1175
1175
|
MaxTimePerRun: zod_1.z.number().nullable().describe(`
|
|
1176
1176
|
* * Field Name: MaxTimePerRun
|
|
1177
1177
|
* * Display Name: Max Time Per Run
|
|
1178
1178
|
* * SQL Data Type: int
|
|
1179
|
-
* * Description: Maximum time in seconds allowed for a single agent run. Run will be terminated
|
|
1180
|
-
|
|
1179
|
+
* * Description: Maximum time in seconds allowed for a single agent run. Run will be terminated
|
|
1180
|
+
if this limit is exceeded.`),
|
|
1181
1181
|
MinExecutionsPerRun: zod_1.z.number().nullable().describe(`
|
|
1182
1182
|
* * Field Name: MinExecutionsPerRun
|
|
1183
1183
|
* * Display Name: Min Executions Per Run
|
|
@@ -1188,6 +1188,23 @@ Retry mode. After reaching this limit, the validation will fail permanently.`),
|
|
|
1188
1188
|
* * Display Name: Max Executions Per Run
|
|
1189
1189
|
* * SQL Data Type: int
|
|
1190
1190
|
* * Description: When acting as a sub-agent, maximum number of times this agent can be executed per parent agent run`),
|
|
1191
|
+
StartingPayloadValidation: zod_1.z.string().nullable().describe(`
|
|
1192
|
+
* * Field Name: StartingPayloadValidation
|
|
1193
|
+
* * Display Name: Starting Payload Validation
|
|
1194
|
+
* * SQL Data Type: nvarchar(MAX)
|
|
1195
|
+
* * Description: Optional JSON schema validation to apply to the input payload before agent execution begins. Uses the same JSONValidator
|
|
1196
|
+
format as FinalPayloadValidation.`),
|
|
1197
|
+
StartingPayloadValidationMode: zod_1.z.union([zod_1.z.literal('Fail'), zod_1.z.literal('Warn')]).describe(`
|
|
1198
|
+
* * Field Name: StartingPayloadValidationMode
|
|
1199
|
+
* * Display Name: Starting Payload Validation Mode
|
|
1200
|
+
* * SQL Data Type: nvarchar(25)
|
|
1201
|
+
* * Default Value: Fail
|
|
1202
|
+
* * Value List Type: List
|
|
1203
|
+
* * Possible Values
|
|
1204
|
+
* * Fail
|
|
1205
|
+
* * Warn
|
|
1206
|
+
* * Description: Determines how to handle StartingPayloadValidation failures. Fail = reject invalid input, Warn = log warning but
|
|
1207
|
+
proceed.`),
|
|
1191
1208
|
Parent: zod_1.z.string().nullable().describe(`
|
|
1192
1209
|
* * Field Name: Parent
|
|
1193
1210
|
* * Display Name: Parent
|
|
@@ -7160,14 +7177,14 @@ exports.AIAgentRunStepSchema = zod_1.z.object({
|
|
|
7160
7177
|
* * Field Name: FinalPayloadValidationResult
|
|
7161
7178
|
* * Display Name: Final Payload Validation Result
|
|
7162
7179
|
* * SQL Data Type: nvarchar(25)
|
|
7163
|
-
* * Description: Result of the final payload validation for this step. Pass indicates successful
|
|
7164
|
-
validation, Retry means validation failed but will retry, Fail means validation failed
|
|
7180
|
+
* * Description: Result of the final payload validation for this step. Pass indicates successful
|
|
7181
|
+
validation, Retry means validation failed but will retry, Fail means validation failed
|
|
7165
7182
|
permanently, Warn means validation failed but execution continues.`),
|
|
7166
7183
|
FinalPayloadValidationMessages: zod_1.z.string().nullable().describe(`
|
|
7167
7184
|
* * Field Name: FinalPayloadValidationMessages
|
|
7168
7185
|
* * Display Name: Final Payload Validation Messages
|
|
7169
7186
|
* * SQL Data Type: nvarchar(MAX)
|
|
7170
|
-
* * Description: Validation error messages or warnings from final payload validation. Contains
|
|
7187
|
+
* * Description: Validation error messages or warnings from final payload validation. Contains
|
|
7171
7188
|
detailed information about what validation rules failed.`),
|
|
7172
7189
|
});
|
|
7173
7190
|
/**
|
|
@@ -7360,8 +7377,8 @@ exports.AIAgentRunSchema = zod_1.z.object({
|
|
|
7360
7377
|
* * Display Name: Total Prompt Iterations
|
|
7361
7378
|
* * SQL Data Type: int
|
|
7362
7379
|
* * Default Value: 0
|
|
7363
|
-
* * Description: Total number of prompt iterations executed during this agent run. Incremented
|
|
7364
|
-
|
|
7380
|
+
* * Description: Total number of prompt iterations executed during this agent run. Incremented
|
|
7381
|
+
each time the agent processes a prompt step.`),
|
|
7365
7382
|
Agent: zod_1.z.string().nullable().describe(`
|
|
7366
7383
|
* * Field Name: Agent
|
|
7367
7384
|
* * Display Name: Agent
|
|
@@ -13664,8 +13681,8 @@ let AIAgentActionEntity = class AIAgentActionEntity extends core_1.BaseEntity {
|
|
|
13664
13681
|
}
|
|
13665
13682
|
/**
|
|
13666
13683
|
* 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:
|
|
13667
|
-
* * 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.
|
|
13668
13684
|
* * 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.
|
|
13685
|
+
* * 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.
|
|
13669
13686
|
* * 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.
|
|
13670
13687
|
* @public
|
|
13671
13688
|
* @method
|
|
@@ -13673,31 +13690,31 @@ let AIAgentActionEntity = class AIAgentActionEntity extends core_1.BaseEntity {
|
|
|
13673
13690
|
*/
|
|
13674
13691
|
Validate() {
|
|
13675
13692
|
const result = super.Validate();
|
|
13676
|
-
this.ValidateMinExecutionsPerRunIsNonNegative(result);
|
|
13677
13693
|
this.ValidateMaxExecutionsPerRunGreaterThanZero(result);
|
|
13694
|
+
this.ValidateMinExecutionsPerRunIsNonNegative(result);
|
|
13678
13695
|
this.ValidateMinExecutionsPerRunLessThanOrEqualToMax(result);
|
|
13679
13696
|
return result;
|
|
13680
13697
|
}
|
|
13681
13698
|
/**
|
|
13682
|
-
* This rule ensures that if a value for
|
|
13699
|
+
* 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.
|
|
13683
13700
|
* @param result - the ValidationResult object to add any errors or warnings to
|
|
13684
13701
|
* @public
|
|
13685
13702
|
* @method
|
|
13686
13703
|
*/
|
|
13687
|
-
|
|
13688
|
-
if (this.
|
|
13689
|
-
result.Errors.push(new core_1.ValidationErrorInfo("
|
|
13704
|
+
ValidateMaxExecutionsPerRunGreaterThanZero(result) {
|
|
13705
|
+
if (this.MaxExecutionsPerRun !== null && this.MaxExecutionsPerRun <= 0) {
|
|
13706
|
+
result.Errors.push(new core_1.ValidationErrorInfo("MaxExecutionsPerRun", "If a maximum executions per run is specified, it must be greater than zero.", this.MaxExecutionsPerRun, core_1.ValidationErrorType.Failure));
|
|
13690
13707
|
}
|
|
13691
13708
|
}
|
|
13692
13709
|
/**
|
|
13693
|
-
* This rule ensures that if a value for
|
|
13710
|
+
* 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.
|
|
13694
13711
|
* @param result - the ValidationResult object to add any errors or warnings to
|
|
13695
13712
|
* @public
|
|
13696
13713
|
* @method
|
|
13697
13714
|
*/
|
|
13698
|
-
|
|
13699
|
-
if (this.
|
|
13700
|
-
result.Errors.push(new core_1.ValidationErrorInfo("
|
|
13715
|
+
ValidateMinExecutionsPerRunIsNonNegative(result) {
|
|
13716
|
+
if (this.MinExecutionsPerRun !== null && this.MinExecutionsPerRun < 0) {
|
|
13717
|
+
result.Errors.push(new core_1.ValidationErrorInfo("MinExecutionsPerRun", "Minimum executions per run must be zero or greater.", this.MinExecutionsPerRun, core_1.ValidationErrorType.Failure));
|
|
13701
13718
|
}
|
|
13702
13719
|
}
|
|
13703
13720
|
/**
|
|
@@ -15002,7 +15019,7 @@ Retry mode. After reaching this limit, the validation will fail permanently.
|
|
|
15002
15019
|
* * Display Name: Max Cost Per Run
|
|
15003
15020
|
* * SQL Data Type: decimal(10, 4)
|
|
15004
15021
|
* * Description: Maximum cost in dollars allowed for a single agent run. Run will be terminated
|
|
15005
|
-
|
|
15022
|
+
if this limit is exceeded.
|
|
15006
15023
|
*/
|
|
15007
15024
|
get MaxCostPerRun() {
|
|
15008
15025
|
return this.Get('MaxCostPerRun');
|
|
@@ -15015,7 +15032,7 @@ Retry mode. After reaching this limit, the validation will fail permanently.
|
|
|
15015
15032
|
* * Display Name: Max Tokens Per Run
|
|
15016
15033
|
* * SQL Data Type: int
|
|
15017
15034
|
* * Description: Maximum total tokens (input + output) allowed for a single agent run. Run will
|
|
15018
|
-
|
|
15035
|
+
be terminated if this limit is exceeded.
|
|
15019
15036
|
*/
|
|
15020
15037
|
get MaxTokensPerRun() {
|
|
15021
15038
|
return this.Get('MaxTokensPerRun');
|
|
@@ -15028,7 +15045,7 @@ Retry mode. After reaching this limit, the validation will fail permanently.
|
|
|
15028
15045
|
* * Display Name: Max Iterations Per Run
|
|
15029
15046
|
* * SQL Data Type: int
|
|
15030
15047
|
* * Description: Maximum number of prompt iterations allowed for a single agent run. Run will be
|
|
15031
|
-
|
|
15048
|
+
terminated if this limit is exceeded.
|
|
15032
15049
|
*/
|
|
15033
15050
|
get MaxIterationsPerRun() {
|
|
15034
15051
|
return this.Get('MaxIterationsPerRun');
|
|
@@ -15041,7 +15058,7 @@ Retry mode. After reaching this limit, the validation will fail permanently.
|
|
|
15041
15058
|
* * Display Name: Max Time Per Run
|
|
15042
15059
|
* * SQL Data Type: int
|
|
15043
15060
|
* * Description: Maximum time in seconds allowed for a single agent run. Run will be terminated
|
|
15044
|
-
|
|
15061
|
+
if this limit is exceeded.
|
|
15045
15062
|
*/
|
|
15046
15063
|
get MaxTimePerRun() {
|
|
15047
15064
|
return this.Get('MaxTimePerRun');
|
|
@@ -15074,6 +15091,37 @@ Retry mode. After reaching this limit, the validation will fail permanently.
|
|
|
15074
15091
|
this.Set('MaxExecutionsPerRun', value);
|
|
15075
15092
|
}
|
|
15076
15093
|
/**
|
|
15094
|
+
* * Field Name: StartingPayloadValidation
|
|
15095
|
+
* * Display Name: Starting Payload Validation
|
|
15096
|
+
* * SQL Data Type: nvarchar(MAX)
|
|
15097
|
+
* * Description: Optional JSON schema validation to apply to the input payload before agent execution begins. Uses the same JSONValidator
|
|
15098
|
+
format as FinalPayloadValidation.
|
|
15099
|
+
*/
|
|
15100
|
+
get StartingPayloadValidation() {
|
|
15101
|
+
return this.Get('StartingPayloadValidation');
|
|
15102
|
+
}
|
|
15103
|
+
set StartingPayloadValidation(value) {
|
|
15104
|
+
this.Set('StartingPayloadValidation', value);
|
|
15105
|
+
}
|
|
15106
|
+
/**
|
|
15107
|
+
* * Field Name: StartingPayloadValidationMode
|
|
15108
|
+
* * Display Name: Starting Payload Validation Mode
|
|
15109
|
+
* * SQL Data Type: nvarchar(25)
|
|
15110
|
+
* * Default Value: Fail
|
|
15111
|
+
* * Value List Type: List
|
|
15112
|
+
* * Possible Values
|
|
15113
|
+
* * Fail
|
|
15114
|
+
* * Warn
|
|
15115
|
+
* * Description: Determines how to handle StartingPayloadValidation failures. Fail = reject invalid input, Warn = log warning but
|
|
15116
|
+
proceed.
|
|
15117
|
+
*/
|
|
15118
|
+
get StartingPayloadValidationMode() {
|
|
15119
|
+
return this.Get('StartingPayloadValidationMode');
|
|
15120
|
+
}
|
|
15121
|
+
set StartingPayloadValidationMode(value) {
|
|
15122
|
+
this.Set('StartingPayloadValidationMode', value);
|
|
15123
|
+
}
|
|
15124
|
+
/**
|
|
15077
15125
|
* * Field Name: Parent
|
|
15078
15126
|
* * Display Name: Parent
|
|
15079
15127
|
* * SQL Data Type: nvarchar(255)
|
|
@@ -30835,7 +30883,7 @@ let AIAgentRunEntity = class AIAgentRunEntity extends core_1.BaseEntity {
|
|
|
30835
30883
|
* * SQL Data Type: int
|
|
30836
30884
|
* * Default Value: 0
|
|
30837
30885
|
* * Description: Total number of prompt iterations executed during this agent run. Incremented
|
|
30838
|
-
|
|
30886
|
+
each time the agent processes a prompt step.
|
|
30839
30887
|
*/
|
|
30840
30888
|
get TotalPromptIterations() {
|
|
30841
30889
|
return this.Get('TotalPromptIterations');
|