fix: wrap recall/list responses in {memories: []} and update README
- API recall and list endpoints now return {"memories": [...]} matching
the format expected by the MCP server
- Rewrote README with comprehensive setup instructions for new agents,
accurate API reference, migration docs, and multi-user setup guide
This commit is contained in:
parent
8a7239fb77
commit
4c75e9d801
3 changed files with 181 additions and 107 deletions
|
|
@ -144,7 +144,7 @@ async def recall_memories(body: MemoryRecall, user: AuthUser = Depends(get_curre
|
|||
}
|
||||
)
|
||||
|
||||
return results
|
||||
return {"memories": results}
|
||||
|
||||
|
||||
@app.get("/api/memories")
|
||||
|
|
@ -191,7 +191,7 @@ async def list_memories(
|
|||
}
|
||||
)
|
||||
|
||||
return results
|
||||
return {"memories": results}
|
||||
|
||||
|
||||
@app.delete("/api/memories/{memory_id}")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue