@dcrays/mbh-memory 0.3.1-beta.1 → 0.3.1
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/plugin/index.js +2 -2
- package/src/tools.js +2 -2
package/package.json
CHANGED
package/plugin/index.js
CHANGED
|
@@ -259,7 +259,7 @@ function render(value) {
|
|
|
259
259
|
function createMemoryTools(memory) {
|
|
260
260
|
const getMemory = defineTool({
|
|
261
261
|
name: "get_memory",
|
|
262
|
-
description: "Read the user's long-term memory
|
|
262
|
+
description: "Read the user's long-term memory only when the current request needs prior preferences, facts, or experience. Reuse a result already read for the same context in this session; read again if the account or memory changes, or a new task needs other history. Skip greetings and self-contained requests.",
|
|
263
263
|
parameters: {},
|
|
264
264
|
output: {
|
|
265
265
|
schema: { type: "json" },
|
|
@@ -271,7 +271,7 @@ function createMemoryTools(memory) {
|
|
|
271
271
|
});
|
|
272
272
|
const setMemory = defineTool({
|
|
273
273
|
name: "set_memory",
|
|
274
|
-
description: "Write one durable memory
|
|
274
|
+
description: "Write one durable memory only after the user explicitly asks to remember it for future conversations or confirms a suggestion to do so. Store a concise, self-contained, lasting fact or preference, not a transcript, temporary detail, unconfirmed inference, password, token, API key, or other secret. Report a failed write honestly.",
|
|
275
275
|
parameters: {
|
|
276
276
|
memory: {
|
|
277
277
|
type: "string",
|
package/src/tools.js
CHANGED
|
@@ -5,7 +5,7 @@ function render(value) {
|
|
|
5
5
|
export function createMemoryTools(memory) {
|
|
6
6
|
const getMemory = defineTool({
|
|
7
7
|
name: 'get_memory',
|
|
8
|
-
description: "Read the user's long-term memory
|
|
8
|
+
description: "Read the user's long-term memory only when the current request needs prior preferences, facts, or experience. Reuse a result already read for the same context in this session; read again if the account or memory changes, or a new task needs other history. Skip greetings and self-contained requests.",
|
|
9
9
|
parameters: {},
|
|
10
10
|
output: {
|
|
11
11
|
schema: { type: 'json' },
|
|
@@ -17,7 +17,7 @@ export function createMemoryTools(memory) {
|
|
|
17
17
|
});
|
|
18
18
|
const setMemory = defineTool({
|
|
19
19
|
name: 'set_memory',
|
|
20
|
-
description: 'Write one durable memory
|
|
20
|
+
description: 'Write one durable memory only after the user explicitly asks to remember it for future conversations or confirms a suggestion to do so. Store a concise, self-contained, lasting fact or preference, not a transcript, temporary detail, unconfirmed inference, password, token, API key, or other secret. Report a failed write honestly.',
|
|
21
21
|
parameters: {
|
|
22
22
|
memory: {
|
|
23
23
|
type: 'string',
|