mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-04-25 00:51:20 +00:00
fix: tighten memory and session recall guidance
Remove diary-style memory framing from the system prompt and memory tool schema, explicitly steer task/session logs to session_search, and clarify that session_search is for cross-session recall after checking the current conversation first. Add regression tests for the updated guidance text.
This commit is contained in:
parent
6d8286f396
commit
5319bb6ac4
6 changed files with 66 additions and 16 deletions
|
|
@ -9,9 +9,24 @@ from tools.memory_tool import (
|
|||
memory_tool,
|
||||
_scan_memory_content,
|
||||
ENTRY_DELIMITER,
|
||||
MEMORY_SCHEMA,
|
||||
)
|
||||
|
||||
|
||||
# =========================================================================
|
||||
# Tool schema guidance
|
||||
# =========================================================================
|
||||
|
||||
class TestMemorySchema:
|
||||
def test_discourages_diary_style_task_logs(self):
|
||||
description = MEMORY_SCHEMA["description"]
|
||||
assert "Do NOT save task progress" in description
|
||||
assert "session_search" in description
|
||||
assert "like a diary" not in description
|
||||
assert "temporary task state" in description
|
||||
assert ">80%" not in description
|
||||
|
||||
|
||||
# =========================================================================
|
||||
# Security scanning
|
||||
# =========================================================================
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue