@memberjunction/core-entities 2.126.1 → 2.128.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.
@@ -9848,6 +9848,11 @@ exports.AIPromptModelSchema = zod_1.z.object({
9848
9848
  * * Display Name: Updated At
9849
9849
  * * SQL Data Type: datetimeoffset
9850
9850
  * * Default Value: getutcdate()`),
9851
+ EffortLevel: zod_1.z.number().nullable().describe(`
9852
+ * * Field Name: EffortLevel
9853
+ * * Display Name: Effort Level
9854
+ * * SQL Data Type: int
9855
+ * * Description: Model-specific effort level override (1-100, where 1=minimal effort, 100=maximum effort). Allows customizing effort level per model - useful when a more capable model can use lower effort for tasks that require higher effort from lesser models. Takes precedence over agent and prompt effort levels but can be overridden by runtime parameters.`),
9851
9856
  Prompt: zod_1.z.string().describe(`
9852
9857
  * * Field Name: Prompt
9853
9858
  * * Display Name: Prompt
@@ -41519,6 +41524,7 @@ let AIPromptModelEntity = class AIPromptModelEntity extends core_1.BaseEntity {
41519
41524
  }
41520
41525
  /**
41521
41526
  * Validate() method override for MJ: AI Prompt Models entity. This is an auto-generated method that invokes the generated validators for this entity for the following fields:
41527
+ * * EffortLevel: Effort level must be between 1 and 100 whenever it is provided. This ensures that effort values stay within the allowed range.
41522
41528
  * * ExecutionGroup: This rule ensures that the ExecutionGroup value must be zero or a positive number. Negative values are not allowed.
41523
41529
  * * ParallelCount: This rule ensures that the ParallelCount value must always be at least 1.
41524
41530
  * * Priority: This rule ensures that the priority value must be zero or a positive number; in other words, priority cannot be negative.
@@ -41529,6 +41535,7 @@ let AIPromptModelEntity = class AIPromptModelEntity extends core_1.BaseEntity {
41529
41535
  */
41530
41536
  Validate() {
41531
41537
  const result = super.Validate();
41538
+ this.ValidateEffortLevelRange(result);
41532
41539
  this.ValidateExecutionGroupNonNegative(result);
41533
41540
  this.ValidateParallelCountAtLeastOne(result);
41534
41541
  this.ValidatePriorityIsNonNegative(result);
@@ -41537,6 +41544,18 @@ let AIPromptModelEntity = class AIPromptModelEntity extends core_1.BaseEntity {
41537
41544
  return result;
41538
41545
  }
41539
41546
  /**
41547
+ * Effort level must be between 1 and 100 whenever it is provided. This ensures that effort values stay within the allowed range.
41548
+ * @param result - the ValidationResult object to add any errors or warnings to
41549
+ * @public
41550
+ * @method
41551
+ */
41552
+ ValidateEffortLevelRange(result) {
41553
+ // Only validate when a value is provided
41554
+ if (this.EffortLevel != null && (this.EffortLevel < 1 || this.EffortLevel > 100)) {
41555
+ result.Errors.push(new core_1.ValidationErrorInfo("EffortLevel", "Effort level must be between 1 and 100.", this.EffortLevel, core_1.ValidationErrorType.Failure));
41556
+ }
41557
+ }
41558
+ /**
41540
41559
  * This rule ensures that the ExecutionGroup value must be zero or a positive number. Negative values are not allowed.
41541
41560
  * @param result - the ValidationResult object to add any errors or warnings to
41542
41561
  * @public
@@ -41770,6 +41789,18 @@ let AIPromptModelEntity = class AIPromptModelEntity extends core_1.BaseEntity {
41770
41789
  return this.Get('__mj_UpdatedAt');
41771
41790
  }
41772
41791
  /**
41792
+ * * Field Name: EffortLevel
41793
+ * * Display Name: Effort Level
41794
+ * * SQL Data Type: int
41795
+ * * Description: Model-specific effort level override (1-100, where 1=minimal effort, 100=maximum effort). Allows customizing effort level per model - useful when a more capable model can use lower effort for tasks that require higher effort from lesser models. Takes precedence over agent and prompt effort levels but can be overridden by runtime parameters.
41796
+ */
41797
+ get EffortLevel() {
41798
+ return this.Get('EffortLevel');
41799
+ }
41800
+ set EffortLevel(value) {
41801
+ this.Set('EffortLevel', value);
41802
+ }
41803
+ /**
41773
41804
  * * Field Name: Prompt
41774
41805
  * * Display Name: Prompt
41775
41806
  * * SQL Data Type: nvarchar(255)