Add long-term-memory module: file, vector and summary memory on one Spring AI agent. AutoMemoryTools and AutoMemoryToolsAdvisor, fact extraction with a privacy gate into PostgreSQL and pgvector, VectorStoreChatMemoryAdvisor, a versioned summary, updating, forgetting, isolation, expiry, recall with all-MiniLM-L6-v2 and token cost. Scripted ChatModel; no provider or local LLM called. Spring Boot 4.2.0, Spring AI 2.1.0, Java 25.
Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017ic4b4RzcCS5JCAgcxLz7T
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
# What AutoMemoryTools itself enforces (tools called directly, no model)
|
||||
|
||||
create over an existing file : Error: File already exists: user_diet.md. Use MemoryStrReplace to modify existing files.
|
||||
path ../ravi/MEMORY.md : Error: Path traversal attempt detected: '../ravi/MEMORY.md' escapes the memories directory
|
||||
absolute path /etc/hostname : Error: Absolute paths are not allowed: '/etc/hostname'
|
||||
symlink pointing outside : File: link.md | Lines 1-1 of 1 | | 1 not a memory
|
||||
|
||||
forgetting: MemoryDelete(user_diet.md)
|
||||
Successfully deleted file: user_diet.md
|
||||
MEMORY.md afterwards: - [Diet](user_diet.md) - vegetarian meals
|
||||
|
||||
MemoryView of a 250-line MEMORY.md
|
||||
header: Lines 1-250 of 250
|
||||
line 250 present in the result: true
|
||||
Reference in New Issue
Block a user