@memberjunction/server 2.51.0 → 2.53.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.
@@ -5829,6 +5829,16 @@ let AIPrompt_ = class AIPrompt_ {
5829
5829
  CacheMustMatchConfig;
5830
5830
  PromptRole;
5831
5831
  PromptPosition;
5832
+ Temperature;
5833
+ TopP;
5834
+ TopK;
5835
+ MinP;
5836
+ FrequencyPenalty;
5837
+ PresencePenalty;
5838
+ Seed;
5839
+ StopSequences;
5840
+ IncludeLogProbs;
5841
+ TopLogProbs;
5832
5842
  Template;
5833
5843
  Category;
5834
5844
  Type;
@@ -6005,6 +6015,47 @@ __decorate([
6005
6015
  MaxLength(40),
6006
6016
  __metadata("design:type", String)
6007
6017
  ], AIPrompt_.prototype, "PromptPosition", void 0);
6018
+ __decorate([
6019
+ Field(() => Float, { nullable: true, 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.` }),
6020
+ __metadata("design:type", Number)
6021
+ ], AIPrompt_.prototype, "Temperature", void 0);
6022
+ __decorate([
6023
+ Field(() => Float, { nullable: true, 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.` }),
6024
+ __metadata("design:type", Number)
6025
+ ], AIPrompt_.prototype, "TopP", void 0);
6026
+ __decorate([
6027
+ Field(() => Int, { nullable: true, description: `Default TopK sampling for this prompt. Only sample from the top K tokens. Lower values reduce randomness. Can be overridden at runtime.` }),
6028
+ __metadata("design:type", Number)
6029
+ ], AIPrompt_.prototype, "TopK", void 0);
6030
+ __decorate([
6031
+ Field(() => Float, { nullable: true, description: `Default MinP (minimum probability) for this prompt. Tokens with probability below this threshold are filtered out. Can be overridden at runtime.` }),
6032
+ __metadata("design:type", Number)
6033
+ ], AIPrompt_.prototype, "MinP", void 0);
6034
+ __decorate([
6035
+ Field(() => Float, { nullable: true, 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.` }),
6036
+ __metadata("design:type", Number)
6037
+ ], AIPrompt_.prototype, "FrequencyPenalty", void 0);
6038
+ __decorate([
6039
+ Field(() => Float, { nullable: true, 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.` }),
6040
+ __metadata("design:type", Number)
6041
+ ], AIPrompt_.prototype, "PresencePenalty", void 0);
6042
+ __decorate([
6043
+ Field(() => Int, { nullable: true, description: `Default random seed for this prompt. Used for deterministic generation. Same seed produces same output. Can be overridden at runtime.` }),
6044
+ __metadata("design:type", Number)
6045
+ ], AIPrompt_.prototype, "Seed", void 0);
6046
+ __decorate([
6047
+ Field({ nullable: true, description: `Default stop sequences for this prompt. Comma-delimited list of sequences that will stop generation when encountered. Can be overridden at runtime.` }),
6048
+ MaxLength(2000),
6049
+ __metadata("design:type", String)
6050
+ ], AIPrompt_.prototype, "StopSequences", void 0);
6051
+ __decorate([
6052
+ Field(() => Boolean, { nullable: true, description: `Default setting for including log probabilities in the response. Can be overridden at runtime.` }),
6053
+ __metadata("design:type", Boolean)
6054
+ ], AIPrompt_.prototype, "IncludeLogProbs", void 0);
6055
+ __decorate([
6056
+ Field(() => Int, { nullable: true, description: `Default number of top log probabilities to include when IncludeLogProbs is true. Can be overridden at runtime.` }),
6057
+ __metadata("design:type", Number)
6058
+ ], AIPrompt_.prototype, "TopLogProbs", void 0);
6008
6059
  __decorate([
6009
6060
  Field(),
6010
6061
  MaxLength(510),
@@ -6104,6 +6155,16 @@ let CreateAIPromptInput = class CreateAIPromptInput {
6104
6155
  CacheMustMatchConfig;
6105
6156
  PromptRole;
6106
6157
  PromptPosition;
6158
+ Temperature;
6159
+ TopP;
6160
+ TopK;
6161
+ MinP;
6162
+ FrequencyPenalty;
6163
+ PresencePenalty;
6164
+ Seed;
6165
+ StopSequences;
6166
+ IncludeLogProbs;
6167
+ TopLogProbs;
6107
6168
  };
6108
6169
  __decorate([
6109
6170
  Field({ nullable: true }),
@@ -6237,6 +6298,46 @@ __decorate([
6237
6298
  Field({ nullable: true }),
6238
6299
  __metadata("design:type", String)
6239
6300
  ], CreateAIPromptInput.prototype, "PromptPosition", void 0);
6301
+ __decorate([
6302
+ Field(() => Float, { nullable: true }),
6303
+ __metadata("design:type", Number)
6304
+ ], CreateAIPromptInput.prototype, "Temperature", void 0);
6305
+ __decorate([
6306
+ Field(() => Float, { nullable: true }),
6307
+ __metadata("design:type", Number)
6308
+ ], CreateAIPromptInput.prototype, "TopP", void 0);
6309
+ __decorate([
6310
+ Field(() => Int, { nullable: true }),
6311
+ __metadata("design:type", Number)
6312
+ ], CreateAIPromptInput.prototype, "TopK", void 0);
6313
+ __decorate([
6314
+ Field(() => Float, { nullable: true }),
6315
+ __metadata("design:type", Number)
6316
+ ], CreateAIPromptInput.prototype, "MinP", void 0);
6317
+ __decorate([
6318
+ Field(() => Float, { nullable: true }),
6319
+ __metadata("design:type", Number)
6320
+ ], CreateAIPromptInput.prototype, "FrequencyPenalty", void 0);
6321
+ __decorate([
6322
+ Field(() => Float, { nullable: true }),
6323
+ __metadata("design:type", Number)
6324
+ ], CreateAIPromptInput.prototype, "PresencePenalty", void 0);
6325
+ __decorate([
6326
+ Field(() => Int, { nullable: true }),
6327
+ __metadata("design:type", Number)
6328
+ ], CreateAIPromptInput.prototype, "Seed", void 0);
6329
+ __decorate([
6330
+ Field({ nullable: true }),
6331
+ __metadata("design:type", String)
6332
+ ], CreateAIPromptInput.prototype, "StopSequences", void 0);
6333
+ __decorate([
6334
+ Field(() => Boolean, { nullable: true }),
6335
+ __metadata("design:type", Boolean)
6336
+ ], CreateAIPromptInput.prototype, "IncludeLogProbs", void 0);
6337
+ __decorate([
6338
+ Field(() => Int, { nullable: true }),
6339
+ __metadata("design:type", Number)
6340
+ ], CreateAIPromptInput.prototype, "TopLogProbs", void 0);
6240
6341
  CreateAIPromptInput = __decorate([
6241
6342
  InputType()
6242
6343
  ], CreateAIPromptInput);
@@ -6275,6 +6376,16 @@ let UpdateAIPromptInput = class UpdateAIPromptInput {
6275
6376
  CacheMustMatchConfig;
6276
6377
  PromptRole;
6277
6378
  PromptPosition;
6379
+ Temperature;
6380
+ TopP;
6381
+ TopK;
6382
+ MinP;
6383
+ FrequencyPenalty;
6384
+ PresencePenalty;
6385
+ Seed;
6386
+ StopSequences;
6387
+ IncludeLogProbs;
6388
+ TopLogProbs;
6278
6389
  OldValues___;
6279
6390
  };
6280
6391
  __decorate([
@@ -6409,6 +6520,46 @@ __decorate([
6409
6520
  Field({ nullable: true }),
6410
6521
  __metadata("design:type", String)
6411
6522
  ], UpdateAIPromptInput.prototype, "PromptPosition", void 0);
6523
+ __decorate([
6524
+ Field(() => Float, { nullable: true }),
6525
+ __metadata("design:type", Number)
6526
+ ], UpdateAIPromptInput.prototype, "Temperature", void 0);
6527
+ __decorate([
6528
+ Field(() => Float, { nullable: true }),
6529
+ __metadata("design:type", Number)
6530
+ ], UpdateAIPromptInput.prototype, "TopP", void 0);
6531
+ __decorate([
6532
+ Field(() => Int, { nullable: true }),
6533
+ __metadata("design:type", Number)
6534
+ ], UpdateAIPromptInput.prototype, "TopK", void 0);
6535
+ __decorate([
6536
+ Field(() => Float, { nullable: true }),
6537
+ __metadata("design:type", Number)
6538
+ ], UpdateAIPromptInput.prototype, "MinP", void 0);
6539
+ __decorate([
6540
+ Field(() => Float, { nullable: true }),
6541
+ __metadata("design:type", Number)
6542
+ ], UpdateAIPromptInput.prototype, "FrequencyPenalty", void 0);
6543
+ __decorate([
6544
+ Field(() => Float, { nullable: true }),
6545
+ __metadata("design:type", Number)
6546
+ ], UpdateAIPromptInput.prototype, "PresencePenalty", void 0);
6547
+ __decorate([
6548
+ Field(() => Int, { nullable: true }),
6549
+ __metadata("design:type", Number)
6550
+ ], UpdateAIPromptInput.prototype, "Seed", void 0);
6551
+ __decorate([
6552
+ Field({ nullable: true }),
6553
+ __metadata("design:type", String)
6554
+ ], UpdateAIPromptInput.prototype, "StopSequences", void 0);
6555
+ __decorate([
6556
+ Field(() => Boolean, { nullable: true }),
6557
+ __metadata("design:type", Boolean)
6558
+ ], UpdateAIPromptInput.prototype, "IncludeLogProbs", void 0);
6559
+ __decorate([
6560
+ Field(() => Int, { nullable: true }),
6561
+ __metadata("design:type", Number)
6562
+ ], UpdateAIPromptInput.prototype, "TopLogProbs", void 0);
6412
6563
  __decorate([
6413
6564
  Field(() => [KeyValuePairInput], { nullable: true }),
6414
6565
  __metadata("design:type", Array)
@@ -41712,8 +41863,10 @@ let Action_ = class Action_ {
41712
41863
  _mj__CreatedAt;
41713
41864
  _mj__UpdatedAt;
41714
41865
  DriverClass;
41866
+ ParentID;
41715
41867
  Category;
41716
41868
  CodeApprovedByUser;
41869
+ Parent;
41717
41870
  ActionParams_ActionIDArray;
41718
41871
  ActionLibraries_ActionIDArray;
41719
41872
  ScheduledActions_ActionIDArray;
@@ -41723,6 +41876,7 @@ let Action_ = class Action_ {
41723
41876
  EntityActions_ActionIDArray;
41724
41877
  ActionExecutionLogs_ActionIDArray;
41725
41878
  ActionAuthorizations_ActionIDArray;
41879
+ Actions_ParentIDArray;
41726
41880
  };
41727
41881
  __decorate([
41728
41882
  Field(),
@@ -41815,6 +41969,11 @@ __decorate([
41815
41969
  MaxLength(510),
41816
41970
  __metadata("design:type", String)
41817
41971
  ], Action_.prototype, "DriverClass", void 0);
41972
+ __decorate([
41973
+ Field({ nullable: true, description: `Optional ID of the parent action this action inherits from. Used for hierarchical action composition where child actions can specialize parent actions.` }),
41974
+ MaxLength(16),
41975
+ __metadata("design:type", String)
41976
+ ], Action_.prototype, "ParentID", void 0);
41818
41977
  __decorate([
41819
41978
  Field({ nullable: true }),
41820
41979
  MaxLength(510),
@@ -41825,6 +41984,11 @@ __decorate([
41825
41984
  MaxLength(200),
41826
41985
  __metadata("design:type", String)
41827
41986
  ], Action_.prototype, "CodeApprovedByUser", void 0);
41987
+ __decorate([
41988
+ Field({ nullable: true }),
41989
+ MaxLength(850),
41990
+ __metadata("design:type", String)
41991
+ ], Action_.prototype, "Parent", void 0);
41828
41992
  __decorate([
41829
41993
  Field(() => [ActionParam_]),
41830
41994
  __metadata("design:type", Array)
@@ -41861,6 +42025,10 @@ __decorate([
41861
42025
  Field(() => [ActionAuthorization_]),
41862
42026
  __metadata("design:type", Array)
41863
42027
  ], Action_.prototype, "ActionAuthorizations_ActionIDArray", void 0);
42028
+ __decorate([
42029
+ Field(() => [Action_]),
42030
+ __metadata("design:type", Array)
42031
+ ], Action_.prototype, "Actions_ParentIDArray", void 0);
41864
42032
  Action_ = __decorate([
41865
42033
  ObjectType({ description: `Stores action definitions, including prompts, generated code, user comments, and status.` })
41866
42034
  ], Action_);
@@ -41884,6 +42052,7 @@ let CreateActionInput = class CreateActionInput {
41884
42052
  RetentionPeriod;
41885
42053
  Status;
41886
42054
  DriverClass;
42055
+ ParentID;
41887
42056
  };
41888
42057
  __decorate([
41889
42058
  Field({ nullable: true }),
@@ -41957,6 +42126,10 @@ __decorate([
41957
42126
  Field({ nullable: true }),
41958
42127
  __metadata("design:type", String)
41959
42128
  ], CreateActionInput.prototype, "DriverClass", void 0);
42129
+ __decorate([
42130
+ Field({ nullable: true }),
42131
+ __metadata("design:type", String)
42132
+ ], CreateActionInput.prototype, "ParentID", void 0);
41960
42133
  CreateActionInput = __decorate([
41961
42134
  InputType()
41962
42135
  ], CreateActionInput);
@@ -41980,6 +42153,7 @@ let UpdateActionInput = class UpdateActionInput {
41980
42153
  RetentionPeriod;
41981
42154
  Status;
41982
42155
  DriverClass;
42156
+ ParentID;
41983
42157
  OldValues___;
41984
42158
  };
41985
42159
  __decorate([
@@ -42054,6 +42228,10 @@ __decorate([
42054
42228
  Field({ nullable: true }),
42055
42229
  __metadata("design:type", String)
42056
42230
  ], UpdateActionInput.prototype, "DriverClass", void 0);
42231
+ __decorate([
42232
+ Field({ nullable: true }),
42233
+ __metadata("design:type", String)
42234
+ ], UpdateActionInput.prototype, "ParentID", void 0);
42057
42235
  __decorate([
42058
42236
  Field(() => [KeyValuePairInput], { nullable: true }),
42059
42237
  __metadata("design:type", Array)
@@ -42197,6 +42375,14 @@ let ActionResolver = class ActionResolver extends ResolverBase {
42197
42375
  const result = this.ArrayMapFieldNamesToCodeNames('Action Authorizations', rows);
42198
42376
  return result;
42199
42377
  }
42378
+ async Actions_ParentIDArray(action_, { dataSources, userPayload }, pubSub) {
42379
+ this.CheckUserReadPermissions('Actions', userPayload);
42380
+ const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
42381
+ const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwActions] WHERE [ParentID]='${action_.ID}' ` + this.getRowLevelSecurityWhereClause('Actions', userPayload, EntityPermissionType.Read, 'AND');
42382
+ const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
42383
+ const result = this.ArrayMapFieldNamesToCodeNames('Actions', rows);
42384
+ return result;
42385
+ }
42200
42386
  async CreateAction(input, { dataSources, userPayload }, pubSub) {
42201
42387
  const connPool = GetReadWriteDataSource(dataSources);
42202
42388
  return this.CreateRecord('Actions', input, connPool, userPayload, pubSub);
@@ -42328,6 +42514,15 @@ __decorate([
42328
42514
  __metadata("design:paramtypes", [Action_, Object, PubSubEngine]),
42329
42515
  __metadata("design:returntype", Promise)
42330
42516
  ], ActionResolver.prototype, "ActionAuthorizations_ActionIDArray", null);
42517
+ __decorate([
42518
+ FieldResolver(() => [Action_]),
42519
+ __param(0, Root()),
42520
+ __param(1, Ctx()),
42521
+ __param(2, PubSub()),
42522
+ __metadata("design:type", Function),
42523
+ __metadata("design:paramtypes", [Action_, Object, PubSubEngine]),
42524
+ __metadata("design:returntype", Promise)
42525
+ ], ActionResolver.prototype, "Actions_ParentIDArray", null);
42331
42526
  __decorate([
42332
42527
  Mutation(() => Action_),
42333
42528
  __param(0, Arg('input', () => CreateActionInput)),
@@ -47628,6 +47823,7 @@ let TemplateContent_ = class TemplateContent_ {
47628
47823
  _mj__UpdatedAt;
47629
47824
  Template;
47630
47825
  Type;
47826
+ TemplateParams_TemplateContentIDArray;
47631
47827
  };
47632
47828
  __decorate([
47633
47829
  Field(),
@@ -47676,6 +47872,10 @@ __decorate([
47676
47872
  MaxLength(510),
47677
47873
  __metadata("design:type", String)
47678
47874
  ], TemplateContent_.prototype, "Type", void 0);
47875
+ __decorate([
47876
+ Field(() => [TemplateParam_]),
47877
+ __metadata("design:type", Array)
47878
+ ], TemplateContent_.prototype, "TemplateParams_TemplateContentIDArray", void 0);
47679
47879
  TemplateContent_ = __decorate([
47680
47880
  ObjectType({ description: `Template content for different versions of a template for purposes like HTML/Text/etc` })
47681
47881
  ], TemplateContent_);
@@ -47820,6 +48020,14 @@ let TemplateContentResolver = class TemplateContentResolver extends ResolverBase
47820
48020
  const result = this.MapFieldNamesToCodeNames('Template Contents', rows && rows.length > 0 ? rows[0] : {});
47821
48021
  return result;
47822
48022
  }
48023
+ async TemplateParams_TemplateContentIDArray(templatecontent_, { dataSources, userPayload }, pubSub) {
48024
+ this.CheckUserReadPermissions('Template Params', userPayload);
48025
+ const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
48026
+ const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwTemplateParams] WHERE [TemplateContentID]='${templatecontent_.ID}' ` + this.getRowLevelSecurityWhereClause('Template Params', userPayload, EntityPermissionType.Read, 'AND');
48027
+ const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
48028
+ const result = this.ArrayMapFieldNamesToCodeNames('Template Params', rows);
48029
+ return result;
48030
+ }
47823
48031
  async CreateTemplateContent(input, { dataSources, userPayload }, pubSub) {
47824
48032
  const connPool = GetReadWriteDataSource(dataSources);
47825
48033
  return this.CreateRecord('Template Contents', input, connPool, userPayload, pubSub);
@@ -47870,6 +48078,15 @@ __decorate([
47870
48078
  __metadata("design:paramtypes", [String, Object, PubSubEngine]),
47871
48079
  __metadata("design:returntype", Promise)
47872
48080
  ], TemplateContentResolver.prototype, "TemplateContent", null);
48081
+ __decorate([
48082
+ FieldResolver(() => [TemplateParam_]),
48083
+ __param(0, Root()),
48084
+ __param(1, Ctx()),
48085
+ __param(2, PubSub()),
48086
+ __metadata("design:type", Function),
48087
+ __metadata("design:paramtypes", [TemplateContent_, Object, PubSubEngine]),
48088
+ __metadata("design:returntype", Promise)
48089
+ ], TemplateContentResolver.prototype, "TemplateParams_TemplateContentIDArray", null);
47873
48090
  __decorate([
47874
48091
  Mutation(() => TemplateContent_),
47875
48092
  __param(0, Arg('input', () => CreateTemplateContentInput)),
@@ -47918,6 +48135,7 @@ let TemplateParam_ = class TemplateParam_ {
47918
48135
  _mj__CreatedAt;
47919
48136
  _mj__UpdatedAt;
47920
48137
  OrderBy;
48138
+ TemplateContentID;
47921
48139
  Template;
47922
48140
  Entity;
47923
48141
  };
@@ -47991,6 +48209,11 @@ __decorate([
47991
48209
  Field({ nullable: true, description: `This field is used only when the Type of the TemplateParam table is "Entity". It is an optional field used to specify the sorting order for the related entity data that is used in the template for the Entity specified.` }),
47992
48210
  __metadata("design:type", String)
47993
48211
  ], TemplateParam_.prototype, "OrderBy", void 0);
48212
+ __decorate([
48213
+ Field({ nullable: true, description: `Optional reference to a specific template content. When NULL, this parameter applies to all content items within the template. When set, this parameter applies only to the specified template content.` }),
48214
+ MaxLength(16),
48215
+ __metadata("design:type", String)
48216
+ ], TemplateParam_.prototype, "TemplateContentID", void 0);
47994
48217
  __decorate([
47995
48218
  Field(),
47996
48219
  MaxLength(510),
@@ -48019,6 +48242,7 @@ let CreateTemplateParamInput = class CreateTemplateParamInput {
48019
48242
  EntityID;
48020
48243
  RecordID;
48021
48244
  OrderBy;
48245
+ TemplateContentID;
48022
48246
  };
48023
48247
  __decorate([
48024
48248
  Field({ nullable: true }),
@@ -48072,6 +48296,10 @@ __decorate([
48072
48296
  Field({ nullable: true }),
48073
48297
  __metadata("design:type", String)
48074
48298
  ], CreateTemplateParamInput.prototype, "OrderBy", void 0);
48299
+ __decorate([
48300
+ Field({ nullable: true }),
48301
+ __metadata("design:type", String)
48302
+ ], CreateTemplateParamInput.prototype, "TemplateContentID", void 0);
48075
48303
  CreateTemplateParamInput = __decorate([
48076
48304
  InputType()
48077
48305
  ], CreateTemplateParamInput);
@@ -48090,6 +48318,7 @@ let UpdateTemplateParamInput = class UpdateTemplateParamInput {
48090
48318
  EntityID;
48091
48319
  RecordID;
48092
48320
  OrderBy;
48321
+ TemplateContentID;
48093
48322
  OldValues___;
48094
48323
  };
48095
48324
  __decorate([
@@ -48144,6 +48373,10 @@ __decorate([
48144
48373
  Field({ nullable: true }),
48145
48374
  __metadata("design:type", String)
48146
48375
  ], UpdateTemplateParamInput.prototype, "OrderBy", void 0);
48376
+ __decorate([
48377
+ Field({ nullable: true }),
48378
+ __metadata("design:type", String)
48379
+ ], UpdateTemplateParamInput.prototype, "TemplateContentID", void 0);
48147
48380
  __decorate([
48148
48381
  Field(() => [KeyValuePairInput], { nullable: true }),
48149
48382
  __metadata("design:type", Array)
@@ -59066,6 +59299,17 @@ let AIPromptRun_ = class AIPromptRun_ {
59066
59299
  TokensUsedRollup;
59067
59300
  TokensPromptRollup;
59068
59301
  TokensCompletionRollup;
59302
+ Temperature;
59303
+ TopP;
59304
+ TopK;
59305
+ MinP;
59306
+ FrequencyPenalty;
59307
+ PresencePenalty;
59308
+ Seed;
59309
+ StopSequences;
59310
+ ResponseFormat;
59311
+ LogProbs;
59312
+ TopLogProbs;
59069
59313
  Prompt;
59070
59314
  Model;
59071
59315
  Vendor;
@@ -59200,6 +59444,51 @@ __decorate([
59200
59444
  Field(() => Int, { nullable: true, description: `Total completion/output tokens including this execution and all child/grandchild executions. For leaf nodes (no children), this equals TokensCompletion. For parent nodes, this includes the sum of all descendant completion tokens.` }),
59201
59445
  __metadata("design:type", Number)
59202
59446
  ], AIPromptRun_.prototype, "TokensCompletionRollup", void 0);
59447
+ __decorate([
59448
+ Field(() => Float, { nullable: true, description: `The temperature parameter used for this prompt run, controlling randomness in the output (0.0 = deterministic, 2.0 = very random)` }),
59449
+ __metadata("design:type", Number)
59450
+ ], AIPromptRun_.prototype, "Temperature", void 0);
59451
+ __decorate([
59452
+ Field(() => Float, { nullable: true, description: `Top-p (nucleus) sampling parameter used for this run. Considers tokens with cumulative probability up to this value (0-1)` }),
59453
+ __metadata("design:type", Number)
59454
+ ], AIPromptRun_.prototype, "TopP", void 0);
59455
+ __decorate([
59456
+ Field(() => Int, { nullable: true, description: `Top-k sampling parameter used for this run. Limits sampling to the top K most likely tokens` }),
59457
+ __metadata("design:type", Number)
59458
+ ], AIPromptRun_.prototype, "TopK", void 0);
59459
+ __decorate([
59460
+ Field(() => Float, { nullable: true, description: `Minimum probability threshold used for token sampling (0-1). Tokens below this probability are filtered out` }),
59461
+ __metadata("design:type", Number)
59462
+ ], AIPromptRun_.prototype, "MinP", void 0);
59463
+ __decorate([
59464
+ Field(() => Float, { nullable: true, description: `Frequency penalty parameter used (-2.0 to 2.0). Positive values reduce repetition of tokens based on their frequency in the output` }),
59465
+ __metadata("design:type", Number)
59466
+ ], AIPromptRun_.prototype, "FrequencyPenalty", void 0);
59467
+ __decorate([
59468
+ Field(() => Float, { nullable: true, description: `Presence penalty parameter used (-2.0 to 2.0). Positive values encourage the model to talk about new topics` }),
59469
+ __metadata("design:type", Number)
59470
+ ], AIPromptRun_.prototype, "PresencePenalty", void 0);
59471
+ __decorate([
59472
+ Field(() => Int, { nullable: true, description: `Random seed used for reproducible outputs. When set, the same seed with identical inputs should produce the same output` }),
59473
+ __metadata("design:type", Number)
59474
+ ], AIPromptRun_.prototype, "Seed", void 0);
59475
+ __decorate([
59476
+ Field({ nullable: true, description: `JSON array of stop sequences used. The model stops generating when any of these sequences are encountered` }),
59477
+ __metadata("design:type", String)
59478
+ ], AIPromptRun_.prototype, "StopSequences", void 0);
59479
+ __decorate([
59480
+ Field({ nullable: true, description: `The response format requested for this run (e.g., 'JSON', 'Text', 'Markdown')` }),
59481
+ MaxLength(100),
59482
+ __metadata("design:type", String)
59483
+ ], AIPromptRun_.prototype, "ResponseFormat", void 0);
59484
+ __decorate([
59485
+ Field(() => Boolean, { nullable: true, description: `Whether log probabilities were requested for this run` }),
59486
+ __metadata("design:type", Boolean)
59487
+ ], AIPromptRun_.prototype, "LogProbs", void 0);
59488
+ __decorate([
59489
+ Field(() => Int, { nullable: true, description: `Number of top log probabilities requested per token (if LogProbs is true)` }),
59490
+ __metadata("design:type", Number)
59491
+ ], AIPromptRun_.prototype, "TopLogProbs", void 0);
59203
59492
  __decorate([
59204
59493
  Field(),
59205
59494
  MaxLength(510),
@@ -59264,6 +59553,17 @@ let CreateAIPromptRunInput = class CreateAIPromptRunInput {
59264
59553
  TokensUsedRollup;
59265
59554
  TokensPromptRollup;
59266
59555
  TokensCompletionRollup;
59556
+ Temperature;
59557
+ TopP;
59558
+ TopK;
59559
+ MinP;
59560
+ FrequencyPenalty;
59561
+ PresencePenalty;
59562
+ Seed;
59563
+ StopSequences;
59564
+ ResponseFormat;
59565
+ LogProbs;
59566
+ TopLogProbs;
59267
59567
  };
59268
59568
  __decorate([
59269
59569
  Field({ nullable: true }),
@@ -59369,6 +59669,50 @@ __decorate([
59369
59669
  Field(() => Int, { nullable: true }),
59370
59670
  __metadata("design:type", Number)
59371
59671
  ], CreateAIPromptRunInput.prototype, "TokensCompletionRollup", void 0);
59672
+ __decorate([
59673
+ Field(() => Float, { nullable: true }),
59674
+ __metadata("design:type", Number)
59675
+ ], CreateAIPromptRunInput.prototype, "Temperature", void 0);
59676
+ __decorate([
59677
+ Field(() => Float, { nullable: true }),
59678
+ __metadata("design:type", Number)
59679
+ ], CreateAIPromptRunInput.prototype, "TopP", void 0);
59680
+ __decorate([
59681
+ Field(() => Int, { nullable: true }),
59682
+ __metadata("design:type", Number)
59683
+ ], CreateAIPromptRunInput.prototype, "TopK", void 0);
59684
+ __decorate([
59685
+ Field(() => Float, { nullable: true }),
59686
+ __metadata("design:type", Number)
59687
+ ], CreateAIPromptRunInput.prototype, "MinP", void 0);
59688
+ __decorate([
59689
+ Field(() => Float, { nullable: true }),
59690
+ __metadata("design:type", Number)
59691
+ ], CreateAIPromptRunInput.prototype, "FrequencyPenalty", void 0);
59692
+ __decorate([
59693
+ Field(() => Float, { nullable: true }),
59694
+ __metadata("design:type", Number)
59695
+ ], CreateAIPromptRunInput.prototype, "PresencePenalty", void 0);
59696
+ __decorate([
59697
+ Field(() => Int, { nullable: true }),
59698
+ __metadata("design:type", Number)
59699
+ ], CreateAIPromptRunInput.prototype, "Seed", void 0);
59700
+ __decorate([
59701
+ Field({ nullable: true }),
59702
+ __metadata("design:type", String)
59703
+ ], CreateAIPromptRunInput.prototype, "StopSequences", void 0);
59704
+ __decorate([
59705
+ Field({ nullable: true }),
59706
+ __metadata("design:type", String)
59707
+ ], CreateAIPromptRunInput.prototype, "ResponseFormat", void 0);
59708
+ __decorate([
59709
+ Field(() => Boolean, { nullable: true }),
59710
+ __metadata("design:type", Boolean)
59711
+ ], CreateAIPromptRunInput.prototype, "LogProbs", void 0);
59712
+ __decorate([
59713
+ Field(() => Int, { nullable: true }),
59714
+ __metadata("design:type", Number)
59715
+ ], CreateAIPromptRunInput.prototype, "TopLogProbs", void 0);
59372
59716
  CreateAIPromptRunInput = __decorate([
59373
59717
  InputType()
59374
59718
  ], CreateAIPromptRunInput);
@@ -59400,6 +59744,17 @@ let UpdateAIPromptRunInput = class UpdateAIPromptRunInput {
59400
59744
  TokensUsedRollup;
59401
59745
  TokensPromptRollup;
59402
59746
  TokensCompletionRollup;
59747
+ Temperature;
59748
+ TopP;
59749
+ TopK;
59750
+ MinP;
59751
+ FrequencyPenalty;
59752
+ PresencePenalty;
59753
+ Seed;
59754
+ StopSequences;
59755
+ ResponseFormat;
59756
+ LogProbs;
59757
+ TopLogProbs;
59403
59758
  OldValues___;
59404
59759
  };
59405
59760
  __decorate([
@@ -59506,6 +59861,50 @@ __decorate([
59506
59861
  Field(() => Int, { nullable: true }),
59507
59862
  __metadata("design:type", Number)
59508
59863
  ], UpdateAIPromptRunInput.prototype, "TokensCompletionRollup", void 0);
59864
+ __decorate([
59865
+ Field(() => Float, { nullable: true }),
59866
+ __metadata("design:type", Number)
59867
+ ], UpdateAIPromptRunInput.prototype, "Temperature", void 0);
59868
+ __decorate([
59869
+ Field(() => Float, { nullable: true }),
59870
+ __metadata("design:type", Number)
59871
+ ], UpdateAIPromptRunInput.prototype, "TopP", void 0);
59872
+ __decorate([
59873
+ Field(() => Int, { nullable: true }),
59874
+ __metadata("design:type", Number)
59875
+ ], UpdateAIPromptRunInput.prototype, "TopK", void 0);
59876
+ __decorate([
59877
+ Field(() => Float, { nullable: true }),
59878
+ __metadata("design:type", Number)
59879
+ ], UpdateAIPromptRunInput.prototype, "MinP", void 0);
59880
+ __decorate([
59881
+ Field(() => Float, { nullable: true }),
59882
+ __metadata("design:type", Number)
59883
+ ], UpdateAIPromptRunInput.prototype, "FrequencyPenalty", void 0);
59884
+ __decorate([
59885
+ Field(() => Float, { nullable: true }),
59886
+ __metadata("design:type", Number)
59887
+ ], UpdateAIPromptRunInput.prototype, "PresencePenalty", void 0);
59888
+ __decorate([
59889
+ Field(() => Int, { nullable: true }),
59890
+ __metadata("design:type", Number)
59891
+ ], UpdateAIPromptRunInput.prototype, "Seed", void 0);
59892
+ __decorate([
59893
+ Field({ nullable: true }),
59894
+ __metadata("design:type", String)
59895
+ ], UpdateAIPromptRunInput.prototype, "StopSequences", void 0);
59896
+ __decorate([
59897
+ Field({ nullable: true }),
59898
+ __metadata("design:type", String)
59899
+ ], UpdateAIPromptRunInput.prototype, "ResponseFormat", void 0);
59900
+ __decorate([
59901
+ Field(() => Boolean, { nullable: true }),
59902
+ __metadata("design:type", Boolean)
59903
+ ], UpdateAIPromptRunInput.prototype, "LogProbs", void 0);
59904
+ __decorate([
59905
+ Field(() => Int, { nullable: true }),
59906
+ __metadata("design:type", Number)
59907
+ ], UpdateAIPromptRunInput.prototype, "TopLogProbs", void 0);
59509
59908
  __decorate([
59510
59909
  Field(() => [KeyValuePairInput], { nullable: true }),
59511
59910
  __metadata("design:type", Array)