Do not save a secret
The password stays out
A password is not a fact to keep. This page saves the name and does not save the password.
The name prints. The password line says Not saved.
Example
from praisonai import FileMemory
memory = FileMemory(user_id="learner")
memory.add_long_term("The learner name is Nila.")
print(memory.search("name")[0]["item"]["content"])
print(memory.search("password") or "Not saved.")Example explained
- password — Never passed to add_long_term, so search finds nothing.
Reference: documentation