@memberjunction/ai-agent-manager 2.132.0 → 3.0.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/.turbo/turbo-build.log +6 -4
- package/CHANGELOG.md +27 -0
- package/dist/interfaces/agent-definition.interface.d.ts +158 -0
- package/dist/interfaces/agent-definition.interface.d.ts.map +1 -0
- package/dist/interfaces/agent-definition.interface.js +11 -0
- package/dist/interfaces/agent-definition.interface.js.map +1 -0
- package/package.json +9 -9
package/.turbo/turbo-build.log
CHANGED
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,32 @@
|
|
|
1
1
|
# @memberjunction/ai-agent-manager
|
|
2
2
|
|
|
3
|
+
## 3.0.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- @memberjunction/ai-agents@3.0.0
|
|
8
|
+
- @memberjunction/ai-engine-base@3.0.0
|
|
9
|
+
- @memberjunction/ai-core-plus@3.0.0
|
|
10
|
+
- @memberjunction/aiengine@3.0.0
|
|
11
|
+
- @memberjunction/core@3.0.0
|
|
12
|
+
- @memberjunction/core-entities@3.0.0
|
|
13
|
+
- @memberjunction/global@3.0.0
|
|
14
|
+
- @memberjunction/templates@3.0.0
|
|
15
|
+
|
|
16
|
+
## 2.133.0
|
|
17
|
+
|
|
18
|
+
### Patch Changes
|
|
19
|
+
|
|
20
|
+
- Updated dependencies [c00bd13]
|
|
21
|
+
- @memberjunction/core@2.133.0
|
|
22
|
+
- @memberjunction/ai-agents@2.133.0
|
|
23
|
+
- @memberjunction/ai-engine-base@2.133.0
|
|
24
|
+
- @memberjunction/ai-core-plus@2.133.0
|
|
25
|
+
- @memberjunction/aiengine@2.133.0
|
|
26
|
+
- @memberjunction/core-entities@2.133.0
|
|
27
|
+
- @memberjunction/templates@2.133.0
|
|
28
|
+
- @memberjunction/global@2.133.0
|
|
29
|
+
|
|
3
30
|
## 2.132.0
|
|
4
31
|
|
|
5
32
|
### Patch Changes
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Agent Definition Interface for MemberJunction Agent Manager
|
|
3
|
+
*
|
|
4
|
+
* This interface defines the complete structure for AI agents at any level
|
|
5
|
+
* of hierarchy. All text fields support markdown formatting for rich documentation.
|
|
6
|
+
*
|
|
7
|
+
* @module @memberjunction/agent-manager-core
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* Complete agent definition that supports n-levels of sub-agent hierarchy
|
|
11
|
+
* All text fields support markdown formatting for rich documentation
|
|
12
|
+
*/
|
|
13
|
+
export interface AIAgentDefinition {
|
|
14
|
+
name: string;
|
|
15
|
+
description: string;
|
|
16
|
+
readonly type: 'Loop';
|
|
17
|
+
purpose: string;
|
|
18
|
+
actions: {
|
|
19
|
+
/** Action ID from the system action library */
|
|
20
|
+
id: string;
|
|
21
|
+
/** Human-readable name of the action */
|
|
22
|
+
name: string;
|
|
23
|
+
/** Justification for why this action is needed */
|
|
24
|
+
reason: string;
|
|
25
|
+
}[];
|
|
26
|
+
prompt: {
|
|
27
|
+
/** System prompt for this agent */
|
|
28
|
+
systemPrompt?: string;
|
|
29
|
+
/** Template variables documentation */
|
|
30
|
+
templateVariables?: string;
|
|
31
|
+
/** Prompt analysis and notes */
|
|
32
|
+
promptNotes?: string;
|
|
33
|
+
};
|
|
34
|
+
payloadDownstreamPaths?: string[];
|
|
35
|
+
payloadUpstreamPaths?: string[];
|
|
36
|
+
subAgents?: AIAgentDefinition[];
|
|
37
|
+
executionOrder?: number;
|
|
38
|
+
exposeAsAction?: boolean;
|
|
39
|
+
iconClass?: string;
|
|
40
|
+
finalPayloadValidation?: string;
|
|
41
|
+
finalPayloadValidationMode?: 'Retry' | 'Fail' | 'Warn';
|
|
42
|
+
finalPayloadValidationMaxRetries?: number;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Root context for the Agent Manager that tracks the entire creation process
|
|
46
|
+
*/
|
|
47
|
+
export interface AIAgentManagerContext {
|
|
48
|
+
agent: AIAgentDefinition;
|
|
49
|
+
processStage: 'requirements' | 'design' | 'prompting' | 'implementation' | 'validation' | 'complete';
|
|
50
|
+
session: {
|
|
51
|
+
id: string;
|
|
52
|
+
startedAt: string;
|
|
53
|
+
userId: string;
|
|
54
|
+
userName: string;
|
|
55
|
+
purpose: string;
|
|
56
|
+
notes: string;
|
|
57
|
+
};
|
|
58
|
+
validation?: {
|
|
59
|
+
isValid: boolean;
|
|
60
|
+
report: string;
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Agent Manager Payload Definition
|
|
65
|
+
* This type defines the structure for data passed between Agent Manager sub-agents
|
|
66
|
+
*/
|
|
67
|
+
export interface AgentManagerPayload {
|
|
68
|
+
/**
|
|
69
|
+
* Metadata about the agent creation process
|
|
70
|
+
*/
|
|
71
|
+
metadata: {
|
|
72
|
+
/** Unique identifier for this agent creation session */
|
|
73
|
+
sessionId: string;
|
|
74
|
+
/** Current status of the agent creation process */
|
|
75
|
+
status: 'requirements' | 'design' | 'prompting' | 'implementation' | 'validation' | 'complete';
|
|
76
|
+
/** Original user request for agent creation */
|
|
77
|
+
originalRequest: string;
|
|
78
|
+
/** The agent who last modified the payload */
|
|
79
|
+
lastModifiedBy: string;
|
|
80
|
+
};
|
|
81
|
+
/**
|
|
82
|
+
* Requirements Analyst agent section
|
|
83
|
+
*/
|
|
84
|
+
requirements?: {
|
|
85
|
+
/** High-level business objective this agent will serve */
|
|
86
|
+
businessGoal: string;
|
|
87
|
+
/** Specific functional capabilities the agent must have */
|
|
88
|
+
functionalRequirements: string;
|
|
89
|
+
/** Technical constraints and requirements */
|
|
90
|
+
technicalRequirements: string;
|
|
91
|
+
/** Data sources and data handling requirements */
|
|
92
|
+
dataRequirements: string;
|
|
93
|
+
/** System integration requirements */
|
|
94
|
+
integrationRequirements: string;
|
|
95
|
+
/** Key assumptions made during requirements gathering */
|
|
96
|
+
assumptions: string;
|
|
97
|
+
/** Identified risks and mitigation strategies */
|
|
98
|
+
risks: string;
|
|
99
|
+
/** Explicitly defined scope boundaries */
|
|
100
|
+
outOfScope: string;
|
|
101
|
+
/** Measurable criteria for success */
|
|
102
|
+
successCriteria: string;
|
|
103
|
+
};
|
|
104
|
+
/**
|
|
105
|
+
* Planning Designer agent section
|
|
106
|
+
*/
|
|
107
|
+
design?: {
|
|
108
|
+
/** Complete agent hierarchy structure */
|
|
109
|
+
agentHierarchy: AIAgentDefinition;
|
|
110
|
+
/** Architecture documentation */
|
|
111
|
+
architecture: {
|
|
112
|
+
/** How agents will execute in sequence/parallel */
|
|
113
|
+
executionFlow: string;
|
|
114
|
+
/** How data flows between agents */
|
|
115
|
+
dataFlow: string;
|
|
116
|
+
/** Error handling and recovery strategies */
|
|
117
|
+
errorHandling: string;
|
|
118
|
+
};
|
|
119
|
+
};
|
|
120
|
+
/**
|
|
121
|
+
* Prompt Designer agent section
|
|
122
|
+
*/
|
|
123
|
+
prompts?: {
|
|
124
|
+
/** Map of agent names to their prompt configurations */
|
|
125
|
+
[agentName: string]: {
|
|
126
|
+
/** Complete system prompt for the agent */
|
|
127
|
+
systemPrompt: string;
|
|
128
|
+
/** Documentation of template variables used */
|
|
129
|
+
templateVariables: string;
|
|
130
|
+
/** Analysis and optimization notes */
|
|
131
|
+
promptNotes: string;
|
|
132
|
+
};
|
|
133
|
+
};
|
|
134
|
+
/**
|
|
135
|
+
* Agent Manager implementation section
|
|
136
|
+
*/
|
|
137
|
+
implementation?: {
|
|
138
|
+
/** Agents that have been created in the system */
|
|
139
|
+
createdAgents: {
|
|
140
|
+
/** Database ID of the created agent */
|
|
141
|
+
id: string;
|
|
142
|
+
/** Name of the agent */
|
|
143
|
+
name: string;
|
|
144
|
+
/** Current status of the agent */
|
|
145
|
+
status: 'created' | 'configured' | 'validated' | 'active';
|
|
146
|
+
}[];
|
|
147
|
+
/** Validation results for the created agent system */
|
|
148
|
+
validationResults: {
|
|
149
|
+
/** ID of the agent that was validated */
|
|
150
|
+
agentId: string;
|
|
151
|
+
/** Whether the agent passed validation */
|
|
152
|
+
isValid: boolean;
|
|
153
|
+
/** Any issues found during validation */
|
|
154
|
+
issues: string[];
|
|
155
|
+
}[];
|
|
156
|
+
};
|
|
157
|
+
}
|
|
158
|
+
//# sourceMappingURL=agent-definition.interface.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent-definition.interface.d.ts","sourceRoot":"","sources":["../../src/interfaces/agent-definition.interface.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH;;;GAGG;AACH,MAAM,WAAW,iBAAiB;IAEhC,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,OAAO,EAAE,MAAM,CAAC;IAGhB,OAAO,EAAE;QACP,+CAA+C;QAC/C,EAAE,EAAE,MAAM,CAAC;QACX,wCAAwC;QACxC,IAAI,EAAE,MAAM,CAAC;QACb,kDAAkD;QAClD,MAAM,EAAE,MAAM,CAAC;KAChB,EAAE,CAAC;IAGJ,MAAM,EAAE;QACN,mCAAmC;QACnC,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,uCAAuC;QACvC,iBAAiB,CAAC,EAAE,MAAM,CAAC;QAC3B,gCAAgC;QAChC,WAAW,CAAC,EAAE,MAAM,CAAC;KACtB,CAAC;IAGF,sBAAsB,CAAC,EAAE,MAAM,EAAE,CAAC;IAClC,oBAAoB,CAAC,EAAE,MAAM,EAAE,CAAC;IAGhC,SAAS,CAAC,EAAE,iBAAiB,EAAE,CAAC;IAGhC,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IAGnB,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,0BAA0B,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,MAAM,CAAC;IACvD,gCAAgC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,CAAC;QACnB,sCAAsC;QACtC,eAAe,EAAE,MAAM,CAAC;KACzB,CAAC;IAEF;;OAEG;IACH,MAAM,CAAC,EAAE;QACP,yCAAyC;QACzC,cAAc,EAAE,iBAAiB,CAAC;QAClC,iCAAiC;QACjC,YAAY,EAAE;YACZ,mDAAmD;YACnD,aAAa,EAAE,MAAM,CAAC;YACtB,oCAAoC;YACpC,QAAQ,EAAE,MAAM,CAAC;YACjB,6CAA6C;YAC7C,aAAa,EAAE,MAAM,CAAC;SACvB,CAAC;KACH,CAAC;IAEF;;OAEG;IACH,OAAO,CAAC,EAAE;QACR,wDAAwD;QACxD,CAAC,SAAS,EAAE,MAAM,GAAG;YACnB,2CAA2C;YAC3C,YAAY,EAAE,MAAM,CAAC;YACrB,+CAA+C;YAC/C,iBAAiB,EAAE,MAAM,CAAC;YAC1B,sCAAsC;YACtC,WAAW,EAAE,MAAM,CAAC;SACrB,CAAC;KACH,CAAC;IAEF;;OAEG;IACH,cAAc,CAAC,EAAE;QACf,kDAAkD;QAClD,aAAa,EAAE;YACb,uCAAuC;YACvC,EAAE,EAAE,MAAM,CAAC;YACX,wBAAwB;YACxB,IAAI,EAAE,MAAM,CAAC;YACb,kCAAkC;YAClC,MAAM,EAAE,SAAS,GAAG,YAAY,GAAG,WAAW,GAAG,QAAQ,CAAC;SAC3D,EAAE,CAAC;QACJ,sDAAsD;QACtD,iBAAiB,EAAE;YACjB,yCAAyC;YACzC,OAAO,EAAE,MAAM,CAAC;YAChB,0CAA0C;YAC1C,OAAO,EAAE,OAAO,CAAC;YACjB,yCAAyC;YACzC,MAAM,EAAE,MAAM,EAAE,CAAC;SAClB,EAAE,CAAC;KACL,CAAC;CACH"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Agent Definition Interface for MemberJunction Agent Manager
|
|
4
|
+
*
|
|
5
|
+
* This interface defines the complete structure for AI agents at any level
|
|
6
|
+
* of hierarchy. All text fields support markdown formatting for rich documentation.
|
|
7
|
+
*
|
|
8
|
+
* @module @memberjunction/agent-manager-core
|
|
9
|
+
*/
|
|
10
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
|
+
//# sourceMappingURL=agent-definition.interface.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent-definition.interface.js","sourceRoot":"","sources":["../../src/interfaces/agent-definition.interface.ts"],"names":[],"mappings":";AAAA;;;;;;;GAOG"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@memberjunction/ai-agent-manager",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0",
|
|
4
4
|
"description": "Core interfaces and types for the MemberJunction Agent Manager system",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -19,14 +19,14 @@
|
|
|
19
19
|
"author": "MemberJunction",
|
|
20
20
|
"license": "ISC",
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@memberjunction/ai-agents": "
|
|
23
|
-
"@memberjunction/ai-core-plus": "
|
|
24
|
-
"@memberjunction/ai-engine-base": "
|
|
25
|
-
"@memberjunction/aiengine": "
|
|
26
|
-
"@memberjunction/core": "
|
|
27
|
-
"@memberjunction/core-entities": "
|
|
28
|
-
"@memberjunction/global": "
|
|
29
|
-
"@memberjunction/templates": "
|
|
22
|
+
"@memberjunction/ai-agents": "3.0.0",
|
|
23
|
+
"@memberjunction/ai-core-plus": "3.0.0",
|
|
24
|
+
"@memberjunction/ai-engine-base": "3.0.0",
|
|
25
|
+
"@memberjunction/aiengine": "3.0.0",
|
|
26
|
+
"@memberjunction/core": "3.0.0",
|
|
27
|
+
"@memberjunction/core-entities": "3.0.0",
|
|
28
|
+
"@memberjunction/global": "3.0.0",
|
|
29
|
+
"@memberjunction/templates": "3.0.0"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@types/node": "^18.11.0",
|