@memberjunction/server 2.61.0 → 2.63.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/generated/generated.d.ts +40 -0
- package/dist/generated/generated.d.ts.map +1 -1
- package/dist/generated/generated.js +207 -0
- package/dist/generated/generated.js.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/resolvers/RunAIAgentResolver.d.ts +1 -1
- package/dist/resolvers/RunAIAgentResolver.d.ts.map +1 -1
- package/dist/resolvers/RunAIAgentResolver.js +7 -3
- package/dist/resolvers/RunAIAgentResolver.js.map +1 -1
- package/package.json +34 -30
- package/src/generated/generated.ts +127 -0
- package/src/index.ts +2 -2
- package/src/resolvers/RunAIAgentResolver.ts +6 -2
|
@@ -1910,6 +1910,8 @@ let AIAgentRun_ = class AIAgentRun_ {
|
|
|
1910
1910
|
FinalStep;
|
|
1911
1911
|
FinalPayload;
|
|
1912
1912
|
Message;
|
|
1913
|
+
LastRunID;
|
|
1914
|
+
StartingPayload;
|
|
1913
1915
|
Agent;
|
|
1914
1916
|
Conversation;
|
|
1915
1917
|
User;
|
|
@@ -2042,6 +2044,15 @@ __decorate([
|
|
|
2042
2044
|
Field({ nullable: true, description: `Final message from the agent to the end user at the end of a run` }),
|
|
2043
2045
|
__metadata("design:type", String)
|
|
2044
2046
|
], AIAgentRun_.prototype, "Message", void 0);
|
|
2047
|
+
__decorate([
|
|
2048
|
+
Field({ nullable: true, description: `Links to the previous run in a chain. Different from ParentRunID which is for sub-agent hierarchy.` }),
|
|
2049
|
+
MaxLength(16),
|
|
2050
|
+
__metadata("design:type", String)
|
|
2051
|
+
], AIAgentRun_.prototype, "LastRunID", void 0);
|
|
2052
|
+
__decorate([
|
|
2053
|
+
Field({ nullable: true, description: `The initial payload provided at the start of this run. Can be populated from the FinalPayload of the LastRun.` }),
|
|
2054
|
+
__metadata("design:type", String)
|
|
2055
|
+
], AIAgentRun_.prototype, "StartingPayload", void 0);
|
|
2045
2056
|
__decorate([
|
|
2046
2057
|
Field({ nullable: true }),
|
|
2047
2058
|
MaxLength(510),
|
|
@@ -2100,6 +2111,8 @@ let CreateAIAgentRunInput = class CreateAIAgentRunInput {
|
|
|
2100
2111
|
FinalStep;
|
|
2101
2112
|
FinalPayload;
|
|
2102
2113
|
Message;
|
|
2114
|
+
LastRunID;
|
|
2115
|
+
StartingPayload;
|
|
2103
2116
|
};
|
|
2104
2117
|
__decorate([
|
|
2105
2118
|
Field({ nullable: true }),
|
|
@@ -2205,6 +2218,14 @@ __decorate([
|
|
|
2205
2218
|
Field({ nullable: true }),
|
|
2206
2219
|
__metadata("design:type", String)
|
|
2207
2220
|
], CreateAIAgentRunInput.prototype, "Message", void 0);
|
|
2221
|
+
__decorate([
|
|
2222
|
+
Field({ nullable: true }),
|
|
2223
|
+
__metadata("design:type", String)
|
|
2224
|
+
], CreateAIAgentRunInput.prototype, "LastRunID", void 0);
|
|
2225
|
+
__decorate([
|
|
2226
|
+
Field({ nullable: true }),
|
|
2227
|
+
__metadata("design:type", String)
|
|
2228
|
+
], CreateAIAgentRunInput.prototype, "StartingPayload", void 0);
|
|
2208
2229
|
CreateAIAgentRunInput = __decorate([
|
|
2209
2230
|
InputType()
|
|
2210
2231
|
], CreateAIAgentRunInput);
|
|
@@ -2236,6 +2257,8 @@ let UpdateAIAgentRunInput = class UpdateAIAgentRunInput {
|
|
|
2236
2257
|
FinalStep;
|
|
2237
2258
|
FinalPayload;
|
|
2238
2259
|
Message;
|
|
2260
|
+
LastRunID;
|
|
2261
|
+
StartingPayload;
|
|
2239
2262
|
OldValues___;
|
|
2240
2263
|
};
|
|
2241
2264
|
__decorate([
|
|
@@ -2342,6 +2365,14 @@ __decorate([
|
|
|
2342
2365
|
Field({ nullable: true }),
|
|
2343
2366
|
__metadata("design:type", String)
|
|
2344
2367
|
], UpdateAIAgentRunInput.prototype, "Message", void 0);
|
|
2368
|
+
__decorate([
|
|
2369
|
+
Field({ nullable: true }),
|
|
2370
|
+
__metadata("design:type", String)
|
|
2371
|
+
], UpdateAIAgentRunInput.prototype, "LastRunID", void 0);
|
|
2372
|
+
__decorate([
|
|
2373
|
+
Field({ nullable: true }),
|
|
2374
|
+
__metadata("design:type", String)
|
|
2375
|
+
], UpdateAIAgentRunInput.prototype, "StartingPayload", void 0);
|
|
2345
2376
|
__decorate([
|
|
2346
2377
|
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
2347
2378
|
__metadata("design:type", Array)
|
|
@@ -5994,6 +6025,11 @@ let AIPrompt_ = class AIPrompt_ {
|
|
|
5994
6025
|
StopSequences;
|
|
5995
6026
|
IncludeLogProbs;
|
|
5996
6027
|
TopLogProbs;
|
|
6028
|
+
FailoverMaxAttempts;
|
|
6029
|
+
FailoverDelaySeconds;
|
|
6030
|
+
FailoverStrategy;
|
|
6031
|
+
FailoverModelStrategy;
|
|
6032
|
+
FailoverErrorScope;
|
|
5997
6033
|
Template;
|
|
5998
6034
|
Category;
|
|
5999
6035
|
Type;
|
|
@@ -6211,6 +6247,29 @@ __decorate([
|
|
|
6211
6247
|
Field(() => Int, { nullable: true, description: `Default number of top log probabilities to include when IncludeLogProbs is true. Can be overridden at runtime.` }),
|
|
6212
6248
|
__metadata("design:type", Number)
|
|
6213
6249
|
], AIPrompt_.prototype, "TopLogProbs", void 0);
|
|
6250
|
+
__decorate([
|
|
6251
|
+
Field(() => Int, { nullable: true, description: `Maximum number of failover attempts before giving up` }),
|
|
6252
|
+
__metadata("design:type", Number)
|
|
6253
|
+
], AIPrompt_.prototype, "FailoverMaxAttempts", void 0);
|
|
6254
|
+
__decorate([
|
|
6255
|
+
Field(() => Int, { nullable: true, description: `Initial delay in seconds between failover attempts` }),
|
|
6256
|
+
__metadata("design:type", Number)
|
|
6257
|
+
], AIPrompt_.prototype, "FailoverDelaySeconds", void 0);
|
|
6258
|
+
__decorate([
|
|
6259
|
+
Field({ description: `Failover strategy to use when the primary model fails. Options: SameModelDifferentVendor, NextBestModel, PowerRank, None` }),
|
|
6260
|
+
MaxLength(100),
|
|
6261
|
+
__metadata("design:type", String)
|
|
6262
|
+
], AIPrompt_.prototype, "FailoverStrategy", void 0);
|
|
6263
|
+
__decorate([
|
|
6264
|
+
Field({ description: `Strategy for selecting failover models. Options: PreferSameModel, PreferDifferentModel, RequireSameModel` }),
|
|
6265
|
+
MaxLength(100),
|
|
6266
|
+
__metadata("design:type", String)
|
|
6267
|
+
], AIPrompt_.prototype, "FailoverModelStrategy", void 0);
|
|
6268
|
+
__decorate([
|
|
6269
|
+
Field({ description: `Types of errors that should trigger failover. Options: All, NetworkOnly, RateLimitOnly, ServiceErrorOnly` }),
|
|
6270
|
+
MaxLength(100),
|
|
6271
|
+
__metadata("design:type", String)
|
|
6272
|
+
], AIPrompt_.prototype, "FailoverErrorScope", void 0);
|
|
6214
6273
|
__decorate([
|
|
6215
6274
|
Field(),
|
|
6216
6275
|
MaxLength(510),
|
|
@@ -6320,6 +6379,11 @@ let CreateAIPromptInput = class CreateAIPromptInput {
|
|
|
6320
6379
|
StopSequences;
|
|
6321
6380
|
IncludeLogProbs;
|
|
6322
6381
|
TopLogProbs;
|
|
6382
|
+
FailoverMaxAttempts;
|
|
6383
|
+
FailoverDelaySeconds;
|
|
6384
|
+
FailoverStrategy;
|
|
6385
|
+
FailoverModelStrategy;
|
|
6386
|
+
FailoverErrorScope;
|
|
6323
6387
|
};
|
|
6324
6388
|
__decorate([
|
|
6325
6389
|
Field({ nullable: true }),
|
|
@@ -6493,6 +6557,26 @@ __decorate([
|
|
|
6493
6557
|
Field(() => Int, { nullable: true }),
|
|
6494
6558
|
__metadata("design:type", Number)
|
|
6495
6559
|
], CreateAIPromptInput.prototype, "TopLogProbs", void 0);
|
|
6560
|
+
__decorate([
|
|
6561
|
+
Field(() => Int, { nullable: true }),
|
|
6562
|
+
__metadata("design:type", Number)
|
|
6563
|
+
], CreateAIPromptInput.prototype, "FailoverMaxAttempts", void 0);
|
|
6564
|
+
__decorate([
|
|
6565
|
+
Field(() => Int, { nullable: true }),
|
|
6566
|
+
__metadata("design:type", Number)
|
|
6567
|
+
], CreateAIPromptInput.prototype, "FailoverDelaySeconds", void 0);
|
|
6568
|
+
__decorate([
|
|
6569
|
+
Field({ nullable: true }),
|
|
6570
|
+
__metadata("design:type", String)
|
|
6571
|
+
], CreateAIPromptInput.prototype, "FailoverStrategy", void 0);
|
|
6572
|
+
__decorate([
|
|
6573
|
+
Field({ nullable: true }),
|
|
6574
|
+
__metadata("design:type", String)
|
|
6575
|
+
], CreateAIPromptInput.prototype, "FailoverModelStrategy", void 0);
|
|
6576
|
+
__decorate([
|
|
6577
|
+
Field({ nullable: true }),
|
|
6578
|
+
__metadata("design:type", String)
|
|
6579
|
+
], CreateAIPromptInput.prototype, "FailoverErrorScope", void 0);
|
|
6496
6580
|
CreateAIPromptInput = __decorate([
|
|
6497
6581
|
InputType()
|
|
6498
6582
|
], CreateAIPromptInput);
|
|
@@ -6541,6 +6625,11 @@ let UpdateAIPromptInput = class UpdateAIPromptInput {
|
|
|
6541
6625
|
StopSequences;
|
|
6542
6626
|
IncludeLogProbs;
|
|
6543
6627
|
TopLogProbs;
|
|
6628
|
+
FailoverMaxAttempts;
|
|
6629
|
+
FailoverDelaySeconds;
|
|
6630
|
+
FailoverStrategy;
|
|
6631
|
+
FailoverModelStrategy;
|
|
6632
|
+
FailoverErrorScope;
|
|
6544
6633
|
OldValues___;
|
|
6545
6634
|
};
|
|
6546
6635
|
__decorate([
|
|
@@ -6715,6 +6804,26 @@ __decorate([
|
|
|
6715
6804
|
Field(() => Int, { nullable: true }),
|
|
6716
6805
|
__metadata("design:type", Number)
|
|
6717
6806
|
], UpdateAIPromptInput.prototype, "TopLogProbs", void 0);
|
|
6807
|
+
__decorate([
|
|
6808
|
+
Field(() => Int, { nullable: true }),
|
|
6809
|
+
__metadata("design:type", Number)
|
|
6810
|
+
], UpdateAIPromptInput.prototype, "FailoverMaxAttempts", void 0);
|
|
6811
|
+
__decorate([
|
|
6812
|
+
Field(() => Int, { nullable: true }),
|
|
6813
|
+
__metadata("design:type", Number)
|
|
6814
|
+
], UpdateAIPromptInput.prototype, "FailoverDelaySeconds", void 0);
|
|
6815
|
+
__decorate([
|
|
6816
|
+
Field({ nullable: true }),
|
|
6817
|
+
__metadata("design:type", String)
|
|
6818
|
+
], UpdateAIPromptInput.prototype, "FailoverStrategy", void 0);
|
|
6819
|
+
__decorate([
|
|
6820
|
+
Field({ nullable: true }),
|
|
6821
|
+
__metadata("design:type", String)
|
|
6822
|
+
], UpdateAIPromptInput.prototype, "FailoverModelStrategy", void 0);
|
|
6823
|
+
__decorate([
|
|
6824
|
+
Field({ nullable: true }),
|
|
6825
|
+
__metadata("design:type", String)
|
|
6826
|
+
], UpdateAIPromptInput.prototype, "FailoverErrorScope", void 0);
|
|
6718
6827
|
__decorate([
|
|
6719
6828
|
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
6720
6829
|
__metadata("design:type", Array)
|
|
@@ -62122,11 +62231,18 @@ let AIPromptRun_ = class AIPromptRun_ {
|
|
|
62122
62231
|
TotalRetryDurationMS;
|
|
62123
62232
|
ValidationAttempts;
|
|
62124
62233
|
ValidationSummary;
|
|
62234
|
+
FailoverAttempts;
|
|
62235
|
+
FailoverErrors;
|
|
62236
|
+
FailoverDurations;
|
|
62237
|
+
OriginalRequestStartTime;
|
|
62238
|
+
TotalFailoverDuration;
|
|
62239
|
+
OriginalModelID;
|
|
62125
62240
|
Prompt;
|
|
62126
62241
|
Model;
|
|
62127
62242
|
Vendor;
|
|
62128
62243
|
Agent;
|
|
62129
62244
|
Configuration;
|
|
62245
|
+
OriginalModel;
|
|
62130
62246
|
MJ_AIPromptRuns_ParentIDArray;
|
|
62131
62247
|
AIResultCache_PromptRunIDArray;
|
|
62132
62248
|
};
|
|
@@ -62367,6 +62483,32 @@ __decorate([
|
|
|
62367
62483
|
Field({ nullable: true, description: `JSON object containing summary information about the validation process` }),
|
|
62368
62484
|
__metadata("design:type", String)
|
|
62369
62485
|
], AIPromptRun_.prototype, "ValidationSummary", void 0);
|
|
62486
|
+
__decorate([
|
|
62487
|
+
Field(() => Int, { nullable: true, description: `Number of failover attempts made during this prompt run` }),
|
|
62488
|
+
__metadata("design:type", Number)
|
|
62489
|
+
], AIPromptRun_.prototype, "FailoverAttempts", void 0);
|
|
62490
|
+
__decorate([
|
|
62491
|
+
Field({ nullable: true, description: `JSON array of error details from each failover attempt` }),
|
|
62492
|
+
__metadata("design:type", String)
|
|
62493
|
+
], AIPromptRun_.prototype, "FailoverErrors", void 0);
|
|
62494
|
+
__decorate([
|
|
62495
|
+
Field({ nullable: true, description: `JSON array of duration in milliseconds for each failover attempt` }),
|
|
62496
|
+
__metadata("design:type", String)
|
|
62497
|
+
], AIPromptRun_.prototype, "FailoverDurations", void 0);
|
|
62498
|
+
__decorate([
|
|
62499
|
+
Field({ nullable: true, description: `Timestamp when the original request started, before any failovers` }),
|
|
62500
|
+
MaxLength(8),
|
|
62501
|
+
__metadata("design:type", Date)
|
|
62502
|
+
], AIPromptRun_.prototype, "OriginalRequestStartTime", void 0);
|
|
62503
|
+
__decorate([
|
|
62504
|
+
Field(() => Int, { nullable: true, description: `Total time spent in failover attempts in milliseconds` }),
|
|
62505
|
+
__metadata("design:type", Number)
|
|
62506
|
+
], AIPromptRun_.prototype, "TotalFailoverDuration", void 0);
|
|
62507
|
+
__decorate([
|
|
62508
|
+
Field({ nullable: true, description: `The AI Model ID that was originally attempted before any failovers` }),
|
|
62509
|
+
MaxLength(16),
|
|
62510
|
+
__metadata("design:type", String)
|
|
62511
|
+
], AIPromptRun_.prototype, "OriginalModelID", void 0);
|
|
62370
62512
|
__decorate([
|
|
62371
62513
|
Field(),
|
|
62372
62514
|
MaxLength(510),
|
|
@@ -62392,6 +62534,11 @@ __decorate([
|
|
|
62392
62534
|
MaxLength(200),
|
|
62393
62535
|
__metadata("design:type", String)
|
|
62394
62536
|
], AIPromptRun_.prototype, "Configuration", void 0);
|
|
62537
|
+
__decorate([
|
|
62538
|
+
Field({ nullable: true }),
|
|
62539
|
+
MaxLength(100),
|
|
62540
|
+
__metadata("design:type", String)
|
|
62541
|
+
], AIPromptRun_.prototype, "OriginalModel", void 0);
|
|
62395
62542
|
__decorate([
|
|
62396
62543
|
Field(() => [AIPromptRun_]),
|
|
62397
62544
|
__metadata("design:type", Array)
|
|
@@ -62457,6 +62604,12 @@ let CreateAIPromptRunInput = class CreateAIPromptRunInput {
|
|
|
62457
62604
|
TotalRetryDurationMS;
|
|
62458
62605
|
ValidationAttempts;
|
|
62459
62606
|
ValidationSummary;
|
|
62607
|
+
FailoverAttempts;
|
|
62608
|
+
FailoverErrors;
|
|
62609
|
+
FailoverDurations;
|
|
62610
|
+
OriginalRequestStartTime;
|
|
62611
|
+
TotalFailoverDuration;
|
|
62612
|
+
OriginalModelID;
|
|
62460
62613
|
};
|
|
62461
62614
|
__decorate([
|
|
62462
62615
|
Field({ nullable: true }),
|
|
@@ -62666,6 +62819,30 @@ __decorate([
|
|
|
62666
62819
|
Field({ nullable: true }),
|
|
62667
62820
|
__metadata("design:type", String)
|
|
62668
62821
|
], CreateAIPromptRunInput.prototype, "ValidationSummary", void 0);
|
|
62822
|
+
__decorate([
|
|
62823
|
+
Field(() => Int, { nullable: true }),
|
|
62824
|
+
__metadata("design:type", Number)
|
|
62825
|
+
], CreateAIPromptRunInput.prototype, "FailoverAttempts", void 0);
|
|
62826
|
+
__decorate([
|
|
62827
|
+
Field({ nullable: true }),
|
|
62828
|
+
__metadata("design:type", String)
|
|
62829
|
+
], CreateAIPromptRunInput.prototype, "FailoverErrors", void 0);
|
|
62830
|
+
__decorate([
|
|
62831
|
+
Field({ nullable: true }),
|
|
62832
|
+
__metadata("design:type", String)
|
|
62833
|
+
], CreateAIPromptRunInput.prototype, "FailoverDurations", void 0);
|
|
62834
|
+
__decorate([
|
|
62835
|
+
Field({ nullable: true }),
|
|
62836
|
+
__metadata("design:type", Date)
|
|
62837
|
+
], CreateAIPromptRunInput.prototype, "OriginalRequestStartTime", void 0);
|
|
62838
|
+
__decorate([
|
|
62839
|
+
Field(() => Int, { nullable: true }),
|
|
62840
|
+
__metadata("design:type", Number)
|
|
62841
|
+
], CreateAIPromptRunInput.prototype, "TotalFailoverDuration", void 0);
|
|
62842
|
+
__decorate([
|
|
62843
|
+
Field({ nullable: true }),
|
|
62844
|
+
__metadata("design:type", String)
|
|
62845
|
+
], CreateAIPromptRunInput.prototype, "OriginalModelID", void 0);
|
|
62669
62846
|
CreateAIPromptRunInput = __decorate([
|
|
62670
62847
|
InputType()
|
|
62671
62848
|
], CreateAIPromptRunInput);
|
|
@@ -62723,6 +62900,12 @@ let UpdateAIPromptRunInput = class UpdateAIPromptRunInput {
|
|
|
62723
62900
|
TotalRetryDurationMS;
|
|
62724
62901
|
ValidationAttempts;
|
|
62725
62902
|
ValidationSummary;
|
|
62903
|
+
FailoverAttempts;
|
|
62904
|
+
FailoverErrors;
|
|
62905
|
+
FailoverDurations;
|
|
62906
|
+
OriginalRequestStartTime;
|
|
62907
|
+
TotalFailoverDuration;
|
|
62908
|
+
OriginalModelID;
|
|
62726
62909
|
OldValues___;
|
|
62727
62910
|
};
|
|
62728
62911
|
__decorate([
|
|
@@ -62933,6 +63116,30 @@ __decorate([
|
|
|
62933
63116
|
Field({ nullable: true }),
|
|
62934
63117
|
__metadata("design:type", String)
|
|
62935
63118
|
], UpdateAIPromptRunInput.prototype, "ValidationSummary", void 0);
|
|
63119
|
+
__decorate([
|
|
63120
|
+
Field(() => Int, { nullable: true }),
|
|
63121
|
+
__metadata("design:type", Number)
|
|
63122
|
+
], UpdateAIPromptRunInput.prototype, "FailoverAttempts", void 0);
|
|
63123
|
+
__decorate([
|
|
63124
|
+
Field({ nullable: true }),
|
|
63125
|
+
__metadata("design:type", String)
|
|
63126
|
+
], UpdateAIPromptRunInput.prototype, "FailoverErrors", void 0);
|
|
63127
|
+
__decorate([
|
|
63128
|
+
Field({ nullable: true }),
|
|
63129
|
+
__metadata("design:type", String)
|
|
63130
|
+
], UpdateAIPromptRunInput.prototype, "FailoverDurations", void 0);
|
|
63131
|
+
__decorate([
|
|
63132
|
+
Field({ nullable: true }),
|
|
63133
|
+
__metadata("design:type", Date)
|
|
63134
|
+
], UpdateAIPromptRunInput.prototype, "OriginalRequestStartTime", void 0);
|
|
63135
|
+
__decorate([
|
|
63136
|
+
Field(() => Int, { nullable: true }),
|
|
63137
|
+
__metadata("design:type", Number)
|
|
63138
|
+
], UpdateAIPromptRunInput.prototype, "TotalFailoverDuration", void 0);
|
|
63139
|
+
__decorate([
|
|
63140
|
+
Field({ nullable: true }),
|
|
63141
|
+
__metadata("design:type", String)
|
|
63142
|
+
], UpdateAIPromptRunInput.prototype, "OriginalModelID", void 0);
|
|
62936
63143
|
__decorate([
|
|
62937
63144
|
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
62938
63145
|
__metadata("design:type", Array)
|