mirror of
https://github.com/agent0ai/agent-zero.git
synced 2026-05-19 16:31:30 +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.
25 lines
737 B
Markdown
25 lines
737 B
Markdown
## memory tools
|
|
use when durable recall or storage is useful
|
|
- `memory_load`: args `query`, optional `threshold`, `limit`, `filter`
|
|
- `memory_save`: args `text`, optional `area` and metadata kwargs
|
|
- `memory_delete`: arg `ids` comma-separated ids
|
|
- `memory_forget`: args `query`, optional `threshold`, `filter`
|
|
|
|
notes:
|
|
- `threshold` is similarity from `0` to `1`
|
|
- `filter` is a metadata expression (e.g. `area=='main'`)
|
|
- confirm destructive changes when accuracy matters
|
|
|
|
example:
|
|
~~~json
|
|
{
|
|
"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
|
|
}
|
|
}
|
|
~~~
|