@memberjunction/ai-agents 2.50.0 → 2.51.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.
@@ -14,7 +14,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./LoopAgentType"), exports);
18
- const LoopAgentType_1 = require("./LoopAgentType");
19
- (0, LoopAgentType_1.LoadLoopAgentType)();
17
+ __exportStar(require("./base-agent-type"), exports);
18
+ __exportStar(require("./loop-agent-type"), exports);
19
+ const loop_agent_type_1 = require("./loop-agent-type");
20
+ (0, loop_agent_type_1.LoadLoopAgentType)();
20
21
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/agent-types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAYA,kDAAgC;AAGhC,mDAAoD;AACpD,IAAA,iCAAiB,GAAE,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/agent-types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAYA,oDAAkC;AAClC,oDAAkC;AAGlC,uDAAsD;AACtD,IAAA,mCAAiB,GAAE,CAAC"}
@@ -1,9 +1,9 @@
1
- import { BaseAgentType } from '../base-agent-type';
2
- import { BaseAgentNextStep } from '../types';
3
- import { AIPromptRunResult } from '@memberjunction/ai-prompts';
1
+ import { BaseAgentType } from './base-agent-type';
2
+ import { BaseAgentNextStep } from '@memberjunction/aiengine';
3
+ import { AIPromptRunResult } from '@memberjunction/ai';
4
4
  export declare class LoopAgentType extends BaseAgentType {
5
5
  DetermineNextStep(promptResult: AIPromptRunResult): Promise<BaseAgentNextStep>;
6
6
  private isValidLoopResponse;
7
7
  }
8
8
  export declare function LoadLoopAgentType(): void;
9
- //# sourceMappingURL=LoopAgentType.d.ts.map
9
+ //# sourceMappingURL=loop-agent-type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"loop-agent-type.d.ts","sourceRoot":"","sources":["../../src/agent-types/loop-agent-type.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAClD,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAsJvD,qBACa,aAAc,SAAQ,aAAa;IAa/B,iBAAiB,CAAC,YAAY,EAAE,iBAAiB,GAAG,OAAO,CAAC,iBAAiB,CAAC;IAiI3F,OAAO,CAAC,mBAAmB;CAiD9B;AAKD,wBAAgB,iBAAiB,SAEhC"}
@@ -8,7 +8,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
8
8
  Object.defineProperty(exports, "__esModule", { value: true });
9
9
  exports.LoadLoopAgentType = exports.LoopAgentType = void 0;
10
10
  const global_1 = require("@memberjunction/global");
11
- const base_agent_type_1 = require("../base-agent-type");
11
+ const base_agent_type_1 = require("./base-agent-type");
12
12
  const core_1 = require("@memberjunction/core");
13
13
  let LoopAgentType = class LoopAgentType extends base_agent_type_1.BaseAgentType {
14
14
  async DetermineNextStep(promptResult) {
@@ -19,66 +19,86 @@ let LoopAgentType = class LoopAgentType extends base_agent_type_1.BaseAgentType
19
19
  errorMessage: promptResult.errorMessage || 'Prompt execution failed'
20
20
  };
21
21
  }
22
- const response = promptResult.result;
23
- if (!this.isValidLoopResponse(response)) {
22
+ let response;
23
+ try {
24
+ if (typeof promptResult.result === 'string') {
25
+ response = JSON.parse(promptResult.result);
26
+ }
27
+ else {
28
+ response = promptResult.result;
29
+ }
30
+ }
31
+ catch (parseError) {
24
32
  return {
25
33
  step: 'failed',
26
- errorMessage: 'Invalid response structure from loop agent prompt'
34
+ errorMessage: `Failed to parse JSON response: ${parseError.message}`
27
35
  };
28
36
  }
29
- (0, core_1.LogStatus)(`🔄 Loop Agent Reasoning: ${response.reasoning}`);
30
- if (response.progress) {
31
- (0, core_1.LogStatus)(`📊 Progress: ${response.progress.percentage}% - ${response.progress.message}`);
32
- }
33
- if (response.error?.occurred) {
37
+ if (!this.isValidLoopResponse(response)) {
34
38
  return {
35
39
  step: 'failed',
36
- errorMessage: response.error.message || 'Agent reported an error'
40
+ errorMessage: 'Invalid response structure from loop agent prompt'
37
41
  };
38
42
  }
43
+ (0, core_1.LogStatus)(`🔄 Loop Agent Reasoning: ${response.reasoning}`);
44
+ if (response.confidence !== undefined) {
45
+ (0, core_1.LogStatus)(`🎯 Confidence: ${(response.confidence * 100).toFixed(0)}%`);
46
+ }
39
47
  if (response.taskComplete) {
40
48
  (0, core_1.LogStatus)('✅ Loop Agent: Task completed successfully');
41
49
  return {
42
50
  step: 'success',
43
- returnValue: response.result || response
51
+ returnValue: response
52
+ };
53
+ }
54
+ if (!response.nextStep) {
55
+ return {
56
+ step: 'failed',
57
+ errorMessage: 'Task not complete but no next step provided'
44
58
  };
45
59
  }
46
60
  switch (response.nextStep.type) {
47
61
  case 'sub-agent':
48
- if (!response.nextStep.target) {
62
+ if (!response.nextStep.subAgent) {
49
63
  return {
50
64
  step: 'failed',
51
- errorMessage: 'Sub-agent target not specified'
65
+ errorMessage: 'Sub-agent details not specified'
52
66
  };
53
67
  }
54
68
  return {
55
69
  step: 'sub-agent',
56
- subAgentName: response.nextStep.target,
57
- subAgentInstructions: response.nextStep.parameters
70
+ subAgent: {
71
+ id: response.nextStep.subAgent.id,
72
+ name: response.nextStep.subAgent.name,
73
+ message: response.nextStep.subAgent.message,
74
+ terminateAfter: response.nextStep.subAgent.terminateAfter
75
+ }
58
76
  };
59
77
  case 'action':
60
- if (!response.nextStep.target) {
78
+ if (!response.nextStep.actions || response.nextStep.actions.length === 0) {
61
79
  return {
62
80
  step: 'failed',
63
- errorMessage: 'Action target not specified'
81
+ errorMessage: 'Actions not specified'
64
82
  };
65
83
  }
66
84
  return {
67
- step: 'action',
68
- actionName: response.nextStep.target,
69
- actionParameters: response.nextStep.parameters
85
+ step: 'actions',
86
+ actions: response.nextStep.actions.map(action => ({
87
+ id: action.id,
88
+ name: action.name,
89
+ params: action.params
90
+ }))
70
91
  };
71
- case 'continue':
72
- return {
73
- step: 'retry',
74
- retryReason: 'Agent requested continuation',
75
- retryInstructions: response.reasoning
76
- };
77
- case 'none':
78
- (0, core_1.LogStatus)('⚠️ Loop Agent: No next step but task not complete');
92
+ case 'chat':
93
+ if (!response.nextStep.userMessage) {
94
+ return {
95
+ step: 'failed',
96
+ errorMessage: 'Chat type specified but no user message provided'
97
+ };
98
+ }
79
99
  return {
80
- step: 'retry',
81
- retryReason: 'No action specified but task incomplete'
100
+ step: 'chat',
101
+ userMessage: response.nextStep.userMessage
82
102
  };
83
103
  default:
84
104
  return {
@@ -107,19 +127,28 @@ let LoopAgentType = class LoopAgentType extends base_agent_type_1.BaseAgentType
107
127
  (0, core_1.LogError)('LoopAgentResponse missing required field: reasoning');
108
128
  return false;
109
129
  }
110
- if (!response.nextStep || typeof response.nextStep !== 'object') {
111
- (0, core_1.LogError)('LoopAgentResponse missing required field: nextStep');
130
+ if (!response.taskComplete && !response.nextStep) {
131
+ (0, core_1.LogError)('LoopAgentResponse requires nextStep when taskComplete is false');
112
132
  return false;
113
133
  }
114
- const validStepTypes = ['action', 'sub-agent', 'continue', 'none'];
115
- if (!validStepTypes.includes(response.nextStep.type)) {
116
- (0, core_1.LogError)(`LoopAgentResponse has invalid nextStep.type: ${response.nextStep.type}`);
117
- return false;
118
- }
119
- if ((response.nextStep.type === 'action' || response.nextStep.type === 'sub-agent') &&
120
- !response.nextStep.target) {
121
- (0, core_1.LogError)(`LoopAgentResponse requires target for nextStep.type: ${response.nextStep.type}`);
122
- return false;
134
+ if (response.nextStep) {
135
+ const validStepTypes = ['action', 'sub-agent', 'chat'];
136
+ if (!validStepTypes.includes(response.nextStep.type)) {
137
+ (0, core_1.LogError)(`LoopAgentResponse has invalid nextStep.type: ${response.nextStep.type}`);
138
+ return false;
139
+ }
140
+ if (response.nextStep.type === 'action' && !response.nextStep.actions) {
141
+ (0, core_1.LogError)('LoopAgentResponse requires actions array for action type');
142
+ return false;
143
+ }
144
+ if (response.nextStep.type === 'sub-agent' && !response.nextStep.subAgent) {
145
+ (0, core_1.LogError)('LoopAgentResponse requires subAgent object for sub-agent type');
146
+ return false;
147
+ }
148
+ if (response.nextStep.type === 'chat' && !response.nextStep.userMessage) {
149
+ (0, core_1.LogError)('LoopAgentResponse requires userMessage for chat type');
150
+ return false;
151
+ }
123
152
  }
124
153
  return true;
125
154
  }
@@ -131,4 +160,4 @@ exports.LoopAgentType = LoopAgentType = __decorate([
131
160
  function LoadLoopAgentType() {
132
161
  }
133
162
  exports.LoadLoopAgentType = LoadLoopAgentType;
134
- //# sourceMappingURL=LoopAgentType.js.map
163
+ //# sourceMappingURL=loop-agent-type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"loop-agent-type.js","sourceRoot":"","sources":["../../src/agent-types/loop-agent-type.ts"],"names":[],"mappings":";;;;;;;;;AAYA,mDAAuD;AACvD,uDAAkD;AAGlD,+CAA2D;AAsJpD,IAAM,aAAa,GAAnB,MAAM,aAAc,SAAQ,+BAAa;IAarC,KAAK,CAAC,iBAAiB,CAAC,YAA+B;QAC1D,IAAI,CAAC;YAED,IAAI,CAAC,YAAY,CAAC,OAAO,IAAI,CAAC,YAAY,CAAC,MAAM,EAAE,CAAC;gBAChD,OAAO;oBACH,IAAI,EAAE,QAAQ;oBACd,YAAY,EAAE,YAAY,CAAC,YAAY,IAAI,yBAAyB;iBACvE,CAAC;YACN,CAAC;YAGD,IAAI,QAA2B,CAAC;YAChC,IAAI,CAAC;gBACD,IAAI,OAAO,YAAY,CAAC,MAAM,KAAK,QAAQ,EAAE,CAAC;oBAC1C,QAAQ,GAAG,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC;g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I,CAAC,QAAQ,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC;gBACpE,IAAA,eAAQ,EAAC,0DAA0D,CAAC,CAAC;gBACrE,OAAO,KAAK,CAAC;YACjB,CAAC;YAED,IAAI,QAAQ,CAAC,QAAQ,CAAC,IAAI,KAAK,WAAW,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,QAAQ,EAAE,CAAC;gBACxE,IAAA,eAAQ,EAAC,+DAA+D,CAAC,CAAC;gBAC1E,OAAO,KAAK,CAAC;YACjB,CAAC;YAED,IAAI,QAAQ,CAAC,QAAQ,CAAC,IAAI,KAAK,MAAM,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,WAAW,EAAE,CAAC;gBACtE,IAAA,eAAQ,EAAC,sDAAsD,CAAC,CAAC;gBACjE,OAAO,KAAK,CAAC;YACjB,CAAC;QACL,CAAC;QAED,OAAO,IAAI,CAAC;IAChB,CAAC;CACJ,CAAA;AA/LY,sCAAa;wBAAb,aAAa;IADzB,IAAA,sBAAa,EAAC,+BAAa,EAAE,eAAe,CAAC;GACjC,aAAa,CA+LzB;AAKD,SAAgB,iBAAiB;AAEjC,CAAC;AAFD,8CAEC"}
@@ -1,9 +1,58 @@
1
- import { ExecuteAgentParams, ExecuteAgentResult } from './types';
1
+ /// <reference types="node" />
2
+ import { AIAgentEntity, AIAgentTypeEntity } from '@memberjunction/core-entities';
3
+ import { UserInfo } from '@memberjunction/core';
4
+ import { AIPromptParams } from '@memberjunction/ai-prompts';
5
+ import { ChatMessage } from '@memberjunction/ai';
6
+ import { ExecuteAgentParams, AgentConfiguration, AgentExecutionProgressCallback, AgentExecutionStreamingCallback } from './types';
7
+ import { ExecuteAgentResult, AgentAction, AgentSubAgentRequest, BaseAgentNextStep } from '@memberjunction/aiengine';
2
8
  export declare class BaseAgent {
3
9
  private _promptRunner;
10
+ private _metadata;
11
+ private _runContext;
12
+ private _agentRun;
13
+ private _executionChain;
14
+ private _allProgressSteps;
15
+ private _subAgentRuns;
16
+ private getAgentRunSteps;
17
+ private wrapProgressCallback;
4
18
  Execute(params: ExecuteAgentParams): Promise<ExecuteAgentResult>;
19
+ protected initializeEngines(contextUser?: UserInfo): Promise<void>;
20
+ protected validateAgent(agent: AIAgentEntity): Promise<ExecuteAgentResult | null>;
21
+ protected loadAgentConfiguration(agent: AIAgentEntity): Promise<AgentConfiguration>;
22
+ protected preparePromptParams(agentType: AIAgentTypeEntity, systemPrompt: any, childPrompt: any, params: ExecuteAgentParams): Promise<AIPromptParams>;
23
+ protected executePrompt(promptParams: AIPromptParams): Promise<any>;
24
+ protected processNextStep(params: ExecuteAgentParams, agentType: AIAgentTypeEntity, promptResult: any): Promise<BaseAgentNextStep>;
25
+ protected createActionResultMessage(actions: AgentAction[], results: any[]): ChatMessage;
26
+ protected createSubAgentResultMessage(subAgent: AgentSubAgentRequest, result: any): ChatMessage;
5
27
  private gatherContextData;
6
28
  private getAgentTypeInstance;
7
29
  private getAgentInstanceWithDriverClass;
30
+ ExecuteActions(actions: AgentAction[], contextUser?: UserInfo): Promise<any[]>;
31
+ ExecuteSubAgent(subAgentRequest: AgentSubAgentRequest, conversationMessages: ChatMessage[], contextUser?: UserInfo, cancellationToken?: AbortSignal, onProgress?: AgentExecutionProgressCallback, onStreaming?: AgentExecutionStreamingCallback): Promise<ExecuteAgentResult>;
32
+ private formatSubAgentDetails;
33
+ private formatActionDetails;
34
+ private formatActionParameter;
35
+ private getAgentTypeName;
36
+ private getValueListItems;
37
+ private getActionCategoryName;
38
+ private inferResultCodeUsage;
39
+ private initializeAgentRun;
40
+ private validateAgentWithTracking;
41
+ private createStepEntity;
42
+ private finalizeStepEntity;
43
+ private formatHierarchicalMessage;
44
+ private executeNextStep;
45
+ private executePromptStep;
46
+ private executeSubAgentStep;
47
+ private executeActionsStep;
48
+ private executeChatStep;
49
+ private createFailureResult;
50
+ private createCancelledResult;
51
+ private finalizeAgentRun;
52
+ private countStepsInTree;
53
+ private buildExecutionTree;
54
+ private sortExecutionTreeByStepNumber;
55
+ private getNextStepReasoning;
56
+ private getNextStepDetails;
8
57
  }
9
58
  //# sourceMappingURL=base-agent.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"base-agent.d.ts","sourceRoot":"","sources":["../src/base-agent.ts"],"names":[],"mappings":"AAoBA,OAAO,EACH,kBAAkB,EAClB,kBAAkB,EAGrB,MAAM,SAAS,CAAC;AA+BjB,qBAAa,SAAS;IAKlB,OAAO,CAAC,aAAa,CAAwC;IA2BhD,OAAO,CAAC,MAAM,EAAE,kBAAkB,GAAG,OAAO,CAAC,kBAAkB,CAAC;YAwJ/D,iBAAiB;YA0DjB,oBAAoB;YAiBpB,+BAA+B;CAShD"}
1
+ {"version":3,"file":"base-agent.d.ts","sourceRoot":"","sources":["../src/base-agent.ts"],"names":[],"mappings":";AAaA,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAA0C,MAAM,+BAA+B,CAAC;AACzH,OAAO,EAAE,QAAQ,EAAqB,MAAM,sBAAsB,CAAC;AACnE,OAAO,EAAkB,cAAc,EAAoB,MAAM,4BAA4B,CAAC;AAC9F,OAAO,EAAE,WAAW,EAAqB,MAAM,oBAAoB,CAAC;AAKpE,OAAO,EACH,kBAAkB,EAElB,kBAAkB,EAElB,8BAA8B,EAC9B,+BAA+B,EAClC,MAAM,SAAS,CAAC;AACjB,OAAO,EACH,kBAAkB,EAClB,WAAW,EACX,oBAAoB,EAYpB,iBAAiB,EACpB,MAAM,0BAA0B,CAAC;AAgClC,qBAAa,SAAS;IAKlB,OAAO,CAAC,aAAa,CAAwC;IAM7D,OAAO,CAAC,SAAS,CAA4B;IAM7C,OAAO,CAAC,WAAW,CAAgC;IAMnD,OAAO,CAAC,SAAS,CAAiC;IAMlD,OAAO,CAAC,eAAe,CAA4B;IAMnD,OAAO,CAAC,iBAAiB,CAAa;IAMtC,OAAO,CAAC,aAAa,CAA4B;YAMnC,gBAAgB;IAmB9B,OAAO,CAAC,oBAAoB;IA0Cf,OAAO,CAAC,M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