Skip to content

[Bug]: Running demo/extract_memory.py will throw an exception indicating that Field required #223

@JunjianS

Description

@JunjianS

Area

methods/EverCore

What happened?

branch:main
Running demo/extract_memory.py will throw an exception indicating that the parameter verification is invalid.
I found the following bugs in the code.
methods/EverCore/demo/extract_memory.py
function convert_to_v1_message return {
"message_id": msg.get("message_id"),
"sender_id": msg.get("sender"),
"sender_name": msg.get("sender_name"),
"role": role,
"timestamp": timestamp_ms,
"type": msg.get("type", "text"),
"text": {"content": msg.get("content", "")},
}

but there is no parameter key "text" in define of /api/v1/memories, the correct as follow:
{
"message_id": msg.get("message_id"),
"sender_id": msg.get("sender"),
"sender_name": msg.get("sender_name"),
"role": role,
"timestamp": timestamp_ms,
"type": msg.get("type", "text"),
"content": msg.get("content", ""),
}

Steps to reproduce

  1. branch:main
  2. Step 1,Start the API Server: uv run python src/run.py --port 1995
  3. Step 2, Extract Memories: uv run python src/bootstrap.py demo/extract_memory.py
  4. you will see below exception
    Failed: HTTP 422
    {"code":"HTTP_ERROR","message":"Field required: messages -> 0 -> content","request_id":"b5f50f76-bf79-4a91-867a-bee5f321e395","timestamp":"2026-05-21T08:42:38.795336+00:00","path":"/api/v1/memories"}

Environment

No response

Logs or screenshots

Failed: HTTP 422
{"code":"HTTP_ERROR","message":"Field required: messages -> 0 -> content","request_id":"b5f50f76-bf79-4a91-867a-bee5f321e395","timestamp":"2026-05-21T08:42:38.795336+00:00","path":"/api/v1/memories"}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions