agent-recall-mcp 3.3.27 → 3.3.28
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/tools/check.d.ts.map +1 -1
- package/dist/tools/check.js +12 -3
- package/dist/tools/check.js.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"check.d.ts","sourceRoot":"","sources":["../../src/tools/check.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAIzE,wBAAgB,QAAQ,CAAC,MAAM,EAAE,SAAS,GAAG,IAAI,
|
|
1
|
+
{"version":3,"file":"check.d.ts","sourceRoot":"","sources":["../../src/tools/check.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAIzE,wBAAgB,QAAQ,CAAC,MAAM,EAAE,SAAS,GAAG,IAAI,CAyBhD"}
|
package/dist/tools/check.js
CHANGED
|
@@ -3,7 +3,7 @@ import { check } from "agent-recall-core";
|
|
|
3
3
|
export function register(server) {
|
|
4
4
|
server.registerTool("check", {
|
|
5
5
|
title: "Check Understanding",
|
|
6
|
-
description: "Record what you think the human wants. Returns predictive warnings
|
|
6
|
+
description: "Record what you think the human wants. Returns predictive warnings. Optionally track decision trails with prior/posterior/evidence for calibrated judgment over time.",
|
|
7
7
|
inputSchema: {
|
|
8
8
|
goal: z.string().describe("What you think the human wants."),
|
|
9
9
|
confidence: z.enum(["high", "medium", "low"]),
|
|
@@ -11,9 +11,18 @@ export function register(server) {
|
|
|
11
11
|
human_correction: z.string().optional().describe("After human responds: what they actually wanted (or 'confirmed')."),
|
|
12
12
|
delta: z.string().optional().describe("The gap between your understanding and reality (or 'none')."),
|
|
13
13
|
project: z.string().default("auto"),
|
|
14
|
+
prior: z.number().min(0).max(1).optional().describe("Initial probability estimate (0-1). Start of Bayesian decision trail."),
|
|
15
|
+
evidence: z.array(z.object({
|
|
16
|
+
factor: z.string().describe("What was observed"),
|
|
17
|
+
direction: z.enum(["supports", "weakens"]).describe("Does this support or weaken the hypothesis?"),
|
|
18
|
+
weight: z.number().min(0).max(1).optional().describe("How much it shifts (0-1, default 0.1)"),
|
|
19
|
+
})).optional().describe("Evidence collected since prior. Each entry shifts probability."),
|
|
20
|
+
posterior: z.number().min(0).max(1).optional().describe("Updated probability after considering evidence (0-1)."),
|
|
21
|
+
outcome: z.string().optional().describe("Final decision result: 'confirmed', 'rejected', 'partial', or free text. Triggers decision trail persistence."),
|
|
22
|
+
decision_id: z.string().optional().describe("Link multiple check calls to the same decision. Auto-generated if not provided."),
|
|
14
23
|
},
|
|
15
|
-
}, async ({ goal, confidence, assumptions, human_correction, delta, project }) => {
|
|
16
|
-
const result = await check({ goal, confidence, assumptions, human_correction, delta, project });
|
|
24
|
+
}, async ({ goal, confidence, assumptions, human_correction, delta, project, prior, evidence, posterior, outcome, decision_id }) => {
|
|
25
|
+
const result = await check({ goal, confidence, assumptions, human_correction, delta, project, prior, evidence, posterior, outcome, decision_id });
|
|
17
26
|
return { content: [{ type: "text", text: JSON.stringify(result) }] };
|
|
18
27
|
});
|
|
19
28
|
}
|
package/dist/tools/check.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"check.js","sourceRoot":"","sources":["../../src/tools/check.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAE1C,MAAM,UAAU,QAAQ,CAAC,MAAiB;IACxC,MAAM,CAAC,YAAY,CAAC,OAAO,EAAE;QAC3B,KAAK,EAAE,qBAAqB;QAC5B,WAAW,EAAE,
|
|
1
|
+
{"version":3,"file":"check.js","sourceRoot":"","sources":["../../src/tools/check.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,KAA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