pi-memory
pi-memory copied to clipboard
memory_remember always fails
I'm using Qwen 3.6 locally, memory_remember always fails:
Validation failed for tool "memory_remember":
- type: must be equal to constant
- type: must be equal to constant
- type: must match a schema in anyOf
Received arguments:
{
"type": "\"fact\"",
"key": "\"a\"",
"value": "\"b\""
}
same with lesson.
Library installed as part of pi-total-recall.
Thanks for the report — this is a known quirk with some local runners double-JSON-encoding tool arguments (the type arrives as the 7-char string "fact" instead of fact).
Fixed in 402302f and released as @samfp/[email protected] (and bundled into [email protected]). The tool now:
- Accepts any string for
typeat the schema layer - Strips one layer of surrounding quotes from string args (
type,key,value,rule,category) - Validates
type ∈ {fact, lesson}inside the handler with a friendlier error
Update with npm i -g pi-total-recall@latest (or @samfp/pi-memory@latest if you use it directly) and give it another try. Closing — please reopen if you still hit it.