@memberjunction/core-entities 2.51.0 → 2.52.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.
|
@@ -911,6 +911,16 @@ export declare const AIPromptSchema: z.ZodObject<{
|
|
|
911
911
|
CacheMustMatchConfig: z.ZodBoolean;
|
|
912
912
|
PromptRole: z.ZodUnion<[z.ZodLiteral<"System">, z.ZodLiteral<"User">, z.ZodLiteral<"Assistant">, z.ZodLiteral<"SystemOrUser">]>;
|
|
913
913
|
PromptPosition: z.ZodUnion<[z.ZodLiteral<"First">, z.ZodLiteral<"Last">]>;
|
|
914
|
+
Temperature: z.ZodNullable<z.ZodNumber>;
|
|
915
|
+
TopP: z.ZodNullable<z.ZodNumber>;
|
|
916
|
+
TopK: z.ZodNullable<z.ZodNumber>;
|
|
917
|
+
MinP: z.ZodNullable<z.ZodNumber>;
|
|
918
|
+
FrequencyPenalty: z.ZodNullable<z.ZodNumber>;
|
|
919
|
+
PresencePenalty: z.ZodNullable<z.ZodNumber>;
|
|
920
|
+
Seed: z.ZodNullable<z.ZodNumber>;
|
|
921
|
+
StopSequences: z.ZodNullable<z.ZodString>;
|
|
922
|
+
IncludeLogProbs: z.ZodNullable<z.ZodBoolean>;
|
|
923
|
+
TopLogProbs: z.ZodNullable<z.ZodNumber>;
|
|
914
924
|
Template: z.ZodString;
|
|
915
925
|
Category: z.ZodNullable<z.ZodString>;
|
|
916
926
|
Type: z.ZodString;
|
|
@@ -955,6 +965,16 @@ export declare const AIPromptSchema: z.ZodObject<{
|
|
|
955
965
|
CacheMustMatchConfig?: boolean;
|
|
956
966
|
PromptRole?: "User" | "System" | "Assistant" | "SystemOrUser";
|
|
957
967
|
PromptPosition?: "First" | "Last";
|
|
968
|
+
Temperature?: number;
|
|
969
|
+
TopP?: number;
|
|
970
|
+
TopK?: number;
|
|
971
|
+
MinP?: number;
|
|
972
|
+
FrequencyPenalty?: number;
|
|
973
|
+
PresencePenalty?: number;
|
|
974
|
+
Seed?: number;
|
|
975
|
+
StopSequences?: string;
|
|
976
|
+
IncludeLogProbs?: boolean;
|
|
977
|
+
TopLogProbs?: number;
|
|
958
978
|
Template?: string;
|
|
959
979
|
ResultSelectorPrompt?: string;
|
|
960
980
|
}, {
|
|
@@ -996,6 +1016,16 @@ export declare const AIPromptSchema: z.ZodObject<{
|
|
|
996
1016
|
CacheMustMatchConfig?: boolean;
|
|
997
1017
|
PromptRole?: "User" | "System" | "Assistant" | "SystemOrUser";
|
|
998
1018
|
PromptPosition?: "First" | "Last";
|
|
1019
|
+
Temperature?: number;
|
|
1020
|
+
TopP?: number;
|
|
1021
|
+
TopK?: number;
|
|
1022
|
+
MinP?: number;
|
|
1023
|
+
FrequencyPenalty?: number;
|
|
1024
|
+
PresencePenalty?: number;
|
|
1025
|
+
Seed?: number;
|
|
1026
|
+
StopSequences?: string;
|
|
1027
|
+
IncludeLogProbs?: boolean;
|
|
1028
|
+
TopLogProbs?: number;
|
|
999
1029
|
Template?: string;
|
|
1000
1030
|
ResultSelectorPrompt?: string;
|
|
1001
1031
|
}>;
|
|
@@ -5084,6 +5114,17 @@ export declare const AIPromptRunSchema: z.ZodObject<{
|
|
|
5084
5114
|
TokensUsedRollup: z.ZodNullable<z.ZodNumber>;
|
|
5085
5115
|
TokensPromptRollup: z.ZodNullable<z.ZodNumber>;
|
|
5086
5116
|
TokensCompletionRollup: z.ZodNullable<z.ZodNumber>;
|
|
5117
|
+
Temperature: z.ZodNullable<z.ZodNumber>;
|
|
5118
|
+
TopP: z.ZodNullable<z.ZodNumber>;
|
|
5119
|
+
TopK: z.ZodNullable<z.ZodNumber>;
|
|
5120
|
+
MinP: z.ZodNullable<z.ZodNumber>;
|
|
5121
|
+
FrequencyPenalty: z.ZodNullable<z.ZodNumber>;
|
|
5122
|
+
PresencePenalty: z.ZodNullable<z.ZodNumber>;
|
|
5123
|
+
Seed: z.ZodNullable<z.ZodNumber>;
|
|
5124
|
+
StopSequences: z.ZodNullable<z.ZodString>;
|
|
5125
|
+
ResponseFormat: z.ZodNullable<z.ZodString>;
|
|
5126
|
+
LogProbs: z.ZodNullable<z.ZodBoolean>;
|
|
5127
|
+
TopLogProbs: z.ZodNullable<z.ZodNumber>;
|
|
5087
5128
|
Prompt: z.ZodString;
|
|
5088
5129
|
Model: z.ZodString;
|
|
5089
5130
|
Vendor: z.ZodString;
|
|
@@ -5100,6 +5141,16 @@ export declare const AIPromptRunSchema: z.ZodObject<{
|
|
|
5100
5141
|
Model?: string;
|
|
5101
5142
|
ExecutionOrder?: number;
|
|
5102
5143
|
Vendor?: string;
|
|
5144
|
+
ResponseFormat?: string;
|
|
5145
|
+
Temperature?: number;
|
|
5146
|
+
TopP?: number;
|
|
5147
|
+
TopK?: number;
|
|
5148
|
+
MinP?: number;
|
|
5149
|
+
FrequencyPenalty?: number;
|
|
5150
|
+
PresencePenalty?: number;
|
|
5151
|
+
Seed?: number;
|
|
5152
|
+
StopSequences?: string;
|
|
5153
|
+
TopLogProbs?: number;
|
|
5103
5154
|
RunAt?: Date;
|
|
5104
5155
|
VendorID?: string;
|
|
5105
5156
|
ConfigurationID?: string;
|
|
@@ -5123,6 +5174,7 @@ export declare const AIPromptRunSchema: z.ZodObject<{
|
|
|
5123
5174
|
TokensUsedRollup?: number;
|
|
5124
5175
|
TokensPromptRollup?: number;
|
|
5125
5176
|
TokensCompletionRollup?: number;
|
|
5177
|
+
LogProbs?: boolean;
|
|
5126
5178
|
}, {
|
|
5127
5179
|
ID?: string;
|
|
5128
5180
|
__mj_CreatedAt?: Date;
|
|
@@ -5134,6 +5186,16 @@ export declare const AIPromptRunSchema: z.ZodObject<{
|
|
|
5134
5186
|
Model?: string;
|
|
5135
5187
|
ExecutionOrder?: number;
|
|
5136
5188
|
Vendor?: string;
|
|
5189
|
+
ResponseFormat?: string;
|
|
5190
|
+
Temperature?: number;
|
|
5191
|
+
TopP?: number;
|
|
5192
|
+
TopK?: number;
|
|
5193
|
+
MinP?: number;
|
|
5194
|
+
FrequencyPenalty?: number;
|
|
5195
|
+
PresencePenalty?: number;
|
|
5196
|
+
Seed?: number;
|
|
5197
|
+
StopSequences?: string;
|
|
5198
|
+
TopLogProbs?: number;
|
|
5137
5199
|
RunAt?: Date;
|
|
5138
5200
|
VendorID?: string;
|
|
5139
5201
|
ConfigurationID?: string;
|
|
@@ -5157,6 +5219,7 @@ export declare const AIPromptRunSchema: z.ZodObject<{
|
|
|
5157
5219
|
TokensUsedRollup?: number;
|
|
5158
5220
|
TokensPromptRollup?: number;
|
|
5159
5221
|
TokensCompletionRollup?: number;
|
|
5222
|
+
LogProbs?: boolean;
|
|
5160
5223
|
}>;
|
|
5161
5224
|
export type AIPromptRunEntityType = z.infer<typeof AIPromptRunSchema>;
|
|
5162
5225
|
/**
|
|
@@ -10647,6 +10710,87 @@ export declare class AIPromptEntity extends BaseEntity<AIPromptEntityType> {
|
|
|
10647
10710
|
get PromptPosition(): 'First' | 'Last';
|
|
10648
10711
|
set PromptPosition(value: 'First' | 'Last');
|
|
10649
10712
|
/**
|
|
10713
|
+
* * Field Name: Temperature
|
|
10714
|
+
* * Display Name: Temperature
|
|
10715
|
+
* * SQL Data Type: decimal(3, 2)
|
|
10716
|
+
* * Description: Default temperature setting for this prompt. Controls randomness in the output. 0 = more focused and deterministic, 2 = more random and creative. Can be overridden at runtime.
|
|
10717
|
+
*/
|
|
10718
|
+
get Temperature(): number | null;
|
|
10719
|
+
set Temperature(value: number | null);
|
|
10720
|
+
/**
|
|
10721
|
+
* * Field Name: TopP
|
|
10722
|
+
* * Display Name: Top P
|
|
10723
|
+
* * SQL Data Type: decimal(3, 2)
|
|
10724
|
+
* * Description: Default TopP (nucleus sampling) for this prompt. Only consider tokens with cumulative probability up to this value. 1 = consider all tokens. Can be overridden at runtime.
|
|
10725
|
+
*/
|
|
10726
|
+
get TopP(): number | null;
|
|
10727
|
+
set TopP(value: number | null);
|
|
10728
|
+
/**
|
|
10729
|
+
* * Field Name: TopK
|
|
10730
|
+
* * Display Name: Top K
|
|
10731
|
+
* * SQL Data Type: int
|
|
10732
|
+
* * Description: Default TopK sampling for this prompt. Only sample from the top K tokens. Lower values reduce randomness. Can be overridden at runtime.
|
|
10733
|
+
*/
|
|
10734
|
+
get TopK(): number | null;
|
|
10735
|
+
set TopK(value: number | null);
|
|
10736
|
+
/**
|
|
10737
|
+
* * Field Name: MinP
|
|
10738
|
+
* * Display Name: Min P
|
|
10739
|
+
* * SQL Data Type: decimal(3, 2)
|
|
10740
|
+
* * Description: Default MinP (minimum probability) for this prompt. Tokens with probability below this threshold are filtered out. Can be overridden at runtime.
|
|
10741
|
+
*/
|
|
10742
|
+
get MinP(): number | null;
|
|
10743
|
+
set MinP(value: number | null);
|
|
10744
|
+
/**
|
|
10745
|
+
* * Field Name: FrequencyPenalty
|
|
10746
|
+
* * Display Name: Frequency Penalty
|
|
10747
|
+
* * SQL Data Type: decimal(3, 2)
|
|
10748
|
+
* * Description: Default frequency penalty for this prompt. Penalizes tokens based on their frequency in the text. Positive values decrease likelihood of repetition. Can be overridden at runtime.
|
|
10749
|
+
*/
|
|
10750
|
+
get FrequencyPenalty(): number | null;
|
|
10751
|
+
set FrequencyPenalty(value: number | null);
|
|
10752
|
+
/**
|
|
10753
|
+
* * Field Name: PresencePenalty
|
|
10754
|
+
* * Display Name: Presence Penalty
|
|
10755
|
+
* * SQL Data Type: decimal(3, 2)
|
|
10756
|
+
* * Description: Default presence penalty for this prompt. Penalizes tokens that have appeared in the text. Positive values increase topic diversity. Can be overridden at runtime.
|
|
10757
|
+
*/
|
|
10758
|
+
get PresencePenalty(): number | null;
|
|
10759
|
+
set PresencePenalty(value: number | null);
|
|
10760
|
+
/**
|
|
10761
|
+
* * Field Name: Seed
|
|
10762
|
+
* * Display Name: Seed
|
|
10763
|
+
* * SQL Data Type: int
|
|
10764
|
+
* * Description: Default random seed for this prompt. Used for deterministic generation. Same seed produces same output. Can be overridden at runtime.
|
|
10765
|
+
*/
|
|
10766
|
+
get Seed(): number | null;
|
|
10767
|
+
set Seed(value: number | null);
|
|
10768
|
+
/**
|
|
10769
|
+
* * Field Name: StopSequences
|
|
10770
|
+
* * Display Name: Stop Sequences
|
|
10771
|
+
* * SQL Data Type: nvarchar(1000)
|
|
10772
|
+
* * Description: Default stop sequences for this prompt. Comma-delimited list of sequences that will stop generation when encountered. Can be overridden at runtime.
|
|
10773
|
+
*/
|
|
10774
|
+
get StopSequences(): string | null;
|
|
10775
|
+
set StopSequences(value: string | null);
|
|
10776
|
+
/**
|
|
10777
|
+
* * Field Name: IncludeLogProbs
|
|
10778
|
+
* * Display Name: Include Log Probs
|
|
10779
|
+
* * SQL Data Type: bit
|
|
10780
|
+
* * Default Value: 0
|
|
10781
|
+
* * Description: Default setting for including log probabilities in the response. Can be overridden at runtime.
|
|
10782
|
+
*/
|
|
10783
|
+
get IncludeLogProbs(): boolean | null;
|
|
10784
|
+
set IncludeLogProbs(value: boolean | null);
|
|
10785
|
+
/**
|
|
10786
|
+
* * Field Name: TopLogProbs
|
|
10787
|
+
* * Display Name: Top Log Probs
|
|
10788
|
+
* * SQL Data Type: int
|
|
10789
|
+
* * Description: Default number of top log probabilities to include when IncludeLogProbs is true. Can be overridden at runtime.
|
|
10790
|
+
*/
|
|
10791
|
+
get TopLogProbs(): number | null;
|
|
10792
|
+
set TopLogProbs(value: number | null);
|
|
10793
|
+
/**
|
|
10650
10794
|
* * Field Name: Template
|
|
10651
10795
|
* * Display Name: Template
|
|
10652
10796
|
* * SQL Data Type: nvarchar(255)
|
|
@@ -22193,6 +22337,94 @@ export declare class AIPromptRunEntity extends BaseEntity<AIPromptRunEntityType>
|
|
|
22193
22337
|
get TokensCompletionRollup(): number | null;
|
|
22194
22338
|
set TokensCompletionRollup(value: number | null);
|
|
22195
22339
|
/**
|
|
22340
|
+
* * Field Name: Temperature
|
|
22341
|
+
* * Display Name: Temperature
|
|
22342
|
+
* * SQL Data Type: decimal(3, 2)
|
|
22343
|
+
* * Description: The temperature parameter used for this prompt run, controlling randomness in the output (0.0 = deterministic, 2.0 = very random)
|
|
22344
|
+
*/
|
|
22345
|
+
get Temperature(): number | null;
|
|
22346
|
+
set Temperature(value: number | null);
|
|
22347
|
+
/**
|
|
22348
|
+
* * Field Name: TopP
|
|
22349
|
+
* * Display Name: Top P
|
|
22350
|
+
* * SQL Data Type: decimal(3, 2)
|
|
22351
|
+
* * Description: Top-p (nucleus) sampling parameter used for this run. Considers tokens with cumulative probability up to this value (0-1)
|
|
22352
|
+
*/
|
|
22353
|
+
get TopP(): number | null;
|
|
22354
|
+
set TopP(value: number | null);
|
|
22355
|
+
/**
|
|
22356
|
+
* * Field Name: TopK
|
|
22357
|
+
* * Display Name: Top K
|
|
22358
|
+
* * SQL Data Type: int
|
|
22359
|
+
* * Description: Top-k sampling parameter used for this run. Limits sampling to the top K most likely tokens
|
|
22360
|
+
*/
|
|
22361
|
+
get TopK(): number | null;
|
|
22362
|
+
set TopK(value: number | null);
|
|
22363
|
+
/**
|
|
22364
|
+
* * Field Name: MinP
|
|
22365
|
+
* * Display Name: Min P
|
|
22366
|
+
* * SQL Data Type: decimal(3, 2)
|
|
22367
|
+
* * Description: Minimum probability threshold used for token sampling (0-1). Tokens below this probability are filtered out
|
|
22368
|
+
*/
|
|
22369
|
+
get MinP(): number | null;
|
|
22370
|
+
set MinP(value: number | null);
|
|
22371
|
+
/**
|
|
22372
|
+
* * Field Name: FrequencyPenalty
|
|
22373
|
+
* * Display Name: Frequency Penalty
|
|
22374
|
+
* * SQL Data Type: decimal(3, 2)
|
|
22375
|
+
* * Description: Frequency penalty parameter used (-2.0 to 2.0). Positive values reduce repetition of tokens based on their frequency in the output
|
|
22376
|
+
*/
|
|
22377
|
+
get FrequencyPenalty(): number | null;
|
|
22378
|
+
set FrequencyPenalty(value: number | null);
|
|
22379
|
+
/**
|
|
22380
|
+
* * Field Name: PresencePenalty
|
|
22381
|
+
* * Display Name: Presence Penalty
|
|
22382
|
+
* * SQL Data Type: decimal(3, 2)
|
|
22383
|
+
* * Description: Presence penalty parameter used (-2.0 to 2.0). Positive values encourage the model to talk about new topics
|
|
22384
|
+
*/
|
|
22385
|
+
get PresencePenalty(): number | null;
|
|
22386
|
+
set PresencePenalty(value: number | null);
|
|
22387
|
+
/**
|
|
22388
|
+
* * Field Name: Seed
|
|
22389
|
+
* * Display Name: Seed
|
|
22390
|
+
* * SQL Data Type: int
|
|
22391
|
+
* * Description: Random seed used for reproducible outputs. When set, the same seed with identical inputs should produce the same output
|
|
22392
|
+
*/
|
|
22393
|
+
get Seed(): number | null;
|
|
22394
|
+
set Seed(value: number | null);
|
|
22395
|
+
/**
|
|
22396
|
+
* * Field Name: StopSequences
|
|
22397
|
+
* * Display Name: Stop Sequences
|
|
22398
|
+
* * SQL Data Type: nvarchar(MAX)
|
|
22399
|
+
* * Description: JSON array of stop sequences used. The model stops generating when any of these sequences are encountered
|
|
22400
|
+
*/
|
|
22401
|
+
get StopSequences(): string | null;
|
|
22402
|
+
set StopSequences(value: string | null);
|
|
22403
|
+
/**
|
|
22404
|
+
* * Field Name: ResponseFormat
|
|
22405
|
+
* * Display Name: Response Format
|
|
22406
|
+
* * SQL Data Type: nvarchar(50)
|
|
22407
|
+
* * Description: The response format requested for this run (e.g., 'JSON', 'Text', 'Markdown')
|
|
22408
|
+
*/
|
|
22409
|
+
get ResponseFormat(): string | null;
|
|
22410
|
+
set ResponseFormat(value: string | null);
|
|
22411
|
+
/**
|
|
22412
|
+
* * Field Name: LogProbs
|
|
22413
|
+
* * Display Name: Log Probs
|
|
22414
|
+
* * SQL Data Type: bit
|
|
22415
|
+
* * Description: Whether log probabilities were requested for this run
|
|
22416
|
+
*/
|
|
22417
|
+
get LogProbs(): boolean | null;
|
|
22418
|
+
set LogProbs(value: boolean | null);
|
|
22419
|
+
/**
|
|
22420
|
+
* * Field Name: TopLogProbs
|
|
22421
|
+
* * Display Name: Top Log Probs
|
|
22422
|
+
* * SQL Data Type: int
|
|
22423
|
+
* * Description: Number of top log probabilities requested per token (if LogProbs is true)
|
|
22424
|
+
*/
|
|
22425
|
+
get TopLogProbs(): number | null;
|
|
22426
|
+
set TopLogProbs(value: number | null);
|
|
22427
|
+
/**
|
|
22196
22428
|
* * Field Name: Prompt
|
|
22197
22429
|
* * Display Name: Prompt
|
|
22198
22430
|
* * SQL Data Type: nvarchar(255)
|