feat: add set_user_profile method to DramaTracker
Replaces the entire notes field with an LLM-generated profile summary, used by the memory extraction system for permanent facts. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -209,6 +209,11 @@ class DramaTracker:
|
||||
if len(lines) > 10:
|
||||
user.notes = "\n".join(lines[-10:])
|
||||
|
||||
def set_user_profile(self, user_id: int, profile: str) -> None:
|
||||
"""Replace the user's profile summary (permanent memory)."""
|
||||
user = self.get_user(user_id)
|
||||
user.notes = profile[:500]
|
||||
|
||||
def clear_user_notes(self, user_id: int) -> None:
|
||||
self.get_user(user_id).notes = ""
|
||||
|
||||
|
||||
Reference in New Issue
Block a user