fixed memmory

This commit is contained in:
2026-06-10 08:32:20 +03:00
parent 5a9d26fbf4
commit c56471050c
6 changed files with 125 additions and 26 deletions
+2 -1
View File
@@ -241,6 +241,7 @@ TOOL_DEFINITIONS: list[dict[str, Any]] = [
"type": "object",
"properties": {
"name": {"type": "string"},
"age": {"type": "string", "description": "Возраст пользователя"},
"timezone": {"type": "string"},
"language": {"type": "string"},
"notes": {"type": "string"},
@@ -360,7 +361,7 @@ async def execute_tool(
elif name == "update_profile":
updates = {
k: arguments[k]
for k in ("name", "timezone", "language", "notes")
for k in ("name", "age", "timezone", "language", "notes")
if k in arguments and arguments[k] is not None
}
result = memory.update_profile(updates)