@memberjunction/server 2.67.0 → 2.68.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@memberjunction/server",
3
- "version": "2.67.0",
3
+ "version": "2.68.0",
4
4
  "description": "MemberJunction: This project provides API access via GraphQL to the common data store.",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./src/index.ts",
@@ -22,39 +22,39 @@
22
22
  "dependencies": {
23
23
  "@apollo/server": "^4.9.1",
24
24
  "@graphql-tools/utils": "^10.0.1",
25
- "@memberjunction/actions": "2.67.0",
26
- "@memberjunction/ai": "2.67.0",
27
- "@memberjunction/ai-core-plus": "2.67.0",
28
- "@memberjunction/ai-agents": "2.67.0",
29
- "@memberjunction/aiengine": "2.67.0",
30
- "@memberjunction/ai-prompts": "2.67.0",
31
- "@memberjunction/ai-agent-manager-actions": "2.67.0",
32
- "@memberjunction/ai-mistral": "2.67.0",
33
- "@memberjunction/ai-openai": "2.67.0",
34
- "@memberjunction/ai-anthropic": "2.67.0",
35
- "@memberjunction/ai-groq": "2.67.0",
36
- "@memberjunction/ai-cerebras": "2.67.0",
37
- "@memberjunction/ai-vectors-pinecone": "2.67.0",
38
- "@memberjunction/core": "2.67.0",
39
- "@memberjunction/core-actions": "2.67.0",
40
- "@memberjunction/actions-bizapps-accounting": "2.67.0",
41
- "@memberjunction/actions-bizapps-crm": "2.67.0",
42
- "@memberjunction/actions-bizapps-lms": "2.67.0",
43
- "@memberjunction/actions-bizapps-social": "2.67.0",
44
- "@memberjunction/core-entities": "2.67.0",
45
- "@memberjunction/core-entities-server": "2.67.0",
46
- "@memberjunction/data-context": "2.67.0",
47
- "@memberjunction/data-context-server": "2.67.0",
48
- "@memberjunction/doc-utils": "2.67.0",
49
- "@memberjunction/entity-communications-server": "2.67.0",
50
- "@memberjunction/external-change-detection": "2.67.0",
51
- "@memberjunction/global": "2.67.0",
52
- "@memberjunction/graphql-dataprovider": "2.67.0",
53
- "@memberjunction/queue": "2.67.0",
54
- "@memberjunction/skip-types": "2.67.0",
55
- "@memberjunction/sqlserver-dataprovider": "2.67.0",
56
- "@memberjunction/storage": "2.67.0",
57
- "@memberjunction/templates": "2.67.0",
25
+ "@memberjunction/actions": "2.68.0",
26
+ "@memberjunction/ai": "2.68.0",
27
+ "@memberjunction/ai-core-plus": "2.68.0",
28
+ "@memberjunction/ai-agents": "2.68.0",
29
+ "@memberjunction/aiengine": "2.68.0",
30
+ "@memberjunction/ai-prompts": "2.68.0",
31
+ "@memberjunction/ai-agent-manager-actions": "2.68.0",
32
+ "@memberjunction/ai-mistral": "2.68.0",
33
+ "@memberjunction/ai-openai": "2.68.0",
34
+ "@memberjunction/ai-anthropic": "2.68.0",
35
+ "@memberjunction/ai-groq": "2.68.0",
36
+ "@memberjunction/ai-cerebras": "2.68.0",
37
+ "@memberjunction/ai-vectors-pinecone": "2.68.0",
38
+ "@memberjunction/core": "2.68.0",
39
+ "@memberjunction/core-actions": "2.68.0",
40
+ "@memberjunction/actions-bizapps-accounting": "2.68.0",
41
+ "@memberjunction/actions-bizapps-crm": "2.68.0",
42
+ "@memberjunction/actions-bizapps-lms": "2.68.0",
43
+ "@memberjunction/actions-bizapps-social": "2.68.0",
44
+ "@memberjunction/core-entities": "2.68.0",
45
+ "@memberjunction/core-entities-server": "2.68.0",
46
+ "@memberjunction/data-context": "2.68.0",
47
+ "@memberjunction/data-context-server": "2.68.0",
48
+ "@memberjunction/doc-utils": "2.68.0",
49
+ "@memberjunction/entity-communications-server": "2.68.0",
50
+ "@memberjunction/external-change-detection": "2.68.0",
51
+ "@memberjunction/global": "2.68.0",
52
+ "@memberjunction/graphql-dataprovider": "2.68.0",
53
+ "@memberjunction/queue": "2.68.0",
54
+ "@memberjunction/skip-types": "2.68.0",
55
+ "@memberjunction/sqlserver-dataprovider": "2.68.0",
56
+ "@memberjunction/storage": "2.68.0",
57
+ "@memberjunction/templates": "2.68.0",
58
58
  "@types/compression": "^1.7.5",
59
59
  "@types/cors": "^2.8.13",
60
60
  "@types/jsonwebtoken": "9.0.6",
@@ -2204,11 +2204,11 @@ export class AIAgent_ {
2204
2204
  @Field({description: `JSON array of paths that define which parts of the payload sub-agents are allowed to write back upstream. Use ["*"] to allow all writes, or specify paths like ["analysis.results", "recommendations.*"]`})
2205
2205
  PayloadUpstreamPaths: string;
2206
2206
 
2207
- @Field({nullable: true, description: `JSON array of paths that specify what parts of the payload the agent's own prompt can read. Controls downstream data
2207
+ @Field({nullable: true, description: `JSON array of paths that specify what parts of the payload the agent's own prompt can read. Controls downstream data
2208
2208
  flow when the agent executes its own prompt step.`})
2209
2209
  PayloadSelfReadPaths?: string;
2210
2210
 
2211
- @Field({nullable: true, description: `JSON array of paths that specify what parts of the payload the agent's own prompt can write back. Controls upstream
2211
+ @Field({nullable: true, description: `JSON array of paths that specify what parts of the payload the agent's own prompt can write back. Controls upstream
2212
2212
  data flow when the agent executes its own prompt step.`})
2213
2213
  PayloadSelfWritePaths?: string;
2214
2214
 
@@ -3969,16 +3969,16 @@ export class AIPrompt_ {
3969
3969
  @Field(() => Int, {nullable: true, description: `Default number of top log probabilities to include when IncludeLogProbs is true. Can be overridden at runtime.`})
3970
3970
  TopLogProbs?: number;
3971
3971
 
3972
+ @Field({description: `Failover strategy to use when the primary model fails. Options: SameModelDifferentVendor, NextBestModel, PowerRank, None`})
3973
+ @MaxLength(100)
3974
+ FailoverStrategy: string;
3975
+
3972
3976
  @Field(() => Int, {nullable: true, description: `Maximum number of failover attempts before giving up`})
3973
3977
  FailoverMaxAttempts?: number;
3974
3978
 
3975
3979
  @Field(() => Int, {nullable: true, description: `Initial delay in seconds between failover attempts`})
3976
3980
  FailoverDelaySeconds?: number;
3977
3981
 
3978
- @Field({description: `Failover strategy to use when the primary model fails. Options: SameModelDifferentVendor, NextBestModel, PowerRank, None`})
3979
- @MaxLength(100)
3980
- FailoverStrategy: string;
3981
-
3982
3982
  @Field({description: `Strategy for selecting failover models. Options: PreferSameModel, PreferDifferentModel, RequireSameModel`})
3983
3983
  @MaxLength(100)
3984
3984
  FailoverModelStrategy: string;
@@ -4170,15 +4170,15 @@ export class CreateAIPromptInput {
4170
4170
  @Field(() => Int, { nullable: true })
4171
4171
  TopLogProbs: number | null;
4172
4172
 
4173
+ @Field({ nullable: true })
4174
+ FailoverStrategy?: string;
4175
+
4173
4176
  @Field(() => Int, { nullable: true })
4174
4177
  FailoverMaxAttempts?: number | null;
4175
4178
 
4176
4179
  @Field(() => Int, { nullable: true })
4177
4180
  FailoverDelaySeconds?: number | null;
4178
4181
 
4179
- @Field({ nullable: true })
4180
- FailoverStrategy?: string;
4181
-
4182
4182
  @Field({ nullable: true })
4183
4183
  FailoverModelStrategy?: string;
4184
4184
 
@@ -4321,15 +4321,15 @@ export class UpdateAIPromptInput {
4321
4321
  @Field(() => Int, { nullable: true })
4322
4322
  TopLogProbs?: number | null;
4323
4323
 
4324
+ @Field({ nullable: true })
4325
+ FailoverStrategy?: string;
4326
+
4324
4327
  @Field(() => Int, { nullable: true })
4325
4328
  FailoverMaxAttempts?: number | null;
4326
4329
 
4327
4330
  @Field(() => Int, { nullable: true })
4328
4331
  FailoverDelaySeconds?: number | null;
4329
4332
 
4330
- @Field({ nullable: true })
4331
- FailoverStrategy?: string;
4332
-
4333
4333
  @Field({ nullable: true })
4334
4334
  FailoverModelStrategy?: string;
4335
4335
 
@@ -39577,6 +39577,10 @@ export class AIPromptRun_ {
39577
39577
  @Field({nullable: true, description: `JSON array of duration in milliseconds for each failover attempt`})
39578
39578
  FailoverDurations?: string;
39579
39579
 
39580
+ @Field({nullable: true, description: `The AI Model ID that was originally attempted before any failovers`})
39581
+ @MaxLength(16)
39582
+ OriginalModelID?: string;
39583
+
39580
39584
  @Field({nullable: true, description: `Timestamp when the original request started, before any failovers`})
39581
39585
  @MaxLength(8)
39582
39586
  OriginalRequestStartTime?: Date;
@@ -39584,10 +39588,6 @@ export class AIPromptRun_ {
39584
39588
  @Field(() => Int, {nullable: true, description: `Total time spent in failover attempts in milliseconds`})
39585
39589
  TotalFailoverDuration?: number;
39586
39590
 
39587
- @Field({nullable: true, description: `The AI Model ID that was originally attempted before any failovers`})
39588
- @MaxLength(16)
39589
- OriginalModelID?: string;
39590
-
39591
39591
  @Field()
39592
39592
  @MaxLength(510)
39593
39593
  Prompt: string;
@@ -39790,14 +39790,14 @@ export class CreateAIPromptRunInput {
39790
39790
  @Field({ nullable: true })
39791
39791
  FailoverDurations: string | null;
39792
39792
 
39793
+ @Field({ nullable: true })
39794
+ OriginalModelID: string | null;
39795
+
39793
39796
  @Field({ nullable: true })
39794
39797
  OriginalRequestStartTime: Date | null;
39795
39798
 
39796
39799
  @Field(() => Int, { nullable: true })
39797
39800
  TotalFailoverDuration: number | null;
39798
-
39799
- @Field({ nullable: true })
39800
- OriginalModelID: string | null;
39801
39801
  }
39802
39802
 
39803
39803
 
@@ -39971,15 +39971,15 @@ export class UpdateAIPromptRunInput {
39971
39971
  @Field({ nullable: true })
39972
39972
  FailoverDurations?: string | null;
39973
39973
 
39974
+ @Field({ nullable: true })
39975
+ OriginalModelID?: string | null;
39976
+
39974
39977
  @Field({ nullable: true })
39975
39978
  OriginalRequestStartTime?: Date | null;
39976
39979
 
39977
39980
  @Field(() => Int, { nullable: true })
39978
39981
  TotalFailoverDuration?: number | null;
39979
39982
 
39980
- @Field({ nullable: true })
39981
- OriginalModelID?: string | null;
39982
-
39983
39983
  @Field(() => [KeyValuePairInput], { nullable: true })
39984
39984
  OldValues___?: KeyValuePairInput[];
39985
39985
  }
package/src/index.ts CHANGED
@@ -45,7 +45,7 @@ import { LoadAnthropicLLM } from '@memberjunction/ai-anthropic';
45
45
  import { LoadGroqLLM } from '@memberjunction/ai-groq';
46
46
  import { LoadCerebrasLLM } from '@memberjunction/ai-cerebras';
47
47
  import { LoadMistralLLM } from '@memberjunction/ai-mistral';
48
- // Load AI LLMs
48
+ // Load AI LLMs and Base AI Engine
49
49
  // These imports are necessary to ensure the LLMs are registered in the MemberJunction AI
50
50
  // system. They are not tree-shaken because they are dynamically loaded at runtime.
51
51
  LoadOpenAILLM();