@pentatonic-ai/ai-agent-sdk 0.5.4 → 0.5.5
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 +1 -1
- package/packages/memory/openclaw-plugin/__tests__/indicator.test.js +9 -10
- package/packages/memory/openclaw-plugin/index.js +1 -3
- package/packages/memory/openclaw-plugin/openclaw.plugin.json +1 -1
- package/packages/memory/openclaw-plugin/package.json +1 -1
- package/packages/memory/src/openclaw/index.js +1 -3
- package/packages/memory/src/server.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pentatonic-ai/ai-agent-sdk",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.5",
|
|
4
4
|
"description": "TES SDK — LLM observability and lifecycle tracking via Pentatonic Thing Event System. Track token usage, tool calls, and conversations. Manage things through event-sourced lifecycle stages with AI enrichment and vector search.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -77,7 +77,7 @@ describe("memory-used indicator — hosted mode", () => {
|
|
|
77
77
|
});
|
|
78
78
|
|
|
79
79
|
expect(result.systemPromptAddition).toMatch(/🧠/);
|
|
80
|
-
expect(result.systemPromptAddition).toMatch(/
|
|
80
|
+
expect(result.systemPromptAddition).toMatch(/Matched 2 memories from Pentatonic Memory/);
|
|
81
81
|
expect(result.systemPromptAddition).toMatch(/append exactly this footer/);
|
|
82
82
|
});
|
|
83
83
|
|
|
@@ -90,8 +90,8 @@ describe("memory-used indicator — hosted mode", () => {
|
|
|
90
90
|
messages: [{ role: "user", content: "query" }],
|
|
91
91
|
});
|
|
92
92
|
|
|
93
|
-
expect(result.systemPromptAddition).toMatch(/
|
|
94
|
-
expect(result.systemPromptAddition).not.toMatch(/
|
|
93
|
+
expect(result.systemPromptAddition).toMatch(/Matched 1 memory from Pentatonic Memory/);
|
|
94
|
+
expect(result.systemPromptAddition).not.toMatch(/Matched 1 memories/);
|
|
95
95
|
});
|
|
96
96
|
|
|
97
97
|
it("omits the indicator instruction when show_memory_indicator is false", async () => {
|
|
@@ -123,10 +123,10 @@ describe("memory-used indicator — hosted mode", () => {
|
|
|
123
123
|
expect(result.systemPromptAddition).toBeUndefined();
|
|
124
124
|
});
|
|
125
125
|
|
|
126
|
-
it("instructs the LLM to
|
|
127
|
-
//
|
|
128
|
-
//
|
|
129
|
-
//
|
|
126
|
+
it("always instructs the LLM to append the footer when memories were retrieved", async () => {
|
|
127
|
+
// Removed the "omit if irrelevant" escape hatch so users always get
|
|
128
|
+
// a visible signal when memory was consulted — even when retrieval
|
|
129
|
+
// was poor. Surfaces retrieval quality instead of hiding it.
|
|
130
130
|
mockFetch([{ id: "m1", content: "Phil likes cheese", similarity: 0.4 }]);
|
|
131
131
|
const engine = makeEngine();
|
|
132
132
|
|
|
@@ -135,8 +135,7 @@ describe("memory-used indicator — hosted mode", () => {
|
|
|
135
135
|
messages: [{ role: "user", content: "query" }],
|
|
136
136
|
});
|
|
137
137
|
|
|
138
|
-
expect(result.systemPromptAddition).toMatch(
|
|
139
|
-
|
|
140
|
-
);
|
|
138
|
+
expect(result.systemPromptAddition).not.toMatch(/omit the footer/);
|
|
139
|
+
expect(result.systemPromptAddition).toMatch(/append exactly this footer/);
|
|
141
140
|
});
|
|
142
141
|
});
|
|
@@ -656,9 +656,7 @@ export default {
|
|
|
656
656
|
"",
|
|
657
657
|
`After your reply, on a new line, append exactly this footer (no other prefix, no trailing content):`,
|
|
658
658
|
`—`,
|
|
659
|
-
`🧠
|
|
660
|
-
"",
|
|
661
|
-
`If the memories above were not relevant to your reply, omit the footer.`,
|
|
659
|
+
`🧠 _Matched ${results.length} memor${results.length === 1 ? "y" : "ies"} from Pentatonic Memory_`,
|
|
662
660
|
]
|
|
663
661
|
: [];
|
|
664
662
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"id": "pentatonic-memory",
|
|
3
3
|
"name": "Pentatonic Memory",
|
|
4
4
|
"description": "Persistent, searchable memory with multi-signal retrieval and HyDE query expansion. Local (Docker + Ollama) or hosted (Pentatonic TES).",
|
|
5
|
-
"version": "0.5.
|
|
5
|
+
"version": "0.5.2",
|
|
6
6
|
"kind": "context-engine",
|
|
7
7
|
"configSchema": {
|
|
8
8
|
"type": "object",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pentatonic-ai/openclaw-memory-plugin",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.2",
|
|
4
4
|
"description": "Pentatonic Memory plugin for OpenClaw — persistent, searchable memory with multi-signal retrieval and HyDE query expansion",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "index.js",
|
|
@@ -452,9 +452,7 @@ function createHostedContextEngine(config, opts = {}) {
|
|
|
452
452
|
"",
|
|
453
453
|
`After your reply, on a new line, append exactly this footer (no other prefix, no trailing content):`,
|
|
454
454
|
`—`,
|
|
455
|
-
`🧠
|
|
456
|
-
"",
|
|
457
|
-
`If the memories above were not relevant to your reply, omit the footer.`,
|
|
455
|
+
`🧠 _Matched ${results.length} memor${results.length === 1 ? "y" : "ies"} from Pentatonic Memory_`,
|
|
458
456
|
].join("\n")
|
|
459
457
|
: "";
|
|
460
458
|
|