mirror of
https://github.com/agent0ai/agent-zero.git
synced 2026-05-18 23:45:49 +00:00
- Add FAISS index integrity checks using a SHA-256 sidecar (`index.faiss.sha256`) and write hash on save.
- Harden `memory_load` filter evaluation with input validation (allowlist + length cap) and `simple_eval(..., functions={})`.
- Add score-preserving similarity search and use real relevance scores in consolidation (including best-score dedupe by memory id).
- Prevent utility-model context overflows by truncating memorize input history for fragments and solutions.
737 B
737 B
memory tools
use when durable recall or storage is useful
memory_load: argsquery, optionalthreshold,limit,filtermemory_save: argstext, optionalareaand metadata kwargsmemory_delete: argidscomma-separated idsmemory_forget: argsquery, optionalthreshold,filter
notes:
thresholdis similarity from0to1filteris a metadata expression (e.g.area=='main')- confirm destructive changes when accuracy matters
example:
{
"thoughts": ["I should search memory for relevant prior guidance."],
"headline": "Loading related memories",
"tool_name": "memory_load",
"tool_args": {
"query": "tool argument format",
"threshold": 0.7,
"limit": 3
}
}