@memberjunction/core-entities 2.81.0 → 2.83.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.
@@ -686,6 +686,7 @@ export declare const AIAgentSchema: z.ZodObject<{
686
686
  MaxExecutionsPerRun: z.ZodNullable<z.ZodNumber>;
687
687
  StartingPayloadValidation: z.ZodNullable<z.ZodString>;
688
688
  StartingPayloadValidationMode: z.ZodUnion<[z.ZodLiteral<"Fail">, z.ZodLiteral<"Warn">]>;
689
+ DefaultPromptEffortLevel: z.ZodNullable<z.ZodNumber>;
689
690
  Parent: z.ZodNullable<z.ZodString>;
690
691
  ContextCompressionPrompt: z.ZodNullable<z.ZodString>;
691
692
  Type: z.ZodNullable<z.ZodString>;
@@ -727,6 +728,7 @@ export declare const AIAgentSchema: z.ZodObject<{
727
728
  MaxTimePerRun?: number;
728
729
  StartingPayloadValidation?: string;
729
730
  StartingPayloadValidationMode?: "Fail" | "Warn";
731
+ DefaultPromptEffortLevel?: number;
730
732
  ContextCompressionPrompt?: string;
731
733
  }, {
732
734
  ID?: string;
@@ -766,6 +768,7 @@ export declare const AIAgentSchema: z.ZodObject<{
766
768
  MaxTimePerRun?: number;
767
769
  StartingPayloadValidation?: string;
768
770
  StartingPayloadValidationMode?: "Fail" | "Warn";
771
+ DefaultPromptEffortLevel?: number;
769
772
  ContextCompressionPrompt?: string;
770
773
  }>;
771
774
  export type AIAgentEntityType = z.infer<typeof AIAgentSchema>;
@@ -995,6 +998,7 @@ export declare const AIPromptSchema: z.ZodObject<{
995
998
  FailoverDelaySeconds: z.ZodNullable<z.ZodNumber>;
996
999
  FailoverModelStrategy: z.ZodString;
997
1000
  FailoverErrorScope: z.ZodString;
1001
+ EffortLevel: z.ZodNullable<z.ZodNumber>;
998
1002
  Template: z.ZodString;
999
1003
  Category: z.ZodNullable<z.ZodString>;
1000
1004
  Type: z.ZodString;
@@ -1054,6 +1058,7 @@ export declare const AIPromptSchema: z.ZodObject<{
1054
1058
  FailoverDelaySeconds?: number;
1055
1059
  FailoverModelStrategy?: string;
1056
1060
  FailoverErrorScope?: string;
1061
+ EffortLevel?: number;
1057
1062
  Template?: string;
1058
1063
  ResultSelectorPrompt?: string;
1059
1064
  }, {
@@ -1110,6 +1115,7 @@ export declare const AIPromptSchema: z.ZodObject<{
1110
1115
  FailoverDelaySeconds?: number;
1111
1116
  FailoverModelStrategy?: string;
1112
1117
  FailoverErrorScope?: string;
1118
+ EffortLevel?: number;
1113
1119
  Template?: string;
1114
1120
  ResultSelectorPrompt?: string;
1115
1121
  }>;
@@ -4798,6 +4804,7 @@ export declare const AIAgentRunSchema: z.ZodObject<{
4798
4804
  OverrideVendorID: z.ZodNullable<z.ZodString>;
4799
4805
  Data: z.ZodNullable<z.ZodString>;
4800
4806
  Verbose: z.ZodNullable<z.ZodBoolean>;
4807
+ EffortLevel: z.ZodNullable<z.ZodNumber>;
4801
4808
  Agent: z.ZodNullable<z.ZodString>;
4802
4809
  Conversation: z.ZodNullable<z.ZodString>;
4803
4810
  User: z.ZodNullable<z.ZodString>;
@@ -4815,6 +4822,7 @@ export declare const AIAgentRunSchema: z.ZodObject<{
4815
4822
  User?: string;
4816
4823
  AgentID?: string;
4817
4824
  Agent?: string;
4825
+ EffortLevel?: number;
4818
4826
  ConfigurationID?: string;
4819
4827
  Configuration?: string;
4820
4828
  Success?: boolean;
@@ -4858,6 +4866,7 @@ export declare const AIAgentRunSchema: z.ZodObject<{
4858
4866
  User?: string;
4859
4867
  AgentID?: string;
4860
4868
  Agent?: string;
4869
+ EffortLevel?: number;
4861
4870
  ConfigurationID?: string;
4862
4871
  Configuration?: string;
4863
4872
  Success?: boolean;
@@ -5464,6 +5473,7 @@ export declare const AIPromptRunSchema: z.ZodObject<{
5464
5473
  PromptTime: z.ZodNullable<z.ZodNumber>;
5465
5474
  CompletionTime: z.ZodNullable<z.ZodNumber>;
5466
5475
  ModelSpecificResponseDetails: z.ZodNullable<z.ZodString>;
5476
+ EffortLevel: z.ZodNullable<z.ZodNumber>;
5467
5477
  Prompt: z.ZodString;
5468
5478
  Model: z.ZodString;
5469
5479
  Vendor: z.ZodString;
@@ -5497,6 +5507,7 @@ export declare const AIPromptRunSchema: z.ZodObject<{
5497
5507
  Seed?: number;
5498
5508
  StopSequences?: string;
5499
5509
  TopLogProbs?: number;
5510
+ EffortLevel?: number;
5500
5511
  RunAt?: Date;
5501
5512
  VendorID?: string;
5502
5513
  ConfigurationID?: string;
@@ -5586,6 +5597,7 @@ export declare const AIPromptRunSchema: z.ZodObject<{
5586
5597
  Seed?: number;
5587
5598
  StopSequences?: string;
5588
5599
  TopLogProbs?: number;
5600
+ EffortLevel?: number;
5589
5601
  RunAt?: Date;
5590
5602
  VendorID?: string;
5591
5603
  ConfigurationID?: string;
@@ -10220,6 +10232,7 @@ export declare class AIAgentEntity extends BaseEntity<AIAgentEntityType> {
10220
10232
  Load(ID: string, EntityRelationshipsToLoad?: string[]): Promise<boolean>;
10221
10233
  /**
10222
10234
  * 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:
10235
+ * * DefaultPromptEffortLevel: This rule ensures that the DefaultPromptEffortLevel must always be a value between 1 and 100, inclusive.
10223
10236
  * * 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.
10224
10237
  * * MinExecutionsPerRun: This rule ensures that if the minimum executions per run value is provided, it must be zero or greater.
10225
10238
  * * 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.
@@ -10231,6 +10244,13 @@ export declare class AIAgentEntity extends BaseEntity<AIAgentEntityType> {
10231
10244
  */
10232
10245
  Validate(): ValidationResult;
10233
10246
  /**
10247
+ * This rule ensures that the DefaultPromptEffortLevel must always be a value between 1 and 100, inclusive.
10248
+ * @param result - the ValidationResult object to add any errors or warnings to
10249
+ * @public
10250
+ * @method
10251
+ */
10252
+ ValidateDefaultPromptEffortLevelWithinRange(result: ValidationResult): void;
10253
+ /**
10234
10254
  * 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.
10235
10255
  * @param result - the ValidationResult object to add any errors or warnings to
10236
10256
  * @public
@@ -10581,6 +10601,14 @@ if this limit is exceeded.
10581
10601
  get StartingPayloadValidationMode(): 'Fail' | 'Warn';
10582
10602
  set StartingPayloadValidationMode(value: 'Fail' | 'Warn');
10583
10603
  /**
10604
+ * * Field Name: DefaultPromptEffortLevel
10605
+ * * Display Name: Default Prompt Effort Level
10606
+ * * SQL Data Type: int
10607
+ * * Description: Default effort level for all prompts executed by this agent (1-100, where 1=minimal effort, 100=maximum effort). Takes precedence over individual prompt EffortLevel settings but can be overridden by runtime parameters. Inherited by sub-agents unless explicitly overridden.
10608
+ */
10609
+ get DefaultPromptEffortLevel(): number | null;
10610
+ set DefaultPromptEffortLevel(value: number | null);
10611
+ /**
10584
10612
  * * Field Name: Parent
10585
10613
  * * Display Name: Parent
10586
10614
  * * SQL Data Type: nvarchar(255)
@@ -11102,6 +11130,7 @@ export declare class AIPromptEntity extends BaseEntity<AIPromptEntityType> {
11102
11130
  * 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:
11103
11131
  * * 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.
11104
11132
  * * CacheTTLSeconds: This rule ensures that if the cache expiration time in seconds is provided, it must be greater than zero.
11133
+ * * EffortLevel: This rule ensures that the EffortLevel must be a value between 1 and 100, inclusive.
11105
11134
  * * FailoverErrorScope: This rule ensures that the FailoverErrorScope field can only be set to 'ServiceErrorOnly', 'RateLimitOnly', 'NetworkOnly', 'All', or left empty.
11106
11135
  * * 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.
11107
11136
  * * FailoverStrategy: This rule ensures that the FailoverStrategy field, if specified, must be either 'None', 'PowerRank', 'NextBestModel', 'SameModelDifferentVendor', or left blank (unset).
@@ -11130,6 +11159,13 @@ export declare class AIPromptEntity extends BaseEntity<AIPromptEntityType> {
11130
11159
  */
11131
11160
  ValidateCacheTTLSecondsGreaterThanZero(result: ValidationResult): void;
11132
11161
  /**
11162
+ * This rule ensures that the EffortLevel must be a value between 1 and 100, inclusive.
11163
+ * @param result - the ValidationResult object to add any errors or warnings to
11164
+ * @public
11165
+ * @method
11166
+ */
11167
+ ValidateEffortLevelIsWithinRange(result: ValidationResult): void;
11168
+ /**
11133
11169
  * This rule ensures that the FailoverErrorScope field can only be set to 'ServiceErrorOnly', 'RateLimitOnly', 'NetworkOnly', 'All', or left empty.
11134
11170
  * @param result - the ValidationResult object to add any errors or warnings to
11135
11171
  * @public
@@ -11670,6 +11706,14 @@ export declare class AIPromptEntity extends BaseEntity<AIPromptEntityType> {
11670
11706
  get FailoverErrorScope(): string;
11671
11707
  set FailoverErrorScope(value: string);
11672
11708
  /**
11709
+ * * Field Name: EffortLevel
11710
+ * * Display Name: Effort Level
11711
+ * * SQL Data Type: int
11712
+ * * Description: Effort level for this specific prompt (1-100, where 1=minimal effort, 100=maximum effort). Higher values request more thorough reasoning and analysis. Can be overridden by agent DefaultPromptEffortLevel or runtime parameters.
11713
+ */
11714
+ get EffortLevel(): number | null;
11715
+ set EffortLevel(value: number | null);
11716
+ /**
11673
11717
  * * Field Name: Template
11674
11718
  * * Display Name: Template
11675
11719
  * * SQL Data Type: nvarchar(255)
@@ -21688,6 +21732,21 @@ export declare class AIAgentRunEntity extends BaseEntity<AIAgentRunEntityType> {
21688
21732
  */
21689
21733
  Load(ID: string, EntityRelationshipsToLoad?: string[]): Promise<boolean>;
21690
21734
  /**
21735
+ * Validate() method override for MJ: AI Agent Runs entity. This is an auto-generated method that invokes the generated validators for this entity for the following fields:
21736
+ * * EffortLevel: This rule ensures that the EffortLevel must be a value between 1 and 100, inclusive.
21737
+ * @public
21738
+ * @method
21739
+ * @override
21740
+ */
21741
+ Validate(): ValidationResult;
21742
+ /**
21743
+ * This rule ensures that the EffortLevel must be a value between 1 and 100, inclusive.
21744
+ * @param result - the ValidationResult object to add any errors or warnings to
21745
+ * @public
21746
+ * @method
21747
+ */
21748
+ ValidateEffortLevelWithinAllowedRange(result: ValidationResult): void;
21749
+ /**
21691
21750
  * * Field Name: ID
21692
21751
  * * Display Name: ID
21693
21752
  * * SQL Data Type: uniqueidentifier
@@ -22012,6 +22071,14 @@ each time the agent processes a prompt step.
22012
22071
  get Verbose(): boolean | null;
22013
22072
  set Verbose(value: boolean | null);
22014
22073
  /**
22074
+ * * Field Name: EffortLevel
22075
+ * * Display Name: Effort Level
22076
+ * * SQL Data Type: int
22077
+ * * Description: Effort level that was actually used during this agent run execution (1-100, where 1=minimal effort, 100=maximum effort). This is the resolved effort level after applying the precedence hierarchy: runtime override > agent default > prompt defaults.
22078
+ */
22079
+ get EffortLevel(): number | null;
22080
+ set EffortLevel(value: number | null);
22081
+ /**
22015
22082
  * * Field Name: Agent
22016
22083
  * * Display Name: Agent
22017
22084
  * * SQL Data Type: nvarchar(255)
@@ -23614,6 +23681,7 @@ export declare class AIPromptRunEntity extends BaseEntity<AIPromptRunEntityType>
23614
23681
  Load(ID: string, EntityRelationshipsToLoad?: string[]): Promise<boolean>;
23615
23682
  /**
23616
23683
  * Validate() method override for MJ: AI Prompt Runs entity. This is an auto-generated method that invokes the generated validators for this entity for the following fields:
23684
+ * * EffortLevel: This rule ensures that the effort level must be a number between 1 and 100, inclusive.
23617
23685
  * * Table-Level: This rule ensures that if the 'CompletedAt' field has a value, it must be on or after the 'RunAt' field. Otherwise, if 'CompletedAt' is empty, there is no restriction.
23618
23686
  * * Table-Level: This rule ensures that either both TokensPrompt and TokensCompletion are missing, or TokensUsed is missing, or, if all values are present, the value of TokensUsed equals the sum of TokensPrompt and TokensCompletion.
23619
23687
  * @public
@@ -23622,6 +23690,13 @@ export declare class AIPromptRunEntity extends BaseEntity<AIPromptRunEntityType>
23622
23690
  */
23623
23691
  Validate(): ValidationResult;
23624
23692
  /**
23693
+ * This rule ensures that the effort level must be a number between 1 and 100, inclusive.
23694
+ * @param result - the ValidationResult object to add any errors or warnings to
23695
+ * @public
23696
+ * @method
23697
+ */
23698
+ ValidateEffortLevelWithinRange(result: ValidationResult): void;
23699
+ /**
23625
23700
  * This rule ensures that if the 'CompletedAt' field has a value, it must be on or after the 'RunAt' field. Otherwise, if 'CompletedAt' is empty, there is no restriction.
23626
23701
  * @param result - the ValidationResult object to add any errors or warnings to
23627
23702
  * @public
@@ -24312,6 +24387,14 @@ export declare class AIPromptRunEntity extends BaseEntity<AIPromptRunEntityType>
24312
24387
  get ModelSpecificResponseDetails(): string | null;
24313
24388
  set ModelSpecificResponseDetails(value: string | null);
24314
24389
  /**
24390
+ * * Field Name: EffortLevel
24391
+ * * Display Name: Effort Level
24392
+ * * SQL Data Type: int
24393
+ * * Description: Effort level that was actually used during this prompt run execution (1-100, where 1=minimal effort, 100=maximum effort). This is the resolved effort level after applying the precedence hierarchy: runtime override > agent default > prompt default > provider default.
24394
+ */
24395
+ get EffortLevel(): number | null;
24396
+ set EffortLevel(value: number | null);
24397
+ /**
24315
24398
  * * Field Name: Prompt
24316
24399
  * * Display Name: Prompt
24317
24400
  * * SQL Data Type: nvarchar(255)