@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.
|
@@ -4790,9 +4790,17 @@ export declare const AIAgentRunSchema: z.ZodObject<{
|
|
|
4790
4790
|
LastRunID: z.ZodNullable<z.ZodString>;
|
|
4791
4791
|
StartingPayload: z.ZodNullable<z.ZodString>;
|
|
4792
4792
|
TotalPromptIterations: z.ZodNumber;
|
|
4793
|
+
ConfigurationID: z.ZodNullable<z.ZodString>;
|
|
4794
|
+
OverrideModelID: z.ZodNullable<z.ZodString>;
|
|
4795
|
+
OverrideVendorID: z.ZodNullable<z.ZodString>;
|
|
4796
|
+
Data: z.ZodNullable<z.ZodString>;
|
|
4797
|
+
Verbose: z.ZodNullable<z.ZodBoolean>;
|
|
4793
4798
|
Agent: z.ZodNullable<z.ZodString>;
|
|
4794
4799
|
Conversation: z.ZodNullable<z.ZodString>;
|
|
4795
4800
|
User: z.ZodNullable<z.ZodString>;
|
|
4801
|
+
Configuration: z.ZodNullable<z.ZodString>;
|
|
4802
|
+
OverrideModel: z.ZodNullable<z.ZodString>;
|
|
4803
|
+
OverrideVendor: z.ZodNullable<z.ZodString>;
|
|
4796
4804
|
}, "strip", z.ZodTypeAny, {
|
|
4797
4805
|
ID?: string;
|
|
4798
4806
|
__mj_CreatedAt?: Date;
|
|
@@ -4804,6 +4812,8 @@ export declare const AIAgentRunSchema: z.ZodObject<{
|
|
|
4804
4812
|
User?: string;
|
|
4805
4813
|
AgentID?: string;
|
|
4806
4814
|
Agent?: string;
|
|
4815
|
+
ConfigurationID?: string;
|
|
4816
|
+
Configuration?: string;
|
|
4807
4817
|
Success?: boolean;
|
|
4808
4818
|
ErrorMessage?: string;
|
|
4809
4819
|
LastRunID?: string;
|
|
@@ -4828,6 +4838,12 @@ export declare const AIAgentRunSchema: z.ZodObject<{
|
|
|
4828
4838
|
FinalPayload?: string;
|
|
4829
4839
|
StartingPayload?: string;
|
|
4830
4840
|
TotalPromptIterations?: number;
|
|
4841
|
+
OverrideModelID?: string;
|
|
4842
|
+
OverrideVendorID?: string;
|
|
4843
|
+
Data?: string;
|
|
4844
|
+
Verbose?: boolean;
|
|
4845
|
+
OverrideModel?: string;
|
|
4846
|
+
OverrideVendor?: string;
|
|
4831
4847
|
}, {
|
|
4832
4848
|
ID?: string;
|
|
4833
4849
|
__mj_CreatedAt?: Date;
|
|
@@ -4839,6 +4855,8 @@ export declare const AIAgentRunSchema: z.ZodObject<{
|
|
|
4839
4855
|
User?: string;
|
|
4840
4856
|
AgentID?: string;
|
|
4841
4857
|
Agent?: string;
|
|
4858
|
+
ConfigurationID?: string;
|
|
4859
|
+
Configuration?: string;
|
|
4842
4860
|
Success?: boolean;
|
|
4843
4861
|
ErrorMessage?: string;
|
|
4844
4862
|
LastRunID?: string;
|
|
@@ -4863,6 +4881,12 @@ export declare const AIAgentRunSchema: z.ZodObject<{
|
|
|
4863
4881
|
FinalPayload?: string;
|
|
4864
4882
|
StartingPayload?: string;
|
|
4865
4883
|
TotalPromptIterations?: number;
|
|
4884
|
+
OverrideModelID?: string;
|
|
4885
|
+
OverrideVendorID?: string;
|
|
4886
|
+
Data?: string;
|
|
4887
|
+
Verbose?: boolean;
|
|
4888
|
+
OverrideModel?: string;
|
|
4889
|
+
OverrideVendor?: string;
|
|
4866
4890
|
}>;
|
|
4867
4891
|
export type AIAgentRunEntityType = z.infer<typeof AIAgentRunSchema>;
|
|
4868
4892
|
/**
|
|
@@ -5418,17 +5442,39 @@ export declare const AIPromptRunSchema: z.ZodObject<{
|
|
|
5418
5442
|
OriginalRequestStartTime: z.ZodNullable<z.ZodDate>;
|
|
5419
5443
|
TotalFailoverDuration: z.ZodNullable<z.ZodNumber>;
|
|
5420
5444
|
RerunFromPromptRunID: z.ZodNullable<z.ZodString>;
|
|
5445
|
+
ModelSelection: z.ZodNullable<z.ZodString>;
|
|
5446
|
+
Status: z.ZodUnion<[z.ZodLiteral<"Pending">, z.ZodLiteral<"Running">, z.ZodLiteral<"Completed">, z.ZodLiteral<"Failed">, z.ZodLiteral<"Cancelled">]>;
|
|
5447
|
+
Cancelled: z.ZodBoolean;
|
|
5448
|
+
CancellationReason: z.ZodNullable<z.ZodString>;
|
|
5449
|
+
ModelPowerRank: z.ZodNullable<z.ZodNumber>;
|
|
5450
|
+
SelectionStrategy: z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"Default">, z.ZodLiteral<"Specific">, z.ZodLiteral<"ByPower">]>>;
|
|
5451
|
+
CacheHit: z.ZodBoolean;
|
|
5452
|
+
CacheKey: z.ZodNullable<z.ZodString>;
|
|
5453
|
+
JudgeID: z.ZodNullable<z.ZodString>;
|
|
5454
|
+
JudgeScore: z.ZodNullable<z.ZodNumber>;
|
|
5455
|
+
WasSelectedResult: z.ZodBoolean;
|
|
5456
|
+
StreamingEnabled: z.ZodBoolean;
|
|
5457
|
+
FirstTokenTime: z.ZodNullable<z.ZodNumber>;
|
|
5458
|
+
ErrorDetails: z.ZodNullable<z.ZodString>;
|
|
5459
|
+
ChildPromptID: z.ZodNullable<z.ZodString>;
|
|
5460
|
+
QueueTime: z.ZodNullable<z.ZodNumber>;
|
|
5461
|
+
PromptTime: z.ZodNullable<z.ZodNumber>;
|
|
5462
|
+
CompletionTime: z.ZodNullable<z.ZodNumber>;
|
|
5463
|
+
ModelSpecificResponseDetails: z.ZodNullable<z.ZodString>;
|
|
5421
5464
|
Prompt: z.ZodString;
|
|
5422
5465
|
Model: z.ZodString;
|
|
5423
5466
|
Vendor: z.ZodString;
|
|
5424
5467
|
Agent: z.ZodNullable<z.ZodString>;
|
|
5425
5468
|
Configuration: z.ZodNullable<z.ZodString>;
|
|
5426
5469
|
OriginalModel: z.ZodNullable<z.ZodString>;
|
|
5470
|
+
Judge: z.ZodNullable<z.ZodString>;
|
|
5471
|
+
ChildPrompt: z.ZodNullable<z.ZodString>;
|
|
5427
5472
|
}, "strip", z.ZodTypeAny, {
|
|
5428
5473
|
ID?: string;
|
|
5429
5474
|
__mj_CreatedAt?: Date;
|
|
5430
5475
|
__mj_UpdatedAt?: Date;
|
|
5431
5476
|
ParentID?: string;
|
|
5477
|
+
Status?: "Pending" | "Failed" | "Running" | "Completed" | "Cancelled";
|
|
5432
5478
|
AgentID?: string;
|
|
5433
5479
|
Agent?: string;
|
|
5434
5480
|
ModelID?: string;
|
|
@@ -5436,6 +5482,7 @@ export declare const AIPromptRunSchema: z.ZodObject<{
|
|
|
5436
5482
|
ExecutionOrder?: number;
|
|
5437
5483
|
Vendor?: string;
|
|
5438
5484
|
ResponseFormat?: string;
|
|
5485
|
+
SelectionStrategy?: "Default" | "Specific" | "ByPower";
|
|
5439
5486
|
ValidationBehavior?: string;
|
|
5440
5487
|
RetryStrategy?: string;
|
|
5441
5488
|
Temperature?: number;
|
|
@@ -5454,11 +5501,14 @@ export declare const AIPromptRunSchema: z.ZodObject<{
|
|
|
5454
5501
|
Success?: boolean;
|
|
5455
5502
|
ErrorMessage?: string;
|
|
5456
5503
|
Prompt?: string;
|
|
5504
|
+
CompletionTime?: number;
|
|
5457
5505
|
PromptID?: string;
|
|
5458
5506
|
AgentRunID?: string;
|
|
5507
|
+
Cancelled?: boolean;
|
|
5459
5508
|
CompletedAt?: Date;
|
|
5460
5509
|
Result?: string;
|
|
5461
5510
|
TotalCost?: number;
|
|
5511
|
+
CancellationReason?: string;
|
|
5462
5512
|
ExecutionTimeMS?: number;
|
|
5463
5513
|
Messages?: string;
|
|
5464
5514
|
TokensUsed?: number;
|
|
@@ -5491,12 +5541,29 @@ export declare const AIPromptRunSchema: z.ZodObject<{
|
|
|
5491
5541
|
OriginalRequestStartTime?: Date;
|
|
5492
5542
|
TotalFailoverDuration?: number;
|
|
5493
5543
|
RerunFromPromptRunID?: string;
|
|
5544
|
+
ModelSelection?: string;
|
|
5545
|
+
ModelPowerRank?: number;
|
|
5546
|
+
CacheHit?: boolean;
|
|
5547
|
+
CacheKey?: string;
|
|
5548
|
+
JudgeID?: string;
|
|
5549
|
+
JudgeScore?: number;
|
|
5550
|
+
WasSelectedResult?: boolean;
|
|
5551
|
+
StreamingEnabled?: boolean;
|
|
5552
|
+
FirstTokenTime?: number;
|
|
5553
|
+
ErrorDetails?: string;
|
|
5554
|
+
ChildPromptID?: string;
|
|
5555
|
+
QueueTime?: number;
|
|
5556
|
+
PromptTime?: number;
|
|
5557
|
+
ModelSpecificResponseDetails?: string;
|
|
5494
5558
|
OriginalModel?: string;
|
|
5559
|
+
Judge?: string;
|
|
5560
|
+
ChildPrompt?: string;
|
|
5495
5561
|
}, {
|
|
5496
5562
|
ID?: string;
|
|
5497
5563
|
__mj_CreatedAt?: Date;
|
|
5498
5564
|
__mj_UpdatedAt?: Date;
|
|
5499
5565
|
ParentID?: string;
|
|
5566
|
+
Status?: "Pending" | "Failed" | "Running" | "Completed" | "Cancelled";
|
|
5500
5567
|
AgentID?: string;
|
|
5501
5568
|
Agent?: string;
|
|
5502
5569
|
ModelID?: string;
|
|
@@ -5504,6 +5571,7 @@ export declare const AIPromptRunSchema: z.ZodObject<{
|
|
|
5504
5571
|
ExecutionOrder?: number;
|
|
5505
5572
|
Vendor?: string;
|
|
5506
5573
|
ResponseFormat?: string;
|
|
5574
|
+
SelectionStrategy?: "Default" | "Specific" | "ByPower";
|
|
5507
5575
|
ValidationBehavior?: string;
|
|
5508
5576
|
RetryStrategy?: string;
|
|
5509
5577
|
Temperature?: number;
|
|
@@ -5522,11 +5590,14 @@ export declare const AIPromptRunSchema: z.ZodObject<{
|
|
|
5522
5590
|
Success?: boolean;
|
|
5523
5591
|
ErrorMessage?: string;
|
|
5524
5592
|
Prompt?: string;
|
|
5593
|
+
CompletionTime?: number;
|
|
5525
5594
|
PromptID?: string;
|
|
5526
5595
|
AgentRunID?: string;
|
|
5596
|
+
Cancelled?: boolean;
|
|
5527
5597
|
CompletedAt?: Date;
|
|
5528
5598
|
Result?: string;
|
|
5529
5599
|
TotalCost?: number;
|
|
5600
|
+
CancellationReason?: string;
|
|
5530
5601
|
ExecutionTimeMS?: number;
|
|
5531
5602
|
Messages?: string;
|
|
5532
5603
|
TokensUsed?: number;
|
|
@@ -5559,7 +5630,23 @@ export declare const AIPromptRunSchema: z.ZodObject<{
|
|
|
5559
5630
|
OriginalRequestStartTime?: Date;
|
|
5560
5631
|
TotalFailoverDuration?: number;
|
|
5561
5632
|
RerunFromPromptRunID?: string;
|
|
5633
|
+
ModelSelection?: string;
|
|
5634
|
+
ModelPowerRank?: number;
|
|
5635
|
+
CacheHit?: boolean;
|
|
5636
|
+
CacheKey?: string;
|
|
5637
|
+
JudgeID?: string;
|
|
5638
|
+
JudgeScore?: number;
|
|
5639
|
+
WasSelectedResult?: boolean;
|
|
5640
|
+
StreamingEnabled?: boolean;
|
|
5641
|
+
FirstTokenTime?: number;
|
|
5642
|
+
ErrorDetails?: string;
|
|
5643
|
+
ChildPromptID?: string;
|
|
5644
|
+
QueueTime?: number;
|
|
5645
|
+
PromptTime?: number;
|
|
5646
|
+
ModelSpecificResponseDetails?: string;
|
|
5562
5647
|
OriginalModel?: string;
|
|
5648
|
+
Judge?: string;
|
|
5649
|
+
ChildPrompt?: string;
|
|
5563
5650
|
}>;
|
|
5564
5651
|
export type AIPromptRunEntityType = z.infer<typeof AIPromptRunSchema>;
|
|
5565
5652
|
/**
|
|
@@ -6289,8 +6376,8 @@ export declare const QueueTaskSchema: z.ZodObject<{
|
|
|
6289
6376
|
EndedAt?: Date;
|
|
6290
6377
|
Output?: string;
|
|
6291
6378
|
ErrorMessage?: string;
|
|
6292
|
-
QueueID?: string;
|
|
6293
6379
|
Data?: string;
|
|
6380
|
+
QueueID?: string;
|
|
6294
6381
|
Options?: string;
|
|
6295
6382
|
Queue?: string;
|
|
6296
6383
|
}, {
|
|
@@ -6303,8 +6390,8 @@ export declare const QueueTaskSchema: z.ZodObject<{
|
|
|
6303
6390
|
EndedAt?: Date;
|
|
6304
6391
|
Output?: string;
|
|
6305
6392
|
ErrorMessage?: string;
|
|
6306
|
-
QueueID?: string;
|
|
6307
6393
|
Data?: string;
|
|
6394
|
+
QueueID?: string;
|
|
6308
6395
|
Options?: string;
|
|
6309
6396
|
Queue?: string;
|
|
6310
6397
|
}>;
|
|
@@ -21846,6 +21933,50 @@ each time the agent processes a prompt step.
|
|
|
21846
21933
|
get TotalPromptIterations(): number;
|
|
21847
21934
|
set TotalPromptIterations(value: number);
|
|
21848
21935
|
/**
|
|
21936
|
+
* * Field Name: ConfigurationID
|
|
21937
|
+
* * Display Name: Configuration ID
|
|
21938
|
+
* * SQL Data Type: uniqueidentifier
|
|
21939
|
+
* * Related Entity/Foreign Key: MJ: AI Configurations (vwAIConfigurations.ID)
|
|
21940
|
+
* * 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.
|
|
21941
|
+
*/
|
|
21942
|
+
get ConfigurationID(): string | null;
|
|
21943
|
+
set ConfigurationID(value: string | null);
|
|
21944
|
+
/**
|
|
21945
|
+
* * Field Name: OverrideModelID
|
|
21946
|
+
* * Display Name: Override Model ID
|
|
21947
|
+
* * SQL Data Type: uniqueidentifier
|
|
21948
|
+
* * Related Entity/Foreign Key: AI Models (vwAIModels.ID)
|
|
21949
|
+
* * Description: Runtime model override that was used for this execution. When set, this model took precedence over all other model selection methods.
|
|
21950
|
+
*/
|
|
21951
|
+
get OverrideModelID(): string | null;
|
|
21952
|
+
set OverrideModelID(value: string | null);
|
|
21953
|
+
/**
|
|
21954
|
+
* * Field Name: OverrideVendorID
|
|
21955
|
+
* * Display Name: Override Vendor ID
|
|
21956
|
+
* * SQL Data Type: uniqueidentifier
|
|
21957
|
+
* * Related Entity/Foreign Key: MJ: AI Vendors (vwAIVendors.ID)
|
|
21958
|
+
* * Description: Runtime vendor override that was used for this execution. When set along with OverrideModelID, this vendor was used to provide the model.
|
|
21959
|
+
*/
|
|
21960
|
+
get OverrideVendorID(): string | null;
|
|
21961
|
+
set OverrideVendorID(value: string | null);
|
|
21962
|
+
/**
|
|
21963
|
+
* * Field Name: Data
|
|
21964
|
+
* * Display Name: Data
|
|
21965
|
+
* * SQL Data Type: nvarchar(MAX)
|
|
21966
|
+
* * 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.
|
|
21967
|
+
*/
|
|
21968
|
+
get Data(): string | null;
|
|
21969
|
+
set Data(value: string | null);
|
|
21970
|
+
/**
|
|
21971
|
+
* * Field Name: Verbose
|
|
21972
|
+
* * Display Name: Verbose
|
|
21973
|
+
* * SQL Data Type: bit
|
|
21974
|
+
* * Default Value: 0
|
|
21975
|
+
* * Description: Indicates whether verbose logging was enabled during this agent execution. When true, detailed decision-making and execution flow was logged.
|
|
21976
|
+
*/
|
|
21977
|
+
get Verbose(): boolean | null;
|
|
21978
|
+
set Verbose(value: boolean | null);
|
|
21979
|
+
/**
|
|
21849
21980
|
* * Field Name: Agent
|
|
21850
21981
|
* * Display Name: Agent
|
|
21851
21982
|
* * SQL Data Type: nvarchar(255)
|
|
@@ -21863,6 +21994,24 @@ each time the agent processes a prompt step.
|
|
|
21863
21994
|
* * SQL Data Type: nvarchar(100)
|
|
21864
21995
|
*/
|
|
21865
21996
|
get User(): string | null;
|
|
21997
|
+
/**
|
|
21998
|
+
* * Field Name: Configuration
|
|
21999
|
+
* * Display Name: Configuration
|
|
22000
|
+
* * SQL Data Type: nvarchar(100)
|
|
22001
|
+
*/
|
|
22002
|
+
get Configuration(): string | null;
|
|
22003
|
+
/**
|
|
22004
|
+
* * Field Name: OverrideModel
|
|
22005
|
+
* * Display Name: Override Model
|
|
22006
|
+
* * SQL Data Type: nvarchar(50)
|
|
22007
|
+
*/
|
|
22008
|
+
get OverrideModel(): string | null;
|
|
22009
|
+
/**
|
|
22010
|
+
* * Field Name: OverrideVendor
|
|
22011
|
+
* * Display Name: Override Vendor
|
|
22012
|
+
* * SQL Data Type: nvarchar(50)
|
|
22013
|
+
*/
|
|
22014
|
+
get OverrideVendor(): string | null;
|
|
21866
22015
|
}
|
|
21867
22016
|
/**
|
|
21868
22017
|
* MJ: AI Agent Step Paths - strongly typed entity sub-class
|
|
@@ -23957,6 +24106,177 @@ export declare class AIPromptRunEntity extends BaseEntity<AIPromptRunEntityType>
|
|
|
23957
24106
|
get RerunFromPromptRunID(): string | null;
|
|
23958
24107
|
set RerunFromPromptRunID(value: string | null);
|
|
23959
24108
|
/**
|
|
24109
|
+
* * Field Name: ModelSelection
|
|
24110
|
+
* * Display Name: Model Selection
|
|
24111
|
+
* * SQL Data Type: nvarchar(MAX)
|
|
24112
|
+
* * Description: JSON object containing detailed model selection information including all models considered, their scores, and the selection rationale
|
|
24113
|
+
*/
|
|
24114
|
+
get ModelSelection(): string | null;
|
|
24115
|
+
set ModelSelection(value: string | null);
|
|
24116
|
+
/**
|
|
24117
|
+
* * Field Name: Status
|
|
24118
|
+
* * Display Name: Status
|
|
24119
|
+
* * SQL Data Type: nvarchar(50)
|
|
24120
|
+
* * Default Value: Pending
|
|
24121
|
+
* * Value List Type: List
|
|
24122
|
+
* * Possible Values
|
|
24123
|
+
* * Pending
|
|
24124
|
+
* * Running
|
|
24125
|
+
* * Completed
|
|
24126
|
+
* * Failed
|
|
24127
|
+
* * Cancelled
|
|
24128
|
+
* * Description: Current execution status of the prompt run. Valid values: Pending, Running, Completed, Failed, Cancelled
|
|
24129
|
+
*/
|
|
24130
|
+
get Status(): 'Pending' | 'Running' | 'Completed' | 'Failed' | 'Cancelled';
|
|
24131
|
+
set Status(value: 'Pending' | 'Running' | 'Completed' | 'Failed' | 'Cancelled');
|
|
24132
|
+
/**
|
|
24133
|
+
* * Field Name: Cancelled
|
|
24134
|
+
* * Display Name: Cancelled
|
|
24135
|
+
* * SQL Data Type: bit
|
|
24136
|
+
* * Default Value: 0
|
|
24137
|
+
* * Description: Indicates whether this prompt run was cancelled before completion
|
|
24138
|
+
*/
|
|
24139
|
+
get Cancelled(): boolean;
|
|
24140
|
+
set Cancelled(value: boolean);
|
|
24141
|
+
/**
|
|
24142
|
+
* * Field Name: CancellationReason
|
|
24143
|
+
* * Display Name: Cancellation Reason
|
|
24144
|
+
* * SQL Data Type: nvarchar(MAX)
|
|
24145
|
+
* * Description: Detailed reason for cancellation if the prompt run was cancelled. Could be user_requested, timeout, error, or resource_limit
|
|
24146
|
+
*/
|
|
24147
|
+
get CancellationReason(): string | null;
|
|
24148
|
+
set CancellationReason(value: string | null);
|
|
24149
|
+
/**
|
|
24150
|
+
* * Field Name: ModelPowerRank
|
|
24151
|
+
* * Display Name: Model Power Rank
|
|
24152
|
+
* * SQL Data Type: int
|
|
24153
|
+
* * Description: Power rank of the model that was selected for this run. Lower numbers indicate more powerful models
|
|
24154
|
+
*/
|
|
24155
|
+
get ModelPowerRank(): number | null;
|
|
24156
|
+
set ModelPowerRank(value: number | null);
|
|
24157
|
+
/**
|
|
24158
|
+
* * Field Name: SelectionStrategy
|
|
24159
|
+
* * Display Name: Selection Strategy
|
|
24160
|
+
* * SQL Data Type: nvarchar(50)
|
|
24161
|
+
* * Value List Type: List
|
|
24162
|
+
* * Possible Values
|
|
24163
|
+
* * Default
|
|
24164
|
+
* * Specific
|
|
24165
|
+
* * ByPower
|
|
24166
|
+
* * Description: Strategy used for model selection. Valid values: Default (system default), Specific (specific models configured), ByPower (based on power ranking)
|
|
24167
|
+
*/
|
|
24168
|
+
get SelectionStrategy(): 'Default' | 'Specific' | 'ByPower' | null;
|
|
24169
|
+
set SelectionStrategy(value: 'Default' | 'Specific' | 'ByPower' | null);
|
|
24170
|
+
/**
|
|
24171
|
+
* * Field Name: CacheHit
|
|
24172
|
+
* * Display Name: Cache Hit
|
|
24173
|
+
* * SQL Data Type: bit
|
|
24174
|
+
* * Default Value: 0
|
|
24175
|
+
* * Description: Indicates whether this result was served from cache rather than executing a new model call
|
|
24176
|
+
*/
|
|
24177
|
+
get CacheHit(): boolean;
|
|
24178
|
+
set CacheHit(value: boolean);
|
|
24179
|
+
/**
|
|
24180
|
+
* * Field Name: CacheKey
|
|
24181
|
+
* * Display Name: Cache Key
|
|
24182
|
+
* * SQL Data Type: nvarchar(500)
|
|
24183
|
+
* * Description: Unique key used for caching this prompt result, typically a hash of the prompt and parameters
|
|
24184
|
+
*/
|
|
24185
|
+
get CacheKey(): string | null;
|
|
24186
|
+
set CacheKey(value: string | null);
|
|
24187
|
+
/**
|
|
24188
|
+
* * Field Name: JudgeID
|
|
24189
|
+
* * Display Name: Judge ID
|
|
24190
|
+
* * SQL Data Type: uniqueidentifier
|
|
24191
|
+
* * Related Entity/Foreign Key: AI Prompts (vwAIPrompts.ID)
|
|
24192
|
+
* * Description: ID of the AIPrompt used as a judge to evaluate and rank multiple parallel execution results
|
|
24193
|
+
*/
|
|
24194
|
+
get JudgeID(): string | null;
|
|
24195
|
+
set JudgeID(value: string | null);
|
|
24196
|
+
/**
|
|
24197
|
+
* * Field Name: JudgeScore
|
|
24198
|
+
* * Display Name: Judge Score
|
|
24199
|
+
* * SQL Data Type: float(53)
|
|
24200
|
+
* * Description: Score assigned by the judge prompt when evaluating multiple results. Higher scores indicate better results
|
|
24201
|
+
*/
|
|
24202
|
+
get JudgeScore(): number | null;
|
|
24203
|
+
set JudgeScore(value: number | null);
|
|
24204
|
+
/**
|
|
24205
|
+
* * Field Name: WasSelectedResult
|
|
24206
|
+
* * Display Name: Was Selected Result
|
|
24207
|
+
* * SQL Data Type: bit
|
|
24208
|
+
* * Default Value: 0
|
|
24209
|
+
* * Description: Indicates whether this result was selected as the best result when multiple models were run in parallel
|
|
24210
|
+
*/
|
|
24211
|
+
get WasSelectedResult(): boolean;
|
|
24212
|
+
set WasSelectedResult(value: boolean);
|
|
24213
|
+
/**
|
|
24214
|
+
* * Field Name: StreamingEnabled
|
|
24215
|
+
* * Display Name: Streaming Enabled
|
|
24216
|
+
* * SQL Data Type: bit
|
|
24217
|
+
* * Default Value: 0
|
|
24218
|
+
* * Description: Indicates whether streaming was enabled for this prompt execution
|
|
24219
|
+
*/
|
|
24220
|
+
get StreamingEnabled(): boolean;
|
|
24221
|
+
set StreamingEnabled(value: boolean);
|
|
24222
|
+
/**
|
|
24223
|
+
* * Field Name: FirstTokenTime
|
|
24224
|
+
* * Display Name: First Token Time
|
|
24225
|
+
* * SQL Data Type: int
|
|
24226
|
+
* * Description: Time in milliseconds from request initiation to receiving the first token from the model
|
|
24227
|
+
*/
|
|
24228
|
+
get FirstTokenTime(): number | null;
|
|
24229
|
+
set FirstTokenTime(value: number | null);
|
|
24230
|
+
/**
|
|
24231
|
+
* * Field Name: ErrorDetails
|
|
24232
|
+
* * Display Name: Error Details
|
|
24233
|
+
* * SQL Data Type: nvarchar(MAX)
|
|
24234
|
+
* * Description: Detailed error information in JSON format if the prompt execution failed, including stack traces and error codes
|
|
24235
|
+
*/
|
|
24236
|
+
get ErrorDetails(): string | null;
|
|
24237
|
+
set ErrorDetails(value: string | null);
|
|
24238
|
+
/**
|
|
24239
|
+
* * Field Name: ChildPromptID
|
|
24240
|
+
* * Display Name: Child Prompt ID
|
|
24241
|
+
* * SQL Data Type: uniqueidentifier
|
|
24242
|
+
* * Related Entity/Foreign Key: AI Prompts (vwAIPrompts.ID)
|
|
24243
|
+
* * 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.
|
|
24244
|
+
*/
|
|
24245
|
+
get ChildPromptID(): string | null;
|
|
24246
|
+
set ChildPromptID(value: string | null);
|
|
24247
|
+
/**
|
|
24248
|
+
* * Field Name: QueueTime
|
|
24249
|
+
* * Display Name: Queue Time
|
|
24250
|
+
* * SQL Data Type: int
|
|
24251
|
+
* * Description: Queue time in milliseconds before the model started processing the request. Provider-specific timing metric.
|
|
24252
|
+
*/
|
|
24253
|
+
get QueueTime(): number | null;
|
|
24254
|
+
set QueueTime(value: number | null);
|
|
24255
|
+
/**
|
|
24256
|
+
* * Field Name: PromptTime
|
|
24257
|
+
* * Display Name: Prompt Time
|
|
24258
|
+
* * SQL Data Type: int
|
|
24259
|
+
* * Description: Time in milliseconds for the model to ingest and process the prompt. Provider-specific timing metric.
|
|
24260
|
+
*/
|
|
24261
|
+
get PromptTime(): number | null;
|
|
24262
|
+
set PromptTime(value: number | null);
|
|
24263
|
+
/**
|
|
24264
|
+
* * Field Name: CompletionTime
|
|
24265
|
+
* * Display Name: Completion Time
|
|
24266
|
+
* * SQL Data Type: int
|
|
24267
|
+
* * Description: Time in milliseconds for the model to generate the completion/response tokens. Provider-specific timing metric.
|
|
24268
|
+
*/
|
|
24269
|
+
get CompletionTime(): number | null;
|
|
24270
|
+
set CompletionTime(value: number | null);
|
|
24271
|
+
/**
|
|
24272
|
+
* * Field Name: ModelSpecificResponseDetails
|
|
24273
|
+
* * Display Name: Model Specific Response Details
|
|
24274
|
+
* * SQL Data Type: nvarchar(MAX)
|
|
24275
|
+
* * Description: JSON field containing provider-specific response metadata and details not captured in standard fields. Structure varies by AI provider.
|
|
24276
|
+
*/
|
|
24277
|
+
get ModelSpecificResponseDetails(): string | null;
|
|
24278
|
+
set ModelSpecificResponseDetails(value: string | null);
|
|
24279
|
+
/**
|
|
23960
24280
|
* * Field Name: Prompt
|
|
23961
24281
|
* * Display Name: Prompt
|
|
23962
24282
|
* * SQL Data Type: nvarchar(255)
|
|
@@ -23992,6 +24312,18 @@ export declare class AIPromptRunEntity extends BaseEntity<AIPromptRunEntityType>
|
|
|
23992
24312
|
* * SQL Data Type: nvarchar(50)
|
|
23993
24313
|
*/
|
|
23994
24314
|
get OriginalModel(): string | null;
|
|
24315
|
+
/**
|
|
24316
|
+
* * Field Name: Judge
|
|
24317
|
+
* * Display Name: Judge
|
|
24318
|
+
* * SQL Data Type: nvarchar(255)
|
|
24319
|
+
*/
|
|
24320
|
+
get Judge(): string | null;
|
|
24321
|
+
/**
|
|
24322
|
+
* * Field Name: ChildPrompt
|
|
24323
|
+
* * Display Name: Child Prompt
|
|
24324
|
+
* * SQL Data Type: nvarchar(255)
|
|
24325
|
+
*/
|
|
24326
|
+
get ChildPrompt(): string | null;
|
|
23995
24327
|
}
|
|
23996
24328
|
/**
|
|
23997
24329
|
* MJ: AI Vendor Type Definitions - strongly typed entity sub-class
|
|
@@ -25415,6 +25747,16 @@ export declare class QueryEntity extends BaseEntity<QueryEntityType> {
|
|
|
25415
25747
|
*/
|
|
25416
25748
|
Load(ID: string, EntityRelationshipsToLoad?: string[]): Promise<boolean>;
|
|
25417
25749
|
/**
|
|
25750
|
+
* Queries - Delete method override to wrap in transaction since CascadeDeletes is true.
|
|
25751
|
+
* Wrapping in a transaction ensures that all cascade delete operations are handled atomically.
|
|
25752
|
+
* @public
|
|
25753
|
+
* @method
|
|
25754
|
+
* @override
|
|
25755
|
+
* @memberof QueryEntity
|
|
25756
|
+
* @returns {Promise<boolean>} - true if successful, false otherwise
|
|
25757
|
+
*/
|
|
25758
|
+
Delete(options?: EntityDeleteOptions): Promise<boolean>;
|
|
25759
|
+
/**
|
|
25418
25760
|
* * Field Name: ID
|
|
25419
25761
|
* * Display Name: ID
|
|
25420
25762
|
* * SQL Data Type: uniqueidentifier
|