@memberjunction/core-entities 2.62.0 → 2.63.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.
@@ -4733,6 +4733,8 @@ export declare const AIAgentRunSchema: z.ZodObject<{
4733
4733
  FinalStep: z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"Success">, z.ZodLiteral<"Failed">, z.ZodLiteral<"Retry">, z.ZodLiteral<"Sub-Agent">, z.ZodLiteral<"Actions">, z.ZodLiteral<"Chat">]>>;
4734
4734
  FinalPayload: z.ZodNullable<z.ZodString>;
4735
4735
  Message: z.ZodNullable<z.ZodString>;
4736
+ LastRunID: z.ZodNullable<z.ZodString>;
4737
+ StartingPayload: z.ZodNullable<z.ZodString>;
4736
4738
  Agent: z.ZodNullable<z.ZodString>;
4737
4739
  Conversation: z.ZodNullable<z.ZodString>;
4738
4740
  User: z.ZodNullable<z.ZodString>;
@@ -4749,6 +4751,7 @@ export declare const AIAgentRunSchema: z.ZodObject<{
4749
4751
  Agent?: string;
4750
4752
  Success?: boolean;
4751
4753
  ErrorMessage?: string;
4754
+ LastRunID?: string;
4752
4755
  ConversationID?: string;
4753
4756
  Conversation?: string;
4754
4757
  CompletedAt?: Date;
@@ -4768,6 +4771,7 @@ export declare const AIAgentRunSchema: z.ZodObject<{
4768
4771
  CancellationReason?: "System" | "User Request" | "Timeout";
4769
4772
  FinalStep?: "Failed" | "Success" | "Actions" | "Sub-Agent" | "Chat" | "Retry";
4770
4773
  FinalPayload?: string;
4774
+ StartingPayload?: string;
4771
4775
  }, {
4772
4776
  ID?: string;
4773
4777
  __mj_CreatedAt?: Date;
@@ -4781,6 +4785,7 @@ export declare const AIAgentRunSchema: z.ZodObject<{
4781
4785
  Agent?: string;
4782
4786
  Success?: boolean;
4783
4787
  ErrorMessage?: string;
4788
+ LastRunID?: string;
4784
4789
  ConversationID?: string;
4785
4790
  Conversation?: string;
4786
4791
  CompletedAt?: Date;
@@ -4800,6 +4805,7 @@ export declare const AIAgentRunSchema: z.ZodObject<{
4800
4805
  CancellationReason?: "System" | "User Request" | "Timeout";
4801
4806
  FinalStep?: "Failed" | "Success" | "Actions" | "Sub-Agent" | "Chat" | "Retry";
4802
4807
  FinalPayload?: string;
4808
+ StartingPayload?: string;
4803
4809
  }>;
4804
4810
  export type AIAgentRunEntityType = z.infer<typeof AIAgentRunSchema>;
4805
4811
  /**
@@ -10498,14 +10504,14 @@ export declare class AIPromptEntity extends BaseEntity<AIPromptEntityType> {
10498
10504
  * 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:
10499
10505
  * * 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.
10500
10506
  * * CacheTTLSeconds: This rule ensures that if the cache expiration time in seconds is provided, it must be greater than zero.
10507
+ * * FailoverStrategy: This rule ensures that the FailoverStrategy field, if specified, must be either 'None', 'PowerRank', 'NextBestModel', 'SameModelDifferentVendor', or left blank (unset).
10508
+ * * 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.
10509
+ * * FailoverErrorScope: This rule ensures that the FailoverErrorScope field can only be set to 'ServiceErrorOnly', 'RateLimitOnly', 'NetworkOnly', 'All', or left empty.
10501
10510
  * * 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.
10502
10511
  * * 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.
10503
10512
  * * Table-Level: This rule ensures that if the parallelization mode is set to 'StaticCount', then the number of parallel tasks (ParallelCount) must be provided.
10504
10513
  * * Table-Level: This rule ensures that if the Parallelization Mode is set to 'ConfigParam', then the Parallel Config Param field must be filled in. For any other mode, the Parallel Config Param can be left empty.
10505
10514
  * * Table-Level: This rule ensures that if the OutputType is set to 'object', an OutputExample must be provided. If the OutputType is anything other than 'object', providing an OutputExample is not required.
10506
- * * FailoverErrorScope: This rule ensures that the FailoverErrorScope field can only be set to 'ServiceErrorOnly', 'RateLimitOnly', 'NetworkOnly', 'All', or left empty.
10507
- * * FailoverStrategy: This rule ensures that the FailoverStrategy field, if specified, must be either 'None', 'PowerRank', 'NextBestModel', 'SameModelDifferentVendor', or left blank (unset).
10508
- * * 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.
10509
10515
  * @public
10510
10516
  * @method
10511
10517
  * @override
@@ -10526,61 +10532,61 @@ export declare class AIPromptEntity extends BaseEntity<AIPromptEntityType> {
10526
10532
  */
10527
10533
  ValidateCacheTTLSecondsGreaterThanZero(result: ValidationResult): void;
10528
10534
  /**
10529
- * This rule ensures that the ResultSelectorPromptID field must be different from the ID field. In other words, a result selector prompt cannot reference itself.
10535
+ * This rule ensures that the FailoverStrategy field, if specified, must be either 'None', 'PowerRank', 'NextBestModel', 'SameModelDifferentVendor', or left blank (unset).
10530
10536
  * @param result - the ValidationResult object to add any errors or warnings to
10531
10537
  * @public
10532
10538
  * @method
10533
10539
  */
10534
- ValidateResultSelectorPromptIDNotEqualID(result: ValidationResult): void;
10540
+ ValidateFailoverStrategyAllowedValues(result: ValidationResult): void;
10535
10541
  /**
10536
- * 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.
10542
+ * This rule ensures that the value for FailoverModelStrategy is either 'RequireSameModel', 'PreferDifferentModel', 'PreferSameModel', or left blank (not set). Any other value is not allowed.
10537
10543
  * @param result - the ValidationResult object to add any errors or warnings to
10538
10544
  * @public
10539
10545
  * @method
10540
10546
  */
10541
- ValidateCacheSimilarityThresholdRequiredForVectorCache(result: ValidationResult): void;
10547
+ ValidateFailoverModelStrategyAgainstAllowedValues(result: ValidationResult): void;
10542
10548
  /**
10543
- * This rule ensures that if the parallelization mode is set to 'StaticCount', then the number of parallel tasks (ParallelCount) must be provided.
10549
+ * This rule ensures that the FailoverErrorScope field can only be set to 'ServiceErrorOnly', 'RateLimitOnly', 'NetworkOnly', 'All', or left empty.
10544
10550
  * @param result - the ValidationResult object to add any errors or warnings to
10545
10551
  * @public
10546
10552
  * @method
10547
10553
  */
10548
- ValidateParallelCountWhenParallelizationModeIsStaticCount(result: ValidationResult): void;
10554
+ ValidateFailoverErrorScopeAgainstAllowedValues(result: ValidationResult): void;
10549
10555
  /**
10550
- * This rule ensures that if the Parallelization Mode is set to 'ConfigParam', then the Parallel Config Param field must be filled in. For any other mode, the Parallel Config Param can be left empty.
10556
+ * This rule ensures that the ResultSelectorPromptID field must be different from the ID field. In other words, a result selector prompt cannot reference itself.
10551
10557
  * @param result - the ValidationResult object to add any errors or warnings to
10552
10558
  * @public
10553
10559
  * @method
10554
10560
  */
10555
- ValidateParallelConfigParamRequiredForConfigParamMode(result: ValidationResult): void;
10561
+ ValidateResultSelectorPromptIDNotEqualID(result: ValidationResult): void;
10556
10562
  /**
10557
- * This rule ensures that if the OutputType is set to 'object', an OutputExample must be provided. If the OutputType is anything other than 'object', providing an OutputExample is not required.
10563
+ * 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.
10558
10564
  * @param result - the ValidationResult object to add any errors or warnings to
10559
10565
  * @public
10560
10566
  * @method
10561
10567
  */
10562
- ValidateOutputExampleWhenOutputTypeObject(result: ValidationResult): void;
10568
+ ValidateCacheSimilarityThresholdRequiredForVectorCache(result: ValidationResult): void;
10563
10569
  /**
10564
- * This rule ensures that the FailoverErrorScope field can only be set to 'ServiceErrorOnly', 'RateLimitOnly', 'NetworkOnly', 'All', or left empty.
10570
+ * This rule ensures that if the parallelization mode is set to 'StaticCount', then the number of parallel tasks (ParallelCount) must be provided.
10565
10571
  * @param result - the ValidationResult object to add any errors or warnings to
10566
10572
  * @public
10567
10573
  * @method
10568
10574
  */
10569
- ValidateFailoverErrorScopeAgainstAllowedValues(result: ValidationResult): void;
10575
+ ValidateParallelCountWhenParallelizationModeIsStaticCount(result: ValidationResult): void;
10570
10576
  /**
10571
- * This rule ensures that the FailoverStrategy field, if specified, must be either 'None', 'PowerRank', 'NextBestModel', 'SameModelDifferentVendor', or left blank (unset).
10577
+ * This rule ensures that if the Parallelization Mode is set to 'ConfigParam', then the Parallel Config Param field must be filled in. For any other mode, the Parallel Config Param can be left empty.
10572
10578
  * @param result - the ValidationResult object to add any errors or warnings to
10573
10579
  * @public
10574
10580
  * @method
10575
10581
  */
10576
- ValidateFailoverStrategyAllowedValues(result: ValidationResult): void;
10582
+ ValidateParallelConfigParamRequiredForConfigParamMode(result: ValidationResult): void;
10577
10583
  /**
10578
- * This rule ensures that the value for FailoverModelStrategy is either 'RequireSameModel', 'PreferDifferentModel', 'PreferSameModel', or left blank (not set). Any other value is not allowed.
10584
+ * This rule ensures that if the OutputType is set to 'object', an OutputExample must be provided. If the OutputType is anything other than 'object', providing an OutputExample is not required.
10579
10585
  * @param result - the ValidationResult object to add any errors or warnings to
10580
10586
  * @public
10581
10587
  * @method
10582
10588
  */
10583
- ValidateFailoverModelStrategyAgainstAllowedValues(result: ValidationResult): void;
10589
+ ValidateOutputExampleWhenOutputTypeObject(result: ValidationResult): void;
10584
10590
  /**
10585
10591
  * * Field Name: ID
10586
10592
  * * Display Name: ID
@@ -21072,6 +21078,23 @@ export declare class AIAgentRunEntity extends BaseEntity<AIAgentRunEntityType> {
21072
21078
  get Message(): string | null;
21073
21079
  set Message(value: string | null);
21074
21080
  /**
21081
+ * * Field Name: LastRunID
21082
+ * * Display Name: Last Run ID
21083
+ * * SQL Data Type: uniqueidentifier
21084
+ * * Related Entity/Foreign Key: MJ: AI Agent Runs (vwAIAgentRuns.ID)
21085
+ * * Description: Links to the previous run in a chain. Different from ParentRunID which is for sub-agent hierarchy.
21086
+ */
21087
+ get LastRunID(): string | null;
21088
+ set LastRunID(value: string | null);
21089
+ /**
21090
+ * * Field Name: StartingPayload
21091
+ * * Display Name: Starting Payload
21092
+ * * SQL Data Type: nvarchar(MAX)
21093
+ * * Description: The initial payload provided at the start of this run. Can be populated from the FinalPayload of the LastRun.
21094
+ */
21095
+ get StartingPayload(): string | null;
21096
+ set StartingPayload(value: string | null);
21097
+ /**
21075
21098
  * * Field Name: Agent
21076
21099
  * * Display Name: Agent
21077
21100
  * * SQL Data Type: nvarchar(255)