增加智控台管理【本地记忆】功能

This commit is contained in:
ljwwd2
2025-05-14 03:27:32 +08:00
parent 6e210faacf
commit 2f5f20a257
14 changed files with 98 additions and 7 deletions
@@ -144,6 +144,21 @@ def get_agent_models(
},
)
def save_mem_local_short(
mac_address: str, short_momery: str
) -> Optional[Dict]:
try:
return ManageApiClient._instance._execute_request(
"PUT",
f"/agent/device/" + mac_address,
json={
"summaryMemory": short_momery,
},
)
except Exception as e:
print(f"存储短期记忆到服务器失败: {e}")
return None
def report(
mac_address: str, session_id: str, chat_type: int, content: str, audio