@eleboucher/pi-memini 0.5.2 → 0.5.4
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/index.js +7 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -487,7 +487,8 @@ export default function meminiExtension(pi) {
|
|
|
487
487
|
parameters: Type.Object({
|
|
488
488
|
content: Type.String({ description: "The fact to remember" }),
|
|
489
489
|
tier: Type.Optional(Type.String({
|
|
490
|
-
description: "semantic=durable knowledge, procedural=how-to, episodic=what happened, working=transient
|
|
490
|
+
description: "semantic=durable knowledge, procedural=how-to, episodic=what happened, working=transient " +
|
|
491
|
+
"(omit to let the server classify from the content)",
|
|
491
492
|
})),
|
|
492
493
|
tags: Type.Optional(Type.Array(Type.String(), { description: "Optional keywords for later search/filtering." })),
|
|
493
494
|
category: Type.Optional(Type.String({
|
|
@@ -495,9 +496,11 @@ export default function meminiExtension(pi) {
|
|
|
495
496
|
})),
|
|
496
497
|
}),
|
|
497
498
|
async execute(_toolCallId, params) {
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
499
|
+
// No client-side tier default: an omitted (or invalid) tier lets the
|
|
500
|
+
// server classify the content and apply its own default.
|
|
501
|
+
const body = { content: params.content };
|
|
502
|
+
if (params.tier && VALID_TIERS.includes(params.tier))
|
|
503
|
+
body.tier = params.tier;
|
|
501
504
|
if (params.tags?.length)
|
|
502
505
|
body.tags = params.tags;
|
|
503
506
|
if (params.category)
|