Skip to content

session_date in memorize_conversation does not work #32

@sugopher

Description

@sugopher

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions