qwen_agent/routes
autobee-sparticle a161e43421
feat: add POST /api/v1/memory endpoint for realtime conversation memory (#17)
* feat: add POST /api/v1/memory endpoint for realtime conversation memory

Add memory extraction API that accepts conversation messages and
stores them via Mem0. This enables realtime voice sessions to save
memories through the same pipeline as chat conversations.

Fixes: sparticleinc/mygpt-frontend#2126

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix: address code review findings for memory API

- Use Literal["user","assistant"] for role field validation
- Add Field constraints (min_length, max_length=200)
- Track and report pairs_failed in response
- Hide internal exception details from HTTP response
- Remove unused authorization parameter (internal API)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Co-authored-by: zhuchao <zhuchaowe@163.com>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-17 11:14:02 +09:00
..
__init__.py update fastapi 2025-11-25 22:34:44 +08:00
chat.py 增加取消推理 2026-03-16 22:22:39 +08:00
database.py execute sql result 2026-01-23 18:33:29 +08:00
file_manager.py 文件名上传修复 2026-03-02 14:27:32 +08:00
files.py feat(skills): add skill management API module 2026-01-07 19:45:04 +08:00
memory.py feat: add POST /api/v1/memory endpoint for realtime conversation memory (#17) 2026-03-17 11:14:02 +09:00
projects.py 日志优化 2025-11-27 21:50:03 +08:00
skill_manager.py 在 routes/skill_manager.py:669-672,解压完成后立即检测并删除 __MACOSX 目录,这样后续的 skill 2026-03-13 10:08:38 +08:00
system.py 删除agent manager 2025-12-17 20:27:06 +08:00
webdav.py 修复方案:在 routes/webdav.py 中添加了一个 WSGI 中间件包装函数,在请求到达 WsgiDAV 前: 2026-03-09 18:51:08 +08:00