@memberjunction/core-entities 2.77.0 → 2.79.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.
@@ -7559,6 +7559,35 @@ exports.AIAgentRunSchema = zod_1.z.object({
7559
7559
  * * Default Value: 0
7560
7560
  * * Description: Total number of prompt iterations executed during this agent run. Incremented
7561
7561
  each time the agent processes a prompt step.`),
7562
+ ConfigurationID: zod_1.z.string().nullable().describe(`
7563
+ * * Field Name: ConfigurationID
7564
+ * * Display Name: Configuration ID
7565
+ * * SQL Data Type: uniqueidentifier
7566
+ * * Related Entity/Foreign Key: MJ: AI Configurations (vwAIConfigurations.ID)
7567
+ * * Description: The AI Configuration used for this agent execution. When set, this configuration was used for all prompts executed by this agent and its sub-agents.`),
7568
+ OverrideModelID: zod_1.z.string().nullable().describe(`
7569
+ * * Field Name: OverrideModelID
7570
+ * * Display Name: Override Model ID
7571
+ * * SQL Data Type: uniqueidentifier
7572
+ * * Related Entity/Foreign Key: AI Models (vwAIModels.ID)
7573
+ * * Description: Runtime model override that was used for this execution. When set, this model took precedence over all other model selection methods.`),
7574
+ OverrideVendorID: zod_1.z.string().nullable().describe(`
7575
+ * * Field Name: OverrideVendorID
7576
+ * * Display Name: Override Vendor ID
7577
+ * * SQL Data Type: uniqueidentifier
7578
+ * * Related Entity/Foreign Key: MJ: AI Vendors (vwAIVendors.ID)
7579
+ * * Description: Runtime vendor override that was used for this execution. When set along with OverrideModelID, this vendor was used to provide the model.`),
7580
+ Data: zod_1.z.string().nullable().describe(`
7581
+ * * Field Name: Data
7582
+ * * Display Name: Data
7583
+ * * SQL Data Type: nvarchar(MAX)
7584
+ * * Description: JSON serialized data that was passed for template rendering and prompt execution. This data was passed to the agent's prompt as well as all sub-agents.`),
7585
+ Verbose: zod_1.z.boolean().nullable().describe(`
7586
+ * * Field Name: Verbose
7587
+ * * Display Name: Verbose
7588
+ * * SQL Data Type: bit
7589
+ * * Default Value: 0
7590
+ * * Description: Indicates whether verbose logging was enabled during this agent execution. When true, detailed decision-making and execution flow was logged.`),
7562
7591
  Agent: zod_1.z.string().nullable().describe(`
7563
7592
  * * Field Name: Agent
7564
7593
  * * Display Name: Agent
@@ -7571,6 +7600,18 @@ each time the agent processes a prompt step.`),
7571
7600
  * * Field Name: User
7572
7601
  * * Display Name: User
7573
7602
  * * SQL Data Type: nvarchar(100)`),
7603
+ Configuration: zod_1.z.string().nullable().describe(`
7604
+ * * Field Name: Configuration
7605
+ * * Display Name: Configuration
7606
+ * * SQL Data Type: nvarchar(100)`),
7607
+ OverrideModel: zod_1.z.string().nullable().describe(`
7608
+ * * Field Name: OverrideModel
7609
+ * * Display Name: Override Model
7610
+ * * SQL Data Type: nvarchar(50)`),
7611
+ OverrideVendor: zod_1.z.string().nullable().describe(`
7612
+ * * Field Name: OverrideVendor
7613
+ * * Display Name: Override Vendor
7614
+ * * SQL Data Type: nvarchar(50)`),
7574
7615
  });
7575
7616
  /**
7576
7617
  * zod schema definition for the entity MJ: AI Agent Step Paths
@@ -8688,6 +8729,120 @@ exports.AIPromptRunSchema = zod_1.z.object({
8688
8729
  * * SQL Data Type: uniqueidentifier
8689
8730
  * * Related Entity/Foreign Key: MJ: AI Prompt Runs (vwAIPromptRuns.ID)
8690
8731
  * * Description: If this run was initiated as a re-run of another prompt run, this field links back to the original run ID`),
8732
+ ModelSelection: zod_1.z.string().nullable().describe(`
8733
+ * * Field Name: ModelSelection
8734
+ * * Display Name: Model Selection
8735
+ * * SQL Data Type: nvarchar(MAX)
8736
+ * * Description: JSON object containing detailed model selection information including all models considered, their scores, and the selection rationale`),
8737
+ Status: zod_1.z.union([zod_1.z.literal('Pending'), zod_1.z.literal('Running'), zod_1.z.literal('Completed'), zod_1.z.literal('Failed'), zod_1.z.literal('Cancelled')]).describe(`
8738
+ * * Field Name: Status
8739
+ * * Display Name: Status
8740
+ * * SQL Data Type: nvarchar(50)
8741
+ * * Default Value: Pending
8742
+ * * Value List Type: List
8743
+ * * Possible Values
8744
+ * * Pending
8745
+ * * Running
8746
+ * * Completed
8747
+ * * Failed
8748
+ * * Cancelled
8749
+ * * Description: Current execution status of the prompt run. Valid values: Pending, Running, Completed, Failed, Cancelled`),
8750
+ Cancelled: zod_1.z.boolean().describe(`
8751
+ * * Field Name: Cancelled
8752
+ * * Display Name: Cancelled
8753
+ * * SQL Data Type: bit
8754
+ * * Default Value: 0
8755
+ * * Description: Indicates whether this prompt run was cancelled before completion`),
8756
+ CancellationReason: zod_1.z.string().nullable().describe(`
8757
+ * * Field Name: CancellationReason
8758
+ * * Display Name: Cancellation Reason
8759
+ * * SQL Data Type: nvarchar(MAX)
8760
+ * * Description: Detailed reason for cancellation if the prompt run was cancelled. Could be user_requested, timeout, error, or resource_limit`),
8761
+ ModelPowerRank: zod_1.z.number().nullable().describe(`
8762
+ * * Field Name: ModelPowerRank
8763
+ * * Display Name: Model Power Rank
8764
+ * * SQL Data Type: int
8765
+ * * Description: Power rank of the model that was selected for this run. Lower numbers indicate more powerful models`),
8766
+ SelectionStrategy: zod_1.z.union([zod_1.z.literal('Default'), zod_1.z.literal('Specific'), zod_1.z.literal('ByPower')]).nullable().describe(`
8767
+ * * Field Name: SelectionStrategy
8768
+ * * Display Name: Selection Strategy
8769
+ * * SQL Data Type: nvarchar(50)
8770
+ * * Value List Type: List
8771
+ * * Possible Values
8772
+ * * Default
8773
+ * * Specific
8774
+ * * ByPower
8775
+ * * Description: Strategy used for model selection. Valid values: Default (system default), Specific (specific models configured), ByPower (based on power ranking)`),
8776
+ CacheHit: zod_1.z.boolean().describe(`
8777
+ * * Field Name: CacheHit
8778
+ * * Display Name: Cache Hit
8779
+ * * SQL Data Type: bit
8780
+ * * Default Value: 0
8781
+ * * Description: Indicates whether this result was served from cache rather than executing a new model call`),
8782
+ CacheKey: zod_1.z.string().nullable().describe(`
8783
+ * * Field Name: CacheKey
8784
+ * * Display Name: Cache Key
8785
+ * * SQL Data Type: nvarchar(500)
8786
+ * * Description: Unique key used for caching this prompt result, typically a hash of the prompt and parameters`),
8787
+ JudgeID: zod_1.z.string().nullable().describe(`
8788
+ * * Field Name: JudgeID
8789
+ * * Display Name: Judge ID
8790
+ * * SQL Data Type: uniqueidentifier
8791
+ * * Related Entity/Foreign Key: AI Prompts (vwAIPrompts.ID)
8792
+ * * Description: ID of the AIPrompt used as a judge to evaluate and rank multiple parallel execution results`),
8793
+ JudgeScore: zod_1.z.number().nullable().describe(`
8794
+ * * Field Name: JudgeScore
8795
+ * * Display Name: Judge Score
8796
+ * * SQL Data Type: float(53)
8797
+ * * Description: Score assigned by the judge prompt when evaluating multiple results. Higher scores indicate better results`),
8798
+ WasSelectedResult: zod_1.z.boolean().describe(`
8799
+ * * Field Name: WasSelectedResult
8800
+ * * Display Name: Was Selected Result
8801
+ * * SQL Data Type: bit
8802
+ * * Default Value: 0
8803
+ * * Description: Indicates whether this result was selected as the best result when multiple models were run in parallel`),
8804
+ StreamingEnabled: zod_1.z.boolean().describe(`
8805
+ * * Field Name: StreamingEnabled
8806
+ * * Display Name: Streaming Enabled
8807
+ * * SQL Data Type: bit
8808
+ * * Default Value: 0
8809
+ * * Description: Indicates whether streaming was enabled for this prompt execution`),
8810
+ FirstTokenTime: zod_1.z.number().nullable().describe(`
8811
+ * * Field Name: FirstTokenTime
8812
+ * * Display Name: First Token Time
8813
+ * * SQL Data Type: int
8814
+ * * Description: Time in milliseconds from request initiation to receiving the first token from the model`),
8815
+ ErrorDetails: zod_1.z.string().nullable().describe(`
8816
+ * * Field Name: ErrorDetails
8817
+ * * Display Name: Error Details
8818
+ * * SQL Data Type: nvarchar(MAX)
8819
+ * * Description: Detailed error information in JSON format if the prompt execution failed, including stack traces and error codes`),
8820
+ ChildPromptID: zod_1.z.string().nullable().describe(`
8821
+ * * Field Name: ChildPromptID
8822
+ * * Display Name: Child Prompt ID
8823
+ * * SQL Data Type: uniqueidentifier
8824
+ * * Related Entity/Foreign Key: AI Prompts (vwAIPrompts.ID)
8825
+ * * Description: References the specific child prompt that was executed as part of hierarchical prompt composition. NULL for regular prompts or parent prompts that don't directly execute a child.`),
8826
+ QueueTime: zod_1.z.number().nullable().describe(`
8827
+ * * Field Name: QueueTime
8828
+ * * Display Name: Queue Time
8829
+ * * SQL Data Type: int
8830
+ * * Description: Queue time in milliseconds before the model started processing the request. Provider-specific timing metric.`),
8831
+ PromptTime: zod_1.z.number().nullable().describe(`
8832
+ * * Field Name: PromptTime
8833
+ * * Display Name: Prompt Time
8834
+ * * SQL Data Type: int
8835
+ * * Description: Time in milliseconds for the model to ingest and process the prompt. Provider-specific timing metric.`),
8836
+ CompletionTime: zod_1.z.number().nullable().describe(`
8837
+ * * Field Name: CompletionTime
8838
+ * * Display Name: Completion Time
8839
+ * * SQL Data Type: int
8840
+ * * Description: Time in milliseconds for the model to generate the completion/response tokens. Provider-specific timing metric.`),
8841
+ ModelSpecificResponseDetails: zod_1.z.string().nullable().describe(`
8842
+ * * Field Name: ModelSpecificResponseDetails
8843
+ * * Display Name: Model Specific Response Details
8844
+ * * SQL Data Type: nvarchar(MAX)
8845
+ * * Description: JSON field containing provider-specific response metadata and details not captured in standard fields. Structure varies by AI provider.`),
8691
8846
  Prompt: zod_1.z.string().describe(`
8692
8847
  * * Field Name: Prompt
8693
8848
  * * Display Name: Prompt
@@ -8712,6 +8867,14 @@ exports.AIPromptRunSchema = zod_1.z.object({
8712
8867
  * * Field Name: OriginalModel
8713
8868
  * * Display Name: Original Model
8714
8869
  * * SQL Data Type: nvarchar(50)`),
8870
+ Judge: zod_1.z.string().nullable().describe(`
8871
+ * * Field Name: Judge
8872
+ * * Display Name: Judge
8873
+ * * SQL Data Type: nvarchar(255)`),
8874
+ ChildPrompt: zod_1.z.string().nullable().describe(`
8875
+ * * Field Name: ChildPrompt
8876
+ * * Display Name: Child Prompt
8877
+ * * SQL Data Type: nvarchar(255)`),
8715
8878
  });
8716
8879
  /**
8717
8880
  * zod schema definition for the entity MJ: AI Vendor Type Definitions
@@ -31819,6 +31982,70 @@ each time the agent processes a prompt step.
31819
31982
  this.Set('TotalPromptIterations', value);
31820
31983
  }
31821
31984
  /**
31985
+ * * Field Name: ConfigurationID
31986
+ * * Display Name: Configuration ID
31987
+ * * SQL Data Type: uniqueidentifier
31988
+ * * Related Entity/Foreign Key: MJ: AI Configurations (vwAIConfigurations.ID)
31989
+ * * Description: The AI Configuration used for this agent execution. When set, this configuration was used for all prompts executed by this agent and its sub-agents.
31990
+ */
31991
+ get ConfigurationID() {
31992
+ return this.Get('ConfigurationID');
31993
+ }
31994
+ set ConfigurationID(value) {
31995
+ this.Set('ConfigurationID', value);
31996
+ }
31997
+ /**
31998
+ * * Field Name: OverrideModelID
31999
+ * * Display Name: Override Model ID
32000
+ * * SQL Data Type: uniqueidentifier
32001
+ * * Related Entity/Foreign Key: AI Models (vwAIModels.ID)
32002
+ * * Description: Runtime model override that was used for this execution. When set, this model took precedence over all other model selection methods.
32003
+ */
32004
+ get OverrideModelID() {
32005
+ return this.Get('OverrideModelID');
32006
+ }
32007
+ set OverrideModelID(value) {
32008
+ this.Set('OverrideModelID', value);
32009
+ }
32010
+ /**
32011
+ * * Field Name: OverrideVendorID
32012
+ * * Display Name: Override Vendor ID
32013
+ * * SQL Data Type: uniqueidentifier
32014
+ * * Related Entity/Foreign Key: MJ: AI Vendors (vwAIVendors.ID)
32015
+ * * Description: Runtime vendor override that was used for this execution. When set along with OverrideModelID, this vendor was used to provide the model.
32016
+ */
32017
+ get OverrideVendorID() {
32018
+ return this.Get('OverrideVendorID');
32019
+ }
32020
+ set OverrideVendorID(value) {
32021
+ this.Set('OverrideVendorID', value);
32022
+ }
32023
+ /**
32024
+ * * Field Name: Data
32025
+ * * Display Name: Data
32026
+ * * SQL Data Type: nvarchar(MAX)
32027
+ * * Description: JSON serialized data that was passed for template rendering and prompt execution. This data was passed to the agent's prompt as well as all sub-agents.
32028
+ */
32029
+ get Data() {
32030
+ return this.Get('Data');
32031
+ }
32032
+ set Data(value) {
32033
+ this.Set('Data', value);
32034
+ }
32035
+ /**
32036
+ * * Field Name: Verbose
32037
+ * * Display Name: Verbose
32038
+ * * SQL Data Type: bit
32039
+ * * Default Value: 0
32040
+ * * Description: Indicates whether verbose logging was enabled during this agent execution. When true, detailed decision-making and execution flow was logged.
32041
+ */
32042
+ get Verbose() {
32043
+ return this.Get('Verbose');
32044
+ }
32045
+ set Verbose(value) {
32046
+ this.Set('Verbose', value);
32047
+ }
32048
+ /**
31822
32049
  * * Field Name: Agent
31823
32050
  * * Display Name: Agent
31824
32051
  * * SQL Data Type: nvarchar(255)
@@ -31842,6 +32069,30 @@ each time the agent processes a prompt step.
31842
32069
  get User() {
31843
32070
  return this.Get('User');
31844
32071
  }
32072
+ /**
32073
+ * * Field Name: Configuration
32074
+ * * Display Name: Configuration
32075
+ * * SQL Data Type: nvarchar(100)
32076
+ */
32077
+ get Configuration() {
32078
+ return this.Get('Configuration');
32079
+ }
32080
+ /**
32081
+ * * Field Name: OverrideModel
32082
+ * * Display Name: Override Model
32083
+ * * SQL Data Type: nvarchar(50)
32084
+ */
32085
+ get OverrideModel() {
32086
+ return this.Get('OverrideModel');
32087
+ }
32088
+ /**
32089
+ * * Field Name: OverrideVendor
32090
+ * * Display Name: Override Vendor
32091
+ * * SQL Data Type: nvarchar(50)
32092
+ */
32093
+ get OverrideVendor() {
32094
+ return this.Get('OverrideVendor');
32095
+ }
31845
32096
  };
31846
32097
  exports.AIAgentRunEntity = AIAgentRunEntity;
31847
32098
  exports.AIAgentRunEntity = AIAgentRunEntity = __decorate([
@@ -34854,6 +35105,253 @@ let AIPromptRunEntity = class AIPromptRunEntity extends core_1.BaseEntity {
34854
35105
  this.Set('RerunFromPromptRunID', value);
34855
35106
  }
34856
35107
  /**
35108
+ * * Field Name: ModelSelection
35109
+ * * Display Name: Model Selection
35110
+ * * SQL Data Type: nvarchar(MAX)
35111
+ * * Description: JSON object containing detailed model selection information including all models considered, their scores, and the selection rationale
35112
+ */
35113
+ get ModelSelection() {
35114
+ return this.Get('ModelSelection');
35115
+ }
35116
+ set ModelSelection(value) {
35117
+ this.Set('ModelSelection', value);
35118
+ }
35119
+ /**
35120
+ * * Field Name: Status
35121
+ * * Display Name: Status
35122
+ * * SQL Data Type: nvarchar(50)
35123
+ * * Default Value: Pending
35124
+ * * Value List Type: List
35125
+ * * Possible Values
35126
+ * * Pending
35127
+ * * Running
35128
+ * * Completed
35129
+ * * Failed
35130
+ * * Cancelled
35131
+ * * Description: Current execution status of the prompt run. Valid values: Pending, Running, Completed, Failed, Cancelled
35132
+ */
35133
+ get Status() {
35134
+ return this.Get('Status');
35135
+ }
35136
+ set Status(value) {
35137
+ this.Set('Status', value);
35138
+ }
35139
+ /**
35140
+ * * Field Name: Cancelled
35141
+ * * Display Name: Cancelled
35142
+ * * SQL Data Type: bit
35143
+ * * Default Value: 0
35144
+ * * Description: Indicates whether this prompt run was cancelled before completion
35145
+ */
35146
+ get Cancelled() {
35147
+ return this.Get('Cancelled');
35148
+ }
35149
+ set Cancelled(value) {
35150
+ this.Set('Cancelled', value);
35151
+ }
35152
+ /**
35153
+ * * Field Name: CancellationReason
35154
+ * * Display Name: Cancellation Reason
35155
+ * * SQL Data Type: nvarchar(MAX)
35156
+ * * Description: Detailed reason for cancellation if the prompt run was cancelled. Could be user_requested, timeout, error, or resource_limit
35157
+ */
35158
+ get CancellationReason() {
35159
+ return this.Get('CancellationReason');
35160
+ }
35161
+ set CancellationReason(value) {
35162
+ this.Set('CancellationReason', value);
35163
+ }
35164
+ /**
35165
+ * * Field Name: ModelPowerRank
35166
+ * * Display Name: Model Power Rank
35167
+ * * SQL Data Type: int
35168
+ * * Description: Power rank of the model that was selected for this run. Lower numbers indicate more powerful models
35169
+ */
35170
+ get ModelPowerRank() {
35171
+ return this.Get('ModelPowerRank');
35172
+ }
35173
+ set ModelPowerRank(value) {
35174
+ this.Set('ModelPowerRank', value);
35175
+ }
35176
+ /**
35177
+ * * Field Name: SelectionStrategy
35178
+ * * Display Name: Selection Strategy
35179
+ * * SQL Data Type: nvarchar(50)
35180
+ * * Value List Type: List
35181
+ * * Possible Values
35182
+ * * Default
35183
+ * * Specific
35184
+ * * ByPower
35185
+ * * Description: Strategy used for model selection. Valid values: Default (system default), Specific (specific models configured), ByPower (based on power ranking)
35186
+ */
35187
+ get SelectionStrategy() {
35188
+ return this.Get('SelectionStrategy');
35189
+ }
35190
+ set SelectionStrategy(value) {
35191
+ this.Set('SelectionStrategy', value);
35192
+ }
35193
+ /**
35194
+ * * Field Name: CacheHit
35195
+ * * Display Name: Cache Hit
35196
+ * * SQL Data Type: bit
35197
+ * * Default Value: 0
35198
+ * * Description: Indicates whether this result was served from cache rather than executing a new model call
35199
+ */
35200
+ get CacheHit() {
35201
+ return this.Get('CacheHit');
35202
+ }
35203
+ set CacheHit(value) {
35204
+ this.Set('CacheHit', value);
35205
+ }
35206
+ /**
35207
+ * * Field Name: CacheKey
35208
+ * * Display Name: Cache Key
35209
+ * * SQL Data Type: nvarchar(500)
35210
+ * * Description: Unique key used for caching this prompt result, typically a hash of the prompt and parameters
35211
+ */
35212
+ get CacheKey() {
35213
+ return this.Get('CacheKey');
35214
+ }
35215
+ set CacheKey(value) {
35216
+ this.Set('CacheKey', value);
35217
+ }
35218
+ /**
35219
+ * * Field Name: JudgeID
35220
+ * * Display Name: Judge ID
35221
+ * * SQL Data Type: uniqueidentifier
35222
+ * * Related Entity/Foreign Key: AI Prompts (vwAIPrompts.ID)
35223
+ * * Description: ID of the AIPrompt used as a judge to evaluate and rank multiple parallel execution results
35224
+ */
35225
+ get JudgeID() {
35226
+ return this.Get('JudgeID');
35227
+ }
35228
+ set JudgeID(value) {
35229
+ this.Set('JudgeID', value);
35230
+ }
35231
+ /**
35232
+ * * Field Name: JudgeScore
35233
+ * * Display Name: Judge Score
35234
+ * * SQL Data Type: float(53)
35235
+ * * Description: Score assigned by the judge prompt when evaluating multiple results. Higher scores indicate better results
35236
+ */
35237
+ get JudgeScore() {
35238
+ return this.Get('JudgeScore');
35239
+ }
35240
+ set JudgeScore(value) {
35241
+ this.Set('JudgeScore', value);
35242
+ }
35243
+ /**
35244
+ * * Field Name: WasSelectedResult
35245
+ * * Display Name: Was Selected Result
35246
+ * * SQL Data Type: bit
35247
+ * * Default Value: 0
35248
+ * * Description: Indicates whether this result was selected as the best result when multiple models were run in parallel
35249
+ */
35250
+ get WasSelectedResult() {
35251
+ return this.Get('WasSelectedResult');
35252
+ }
35253
+ set WasSelectedResult(value) {
35254
+ this.Set('WasSelectedResult', value);
35255
+ }
35256
+ /**
35257
+ * * Field Name: StreamingEnabled
35258
+ * * Display Name: Streaming Enabled
35259
+ * * SQL Data Type: bit
35260
+ * * Default Value: 0
35261
+ * * Description: Indicates whether streaming was enabled for this prompt execution
35262
+ */
35263
+ get StreamingEnabled() {
35264
+ return this.Get('StreamingEnabled');
35265
+ }
35266
+ set StreamingEnabled(value) {
35267
+ this.Set('StreamingEnabled', value);
35268
+ }
35269
+ /**
35270
+ * * Field Name: FirstTokenTime
35271
+ * * Display Name: First Token Time
35272
+ * * SQL Data Type: int
35273
+ * * Description: Time in milliseconds from request initiation to receiving the first token from the model
35274
+ */
35275
+ get FirstTokenTime() {
35276
+ return this.Get('FirstTokenTime');
35277
+ }
35278
+ set FirstTokenTime(value) {
35279
+ this.Set('FirstTokenTime', value);
35280
+ }
35281
+ /**
35282
+ * * Field Name: ErrorDetails
35283
+ * * Display Name: Error Details
35284
+ * * SQL Data Type: nvarchar(MAX)
35285
+ * * Description: Detailed error information in JSON format if the prompt execution failed, including stack traces and error codes
35286
+ */
35287
+ get ErrorDetails() {
35288
+ return this.Get('ErrorDetails');
35289
+ }
35290
+ set ErrorDetails(value) {
35291
+ this.Set('ErrorDetails', value);
35292
+ }
35293
+ /**
35294
+ * * Field Name: ChildPromptID
35295
+ * * Display Name: Child Prompt ID
35296
+ * * SQL Data Type: uniqueidentifier
35297
+ * * Related Entity/Foreign Key: AI Prompts (vwAIPrompts.ID)
35298
+ * * Description: References the specific child prompt that was executed as part of hierarchical prompt composition. NULL for regular prompts or parent prompts that don't directly execute a child.
35299
+ */
35300
+ get ChildPromptID() {
35301
+ return this.Get('ChildPromptID');
35302
+ }
35303
+ set ChildPromptID(value) {
35304
+ this.Set('ChildPromptID', value);
35305
+ }
35306
+ /**
35307
+ * * Field Name: QueueTime
35308
+ * * Display Name: Queue Time
35309
+ * * SQL Data Type: int
35310
+ * * Description: Queue time in milliseconds before the model started processing the request. Provider-specific timing metric.
35311
+ */
35312
+ get QueueTime() {
35313
+ return this.Get('QueueTime');
35314
+ }
35315
+ set QueueTime(value) {
35316
+ this.Set('QueueTime', value);
35317
+ }
35318
+ /**
35319
+ * * Field Name: PromptTime
35320
+ * * Display Name: Prompt Time
35321
+ * * SQL Data Type: int
35322
+ * * Description: Time in milliseconds for the model to ingest and process the prompt. Provider-specific timing metric.
35323
+ */
35324
+ get PromptTime() {
35325
+ return this.Get('PromptTime');
35326
+ }
35327
+ set PromptTime(value) {
35328
+ this.Set('PromptTime', value);
35329
+ }
35330
+ /**
35331
+ * * Field Name: CompletionTime
35332
+ * * Display Name: Completion Time
35333
+ * * SQL Data Type: int
35334
+ * * Description: Time in milliseconds for the model to generate the completion/response tokens. Provider-specific timing metric.
35335
+ */
35336
+ get CompletionTime() {
35337
+ return this.Get('CompletionTime');
35338
+ }
35339
+ set CompletionTime(value) {
35340
+ this.Set('CompletionTime', value);
35341
+ }
35342
+ /**
35343
+ * * Field Name: ModelSpecificResponseDetails
35344
+ * * Display Name: Model Specific Response Details
35345
+ * * SQL Data Type: nvarchar(MAX)
35346
+ * * Description: JSON field containing provider-specific response metadata and details not captured in standard fields. Structure varies by AI provider.
35347
+ */
35348
+ get ModelSpecificResponseDetails() {
35349
+ return this.Get('ModelSpecificResponseDetails');
35350
+ }
35351
+ set ModelSpecificResponseDetails(value) {
35352
+ this.Set('ModelSpecificResponseDetails', value);
35353
+ }
35354
+ /**
34857
35355
  * * Field Name: Prompt
34858
35356
  * * Display Name: Prompt
34859
35357
  * * SQL Data Type: nvarchar(255)
@@ -34901,6 +35399,22 @@ let AIPromptRunEntity = class AIPromptRunEntity extends core_1.BaseEntity {
34901
35399
  get OriginalModel() {
34902
35400
  return this.Get('OriginalModel');
34903
35401
  }
35402
+ /**
35403
+ * * Field Name: Judge
35404
+ * * Display Name: Judge
35405
+ * * SQL Data Type: nvarchar(255)
35406
+ */
35407
+ get Judge() {
35408
+ return this.Get('Judge');
35409
+ }
35410
+ /**
35411
+ * * Field Name: ChildPrompt
35412
+ * * Display Name: Child Prompt
35413
+ * * SQL Data Type: nvarchar(255)
35414
+ */
35415
+ get ChildPrompt() {
35416
+ return this.Get('ChildPrompt');
35417
+ }
34904
35418
  };
34905
35419
  exports.AIPromptRunEntity = AIPromptRunEntity;
34906
35420
  exports.AIPromptRunEntity = AIPromptRunEntity = __decorate([
@@ -36927,6 +37441,41 @@ let QueryEntity = class QueryEntity extends core_1.BaseEntity {
36927
37441
  return await super.InnerLoad(compositeKey, EntityRelationshipsToLoad);
36928
37442
  }
36929
37443
  /**
37444
+ * Queries - Delete method override to wrap in transaction since CascadeDeletes is true.
37445
+ * Wrapping in a transaction ensures that all cascade delete operations are handled atomically.
37446
+ * @public
37447
+ * @method
37448
+ * @override
37449
+ * @memberof QueryEntity
37450
+ * @returns {Promise<boolean>} - true if successful, false otherwise
37451
+ */
37452
+ async Delete(options) {
37453
+ if (core_1.Metadata.Provider.ProviderType === core_1.ProviderType.Database) {
37454
+ // For database providers, use the transaction methods directly
37455
+ const provider = core_1.Metadata.Provider;
37456
+ try {
37457
+ await provider.BeginTransaction();
37458
+ const result = await super.Delete(options);
37459
+ if (result) {
37460
+ await provider.CommitTransaction();
37461
+ return true;
37462
+ }
37463
+ else {
37464
+ await provider.RollbackTransaction();
37465
+ return false;
37466
+ }
37467
+ }
37468
+ catch (error) {
37469
+ await provider.RollbackTransaction();
37470
+ throw error;
37471
+ }
37472
+ }
37473
+ else {
37474
+ // For network providers, cascading deletes are handled server-side
37475
+ return super.Delete(options);
37476
+ }
37477
+ }
37478
+ /**
36930
37479
  * * Field Name: ID
36931
37480
  * * Display Name: ID
36932
37481
  * * SQL Data Type: uniqueidentifier