memU icon indicating copy to clipboard operation
memU copied to clipboard

session_date in memorize_conversation does not work

Open sugopher opened this issue 4 months ago • 1 comments

session_date does not work, seems it is reassigned in memory_agent.py run method.

@router.post("/memorize", response_model=MemorizeResponse)
async def memorize_conversation(
    request: MemorizeRequest,
    background_tasks: BackgroundTasks,
    memory_svc: MemoryService = Depends(get_memory_service),
    task_svc: TaskService = Depends(get_task_service),
)

memory_agent.py

if not character_name:
 return {"success": False, "error": "Character name is required."}

 session_date = datetime.now().strftime("%Y-%m-%d")

PS, sometimes memory stored in MD file use wired date, for example, using qwen-max model:

event.md

[de00a6][mentioned at 2025-08-28] 2023年10月5日,xxx [43325f][mentioned at 2025-08-28] 2023年10月1日,xxx

sugopher avatar Aug 28 '25 13:08 sugopher

yeah, thanks for mention the session_date issue, we will fix it soon.

lihanl avatar Sep 02 '25 10:09 lihanl