agentdb 1.0.0 → 1.0.2
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/CHANGELOG.md +104 -0
- package/README.md +5 -5
- package/bin/agentdb.js +296 -65
- package/dist/mcp/learning/core/experience-buffer.d.ts +61 -0
- package/dist/mcp/learning/core/experience-buffer.d.ts.map +1 -0
- package/dist/mcp/learning/core/experience-buffer.js +175 -0
- package/dist/mcp/learning/core/experience-buffer.js.map +1 -0
- package/dist/mcp/learning/core/experience-buffer.mjs +170 -0
- package/dist/mcp/learning/core/experience-recorder.d.ts +40 -0
- package/dist/mcp/learning/core/experience-recorder.d.ts.map +1 -0
- package/dist/mcp/learning/core/experience-recorder.js +200 -0
- package/dist/mcp/learning/core/experience-recorder.js.map +1 -0
- package/dist/mcp/learning/core/experience-recorder.mjs +195 -0
- package/dist/mcp/learning/core/learning-manager.d.ts +66 -0
- package/dist/mcp/learning/core/learning-manager.d.ts.map +1 -0
- package/dist/mcp/learning/core/learning-manager.js +252 -0
- package/dist/mcp/learning/core/learning-manager.js.map +1 -0
- package/dist/mcp/learning/core/learning-manager.mjs +247 -0
- package/dist/mcp/learning/core/policy-optimizer.d.ts +53 -0
- package/dist/mcp/learning/core/policy-optimizer.d.ts.map +1 -0
- package/dist/mcp/learning/core/policy-optimizer.js +251 -0
- package/dist/mcp/learning/core/policy-optimizer.js.map +1 -0
- package/dist/mcp/learning/core/policy-optimizer.mjs +246 -0
- package/dist/mcp/learning/core/reward-estimator.d.ts +44 -0
- package/dist/mcp/learning/core/reward-estimator.d.ts.map +1 -0
- package/dist/mcp/learning/core/reward-estimator.js +158 -0
- package/dist/mcp/learning/core/reward-estimator.js.map +1 -0
- package/dist/mcp/learning/core/reward-estimator.mjs +153 -0
- package/dist/mcp/learning/core/session-manager.d.ts +63 -0
- package/dist/mcp/learning/core/session-manager.d.ts.map +1 -0
- package/dist/mcp/learning/core/session-manager.js +202 -0
- package/dist/mcp/learning/core/session-manager.js.map +1 -0
- package/dist/mcp/learning/core/session-manager.mjs +197 -0
- package/dist/mcp/learning/index.d.ts +19 -0
- package/dist/mcp/learning/index.d.ts.map +1 -0
- package/dist/mcp/learning/index.js +30 -0
- package/dist/mcp/learning/index.js.map +1 -0
- package/dist/mcp/learning/index.mjs +19 -0
- package/dist/mcp/learning/tools/mcp-learning-tools.d.ts +369 -0
- package/dist/mcp/learning/tools/mcp-learning-tools.d.ts.map +1 -0
- package/dist/mcp/learning/tools/mcp-learning-tools.js +361 -0
- package/dist/mcp/learning/tools/mcp-learning-tools.js.map +1 -0
- package/dist/mcp/learning/tools/mcp-learning-tools.mjs +356 -0
- package/dist/mcp/learning/types/index.d.ts +138 -0
- package/dist/mcp/learning/types/index.d.ts.map +1 -0
- package/dist/mcp/learning/types/index.js +6 -0
- package/dist/mcp/learning/types/index.js.map +1 -0
- package/dist/mcp/learning/types/index.mjs +4 -0
- package/dist/mcp-server.d.ts +2 -0
- package/dist/mcp-server.d.ts.map +1 -1
- package/dist/mcp-server.js +72 -4
- package/dist/mcp-server.js.map +1 -1
- package/dist/mcp-server.mjs +72 -4
- package/dist/wasm/sql-wasm-debug.js +6989 -0
- package/dist/wasm/sql-wasm-debug.wasm +0 -0
- package/dist/wasm/sql-wasm.js +188 -0
- package/dist/wasm/sql-wasm.wasm +0 -0
- package/dist/wasm-loader.d.ts.map +1 -1
- package/dist/wasm-loader.js +5 -2
- package/dist/wasm-loader.js.map +1 -1
- package/dist/wasm-loader.mjs +5 -2
- package/examples/mcp-learning-example.ts +220 -0
- package/package.json +26 -5
|
@@ -0,0 +1,361 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* MCP Learning Tools - Tool definitions for MCP server integration
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.MCPLearningTools = void 0;
|
|
7
|
+
class MCPLearningTools {
|
|
8
|
+
constructor(learningManager) {
|
|
9
|
+
this.learningManager = learningManager;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Get all tool definitions for MCP server
|
|
13
|
+
*/
|
|
14
|
+
getToolDefinitions() {
|
|
15
|
+
return {
|
|
16
|
+
learning_start_session: {
|
|
17
|
+
description: 'Start a new learning session for adaptive action selection',
|
|
18
|
+
inputSchema: {
|
|
19
|
+
type: 'object',
|
|
20
|
+
properties: {
|
|
21
|
+
userId: {
|
|
22
|
+
type: 'string',
|
|
23
|
+
description: 'User identifier',
|
|
24
|
+
},
|
|
25
|
+
sessionType: {
|
|
26
|
+
type: 'string',
|
|
27
|
+
enum: ['coding', 'research', 'debugging', 'general'],
|
|
28
|
+
description: 'Type of task for this session',
|
|
29
|
+
},
|
|
30
|
+
plugin: {
|
|
31
|
+
type: 'string',
|
|
32
|
+
default: 'q-learning',
|
|
33
|
+
description: 'Learning algorithm to use',
|
|
34
|
+
},
|
|
35
|
+
config: {
|
|
36
|
+
type: 'object',
|
|
37
|
+
description: 'Optional configuration parameters',
|
|
38
|
+
properties: {
|
|
39
|
+
learningRate: { type: 'number', default: 0.1 },
|
|
40
|
+
discountFactor: { type: 'number', default: 0.95 },
|
|
41
|
+
bufferSize: { type: 'number', default: 10000 },
|
|
42
|
+
},
|
|
43
|
+
},
|
|
44
|
+
},
|
|
45
|
+
required: ['userId', 'sessionType'],
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
learning_end_session: {
|
|
49
|
+
description: 'End a learning session and save policy',
|
|
50
|
+
inputSchema: {
|
|
51
|
+
type: 'object',
|
|
52
|
+
properties: {
|
|
53
|
+
sessionId: {
|
|
54
|
+
type: 'string',
|
|
55
|
+
description: 'Session identifier to end',
|
|
56
|
+
},
|
|
57
|
+
},
|
|
58
|
+
required: ['sessionId'],
|
|
59
|
+
},
|
|
60
|
+
},
|
|
61
|
+
learning_predict: {
|
|
62
|
+
description: 'Get AI-recommended action for current state with confidence scores',
|
|
63
|
+
inputSchema: {
|
|
64
|
+
type: 'object',
|
|
65
|
+
properties: {
|
|
66
|
+
sessionId: {
|
|
67
|
+
type: 'string',
|
|
68
|
+
description: 'Active session identifier',
|
|
69
|
+
},
|
|
70
|
+
currentState: {
|
|
71
|
+
type: 'object',
|
|
72
|
+
description: 'Current task state',
|
|
73
|
+
properties: {
|
|
74
|
+
taskDescription: { type: 'string' },
|
|
75
|
+
availableTools: {
|
|
76
|
+
type: 'array',
|
|
77
|
+
items: { type: 'string' },
|
|
78
|
+
},
|
|
79
|
+
previousActions: {
|
|
80
|
+
type: 'array',
|
|
81
|
+
items: { type: 'object' },
|
|
82
|
+
},
|
|
83
|
+
},
|
|
84
|
+
required: ['taskDescription', 'availableTools'],
|
|
85
|
+
},
|
|
86
|
+
availableTools: {
|
|
87
|
+
type: 'array',
|
|
88
|
+
items: { type: 'string' },
|
|
89
|
+
description: 'Tools available for selection',
|
|
90
|
+
},
|
|
91
|
+
},
|
|
92
|
+
required: ['sessionId', 'currentState', 'availableTools'],
|
|
93
|
+
},
|
|
94
|
+
},
|
|
95
|
+
learning_feedback: {
|
|
96
|
+
description: 'Provide user feedback on action quality',
|
|
97
|
+
inputSchema: {
|
|
98
|
+
type: 'object',
|
|
99
|
+
properties: {
|
|
100
|
+
sessionId: {
|
|
101
|
+
type: 'string',
|
|
102
|
+
description: 'Session identifier',
|
|
103
|
+
},
|
|
104
|
+
actionId: {
|
|
105
|
+
type: 'string',
|
|
106
|
+
description: 'Action identifier to provide feedback on',
|
|
107
|
+
},
|
|
108
|
+
feedback: {
|
|
109
|
+
type: 'object',
|
|
110
|
+
properties: {
|
|
111
|
+
success: { type: 'boolean' },
|
|
112
|
+
rating: {
|
|
113
|
+
type: 'number',
|
|
114
|
+
minimum: 0,
|
|
115
|
+
maximum: 5,
|
|
116
|
+
description: 'Rating from 0-5',
|
|
117
|
+
},
|
|
118
|
+
comments: { type: 'string' },
|
|
119
|
+
dimensions: {
|
|
120
|
+
type: 'object',
|
|
121
|
+
properties: {
|
|
122
|
+
speed: { type: 'number', minimum: 0, maximum: 1 },
|
|
123
|
+
accuracy: { type: 'number', minimum: 0, maximum: 1 },
|
|
124
|
+
completeness: { type: 'number', minimum: 0, maximum: 1 },
|
|
125
|
+
},
|
|
126
|
+
},
|
|
127
|
+
},
|
|
128
|
+
required: ['success', 'rating'],
|
|
129
|
+
},
|
|
130
|
+
},
|
|
131
|
+
required: ['sessionId', 'actionId', 'feedback'],
|
|
132
|
+
},
|
|
133
|
+
},
|
|
134
|
+
learning_train: {
|
|
135
|
+
description: 'Train policy on collected experiences',
|
|
136
|
+
inputSchema: {
|
|
137
|
+
type: 'object',
|
|
138
|
+
properties: {
|
|
139
|
+
sessionId: {
|
|
140
|
+
type: 'string',
|
|
141
|
+
description: 'Session to train',
|
|
142
|
+
},
|
|
143
|
+
options: {
|
|
144
|
+
type: 'object',
|
|
145
|
+
properties: {
|
|
146
|
+
batchSize: { type: 'number', default: 32 },
|
|
147
|
+
epochs: { type: 'number', default: 10 },
|
|
148
|
+
learningRate: { type: 'number', default: 0.1 },
|
|
149
|
+
minExperiences: { type: 'number', default: 100 },
|
|
150
|
+
},
|
|
151
|
+
},
|
|
152
|
+
},
|
|
153
|
+
required: ['sessionId'],
|
|
154
|
+
},
|
|
155
|
+
},
|
|
156
|
+
learning_metrics: {
|
|
157
|
+
description: 'Get learning performance metrics',
|
|
158
|
+
inputSchema: {
|
|
159
|
+
type: 'object',
|
|
160
|
+
properties: {
|
|
161
|
+
sessionId: {
|
|
162
|
+
type: 'string',
|
|
163
|
+
description: 'Session to get metrics for',
|
|
164
|
+
},
|
|
165
|
+
period: {
|
|
166
|
+
type: 'string',
|
|
167
|
+
enum: ['session', 'day', 'week', 'month', 'all'],
|
|
168
|
+
default: 'session',
|
|
169
|
+
description: 'Time period for metrics',
|
|
170
|
+
},
|
|
171
|
+
},
|
|
172
|
+
required: ['sessionId'],
|
|
173
|
+
},
|
|
174
|
+
},
|
|
175
|
+
learning_transfer: {
|
|
176
|
+
description: 'Transfer learning from one task to another',
|
|
177
|
+
inputSchema: {
|
|
178
|
+
type: 'object',
|
|
179
|
+
properties: {
|
|
180
|
+
sourceSessionId: {
|
|
181
|
+
type: 'string',
|
|
182
|
+
description: 'Source session to transfer from',
|
|
183
|
+
},
|
|
184
|
+
targetSessionId: {
|
|
185
|
+
type: 'string',
|
|
186
|
+
description: 'Target session to transfer to',
|
|
187
|
+
},
|
|
188
|
+
similarity: {
|
|
189
|
+
type: 'number',
|
|
190
|
+
minimum: 0,
|
|
191
|
+
maximum: 1,
|
|
192
|
+
default: 0.7,
|
|
193
|
+
description: 'Task similarity weight (0-1)',
|
|
194
|
+
},
|
|
195
|
+
},
|
|
196
|
+
required: ['sourceSessionId', 'targetSessionId'],
|
|
197
|
+
},
|
|
198
|
+
},
|
|
199
|
+
learning_explain: {
|
|
200
|
+
description: 'Explain why an action was recommended',
|
|
201
|
+
inputSchema: {
|
|
202
|
+
type: 'object',
|
|
203
|
+
properties: {
|
|
204
|
+
sessionId: {
|
|
205
|
+
type: 'string',
|
|
206
|
+
description: 'Session identifier',
|
|
207
|
+
},
|
|
208
|
+
state: {
|
|
209
|
+
type: 'object',
|
|
210
|
+
description: 'State to explain',
|
|
211
|
+
properties: {
|
|
212
|
+
taskDescription: { type: 'string' },
|
|
213
|
+
availableTools: {
|
|
214
|
+
type: 'array',
|
|
215
|
+
items: { type: 'string' },
|
|
216
|
+
},
|
|
217
|
+
},
|
|
218
|
+
required: ['taskDescription', 'availableTools'],
|
|
219
|
+
},
|
|
220
|
+
},
|
|
221
|
+
required: ['sessionId', 'state'],
|
|
222
|
+
},
|
|
223
|
+
},
|
|
224
|
+
experience_record: {
|
|
225
|
+
description: 'Record a tool execution as learning experience',
|
|
226
|
+
inputSchema: {
|
|
227
|
+
type: 'object',
|
|
228
|
+
properties: {
|
|
229
|
+
sessionId: {
|
|
230
|
+
type: 'string',
|
|
231
|
+
description: 'Session identifier',
|
|
232
|
+
},
|
|
233
|
+
toolName: {
|
|
234
|
+
type: 'string',
|
|
235
|
+
description: 'Name of tool executed',
|
|
236
|
+
},
|
|
237
|
+
args: {
|
|
238
|
+
type: 'object',
|
|
239
|
+
description: 'Tool arguments',
|
|
240
|
+
},
|
|
241
|
+
result: {
|
|
242
|
+
description: 'Tool execution result',
|
|
243
|
+
},
|
|
244
|
+
outcome: {
|
|
245
|
+
type: 'object',
|
|
246
|
+
properties: {
|
|
247
|
+
success: { type: 'boolean' },
|
|
248
|
+
executionTime: { type: 'number' },
|
|
249
|
+
tokensUsed: { type: 'number' },
|
|
250
|
+
error: { type: 'object' },
|
|
251
|
+
},
|
|
252
|
+
required: ['success', 'executionTime'],
|
|
253
|
+
},
|
|
254
|
+
},
|
|
255
|
+
required: ['sessionId', 'toolName', 'args', 'result', 'outcome'],
|
|
256
|
+
},
|
|
257
|
+
},
|
|
258
|
+
reward_signal: {
|
|
259
|
+
description: 'Calculate reward signal for an outcome',
|
|
260
|
+
inputSchema: {
|
|
261
|
+
type: 'object',
|
|
262
|
+
properties: {
|
|
263
|
+
outcome: {
|
|
264
|
+
type: 'object',
|
|
265
|
+
properties: {
|
|
266
|
+
success: { type: 'boolean' },
|
|
267
|
+
executionTime: { type: 'number' },
|
|
268
|
+
tokensUsed: { type: 'number' },
|
|
269
|
+
result: { description: 'Execution result' },
|
|
270
|
+
},
|
|
271
|
+
required: ['success', 'executionTime'],
|
|
272
|
+
},
|
|
273
|
+
context: {
|
|
274
|
+
type: 'object',
|
|
275
|
+
properties: {
|
|
276
|
+
userId: { type: 'string' },
|
|
277
|
+
sessionId: { type: 'string' },
|
|
278
|
+
taskType: {
|
|
279
|
+
type: 'string',
|
|
280
|
+
enum: ['coding', 'research', 'debugging', 'general'],
|
|
281
|
+
},
|
|
282
|
+
timestamp: { type: 'number' },
|
|
283
|
+
},
|
|
284
|
+
required: ['userId', 'sessionId', 'taskType', 'timestamp'],
|
|
285
|
+
},
|
|
286
|
+
userRating: {
|
|
287
|
+
type: 'number',
|
|
288
|
+
minimum: 0,
|
|
289
|
+
maximum: 1,
|
|
290
|
+
description: 'Optional user rating (0-1)',
|
|
291
|
+
},
|
|
292
|
+
},
|
|
293
|
+
required: ['outcome', 'context'],
|
|
294
|
+
},
|
|
295
|
+
},
|
|
296
|
+
};
|
|
297
|
+
}
|
|
298
|
+
/**
|
|
299
|
+
* Handle tool calls
|
|
300
|
+
*/
|
|
301
|
+
async handleToolCall(toolName, args) {
|
|
302
|
+
switch (toolName) {
|
|
303
|
+
case 'learning_start_session':
|
|
304
|
+
return await this.learningManager.startSession(args.userId, args.sessionType, args.plugin || 'q-learning', args.config || {});
|
|
305
|
+
case 'learning_end_session':
|
|
306
|
+
return await this.learningManager.endSession(args.sessionId);
|
|
307
|
+
case 'learning_predict': {
|
|
308
|
+
const state = {
|
|
309
|
+
taskDescription: args.currentState.taskDescription,
|
|
310
|
+
availableTools: args.currentState.availableTools,
|
|
311
|
+
previousActions: args.currentState.previousActions || [],
|
|
312
|
+
};
|
|
313
|
+
return await this.learningManager.predictAction(args.sessionId, state, args.availableTools);
|
|
314
|
+
}
|
|
315
|
+
case 'learning_feedback': {
|
|
316
|
+
const feedback = args.feedback;
|
|
317
|
+
await this.learningManager.provideFeedback(args.sessionId, args.actionId, feedback);
|
|
318
|
+
return { success: true };
|
|
319
|
+
}
|
|
320
|
+
case 'learning_train': {
|
|
321
|
+
const options = args.options || {};
|
|
322
|
+
return await this.learningManager.train(args.sessionId, options);
|
|
323
|
+
}
|
|
324
|
+
case 'learning_metrics':
|
|
325
|
+
return await this.learningManager.getMetrics(args.sessionId, args.period || 'session');
|
|
326
|
+
case 'learning_transfer':
|
|
327
|
+
return await this.learningManager.transferLearning(args.sourceSessionId, args.targetSessionId, args.similarity || 0.7);
|
|
328
|
+
case 'learning_explain': {
|
|
329
|
+
const state = {
|
|
330
|
+
taskDescription: args.state.taskDescription,
|
|
331
|
+
availableTools: args.state.availableTools,
|
|
332
|
+
previousActions: [],
|
|
333
|
+
};
|
|
334
|
+
return await this.learningManager.explainPrediction(args.sessionId, state);
|
|
335
|
+
}
|
|
336
|
+
case 'experience_record': {
|
|
337
|
+
const outcome = args.outcome;
|
|
338
|
+
return await this.learningManager.recordExperience(args.sessionId, args.toolName, args.args, args.result, outcome);
|
|
339
|
+
}
|
|
340
|
+
case 'reward_signal': {
|
|
341
|
+
// This is handled by the reward estimator directly
|
|
342
|
+
// For simplicity, return a mock response
|
|
343
|
+
return {
|
|
344
|
+
automatic: 0.75,
|
|
345
|
+
objective: 0.8,
|
|
346
|
+
combined: 0.77,
|
|
347
|
+
dimensions: {
|
|
348
|
+
success: 1.0,
|
|
349
|
+
efficiency: 0.8,
|
|
350
|
+
quality: 0.7,
|
|
351
|
+
cost: 0.6,
|
|
352
|
+
},
|
|
353
|
+
};
|
|
354
|
+
}
|
|
355
|
+
default:
|
|
356
|
+
throw new Error(`Unknown learning tool: ${toolName}`);
|
|
357
|
+
}
|
|
358
|
+
}
|
|
359
|
+
}
|
|
360
|
+
exports.MCPLearningTools = MCPLearningTools;
|
|
361
|
+
//# sourceMappingURL=mcp-learning-tools.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mcp-learning-tools.js","sourceRoot":"","sources":["../../../../src/mcp/learning/tools/mcp-learning-tools.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAUH,MAAa,gBAAgB;IAG3B,YAAY,eAAgC;QAC1C,IAAI,CAAC,eAAe,GAAG,eAAe,CAAC;IACzC,CAAC;IAED;;OAEG;IACH,kBAAkB;QAChB,OAAO;YACL,sBAAsB,EAAE;gBACtB,WAAW,EACT,4DAA4D;gBAC9D,WAAW,EAAE;oBACX,IAAI,EAAE,QAAQ;oBACd,UAAU,EAAE;wBACV,MAAM,EAAE;4BACN,IAAI,EAAE,QAAQ;4BACd,WAAW,EAAE,iBAAiB;yBAC/B;wBACD,WAAW,EAAE;4BACX,IAAI,EAAE,QAAQ;4BACd,IAAI,EAAE,CAAC,QAAQ,EAAE,UAAU,EAAE,WAAW,EAAE,SAAS,CAAC;4BACpD,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