1. 记忆总结
接入记忆服务
  • 记忆
    • 召回记忆
      POST
    • 添加记忆
      POST
  • 日程
    • 查询日程(已下线)
      POST
  • 检索
    • 搜索文件(媒体)
      POST
    • 搜索话题事件
      POST
  • 记忆网络页面
    • 记忆网络页面(网页,非 JSON API)
      GET
  • 记忆总结
    • 生成记忆总结
      POST
    • 查询记忆总结列表
      POST
    • 查询记忆总结详情
      GET
    • 删除记忆总结
      DELETE
    • 人物选择器(按人物总结)
      GET
  • 记忆修正
    • 提交修正命令(租户面)
      POST
    • 查询修正命令状态(租户面)
      GET
    • 重试失败的修正命令(租户面)
      POST
  • 数据模型
    • 默认目录
      • RecallMediaInput
      • RecallData
      • MediaItem
      • ResponseWrapper
      • MessageInput
      • MediaInput
      • SaveData
      • MessageSaved
      • ScheduleData
      • DailySchedule
      • ScheduleEvent
      • MediaSearchData
      • TopicEventSearchData
      • TopicEvent
      • MemorySummaryDetail
      • SummaryEditHistoryEntry
      • SummaryKeyActor
      • SummaryTimelineEntry
      • SummaryListData
      • MemorySummaryCard
      • DeleteSummaryData
      • PersonOption
    • CorrectionSubmitRequest
    • CorrectionRetryRequest
    • CorrectionOperation
    • CorrectionView
    • CorrectionResponse
  1. 记忆总结

生成记忆总结

POST
/summary
同步生成一份记忆总结并返回完整详情。按 summary_type 分三种:
time(默认):按时间段总结,配合 period_type(daily/weekly/monthly/custom)与 start_time/end_time(time 模式必填,start_time 必须早于 end_time,跨度 ≤ 366 天)。
person:按人物总结,target_ids 传 1~10 个 person_entity_id(来自 /person/options)。
event:按事件总结,target_ids 传 1~10 个 topic_event_id(来自 /topic-event/search)。
本接口为同步 LLM 调用:耗时通常数秒、偶有重试,建议客户端超时设为 ≥ 60 秒;调用按积分计费。即使生成失败也会返回带 status=failed 与 error_message 的记录(仍有 summary_id)。
想要「今天」的总结:用 summary_type=time + period_type=daily,传入今天的全天边界,如 start_time=2026-06-18 00:00:00、end_time=2026-06-18 23:59:59(按你自己的时区界定当天)。
当前回溯窗口:手动生成 daily 总结时,服务端只补齐目标日期及之前 6 天内缺失的 session summary,不再追溯更早历史;该限制用于控制同步请求耗时。建议客户端超时设置为 ≥ 90 秒。

请求参数

Authorization
Header 参数

Body 参数application/json

示例
{
    "user_id": "u001",
    "summary_type": "time",
    "period_type": "daily",
    "start_time": "2026-06-18 00:00:00",
    "end_time": "2026-06-18 23:59:59",
    "target_ids": [
        "string"
    ]
}

请求示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location 'https://ms.seemem.com/api/v2/memory/summary' \
--header 'Authorization: Bearer <tenant token>' \
--header 'Content-Type: application/json' \
--data '{
    "user_id": "u001",
    "summary_type": "time",
    "period_type": "daily",
    "start_time": "2026-06-18 00:00:00",
    "end_time": "2026-06-18 23:59:59",
    "target_ids": [
        "string"
    ]
}'

返回响应

🟢200
application/json
统一包裹响应
Bodyapplication/json

示例
{
    "code": 0,
    "msg": "成功",
    "data": {
        "summary_id": "01KW0XQE7C9D2H3J4K5M6N7P8Q",
        "summary_type": "time",
        "period_type": "daily",
        "start_time": "2026-06-18 00:00:00",
        "end_time": "2026-06-18 23:59:59",
        "status": "completed",
        "title": "今日记忆总结",
        "brief": "今天主要围绕项目中期评审与团队沟通展开。",
        "segment_count": 3,
        "target_ids": [],
        "target_labels": [],
        "created_at": "2026-06-18 21:05:11",
        "updated_at": "2026-06-18 21:05:11",
        "keywords": [
            "项目评审",
            "架构"
        ],
        "active_days": 1,
        "main_themes": [
            "工作"
        ],
        "reflection": "在架构决策上较果断,对评审反馈吸收良好。",
        "timeline": [
            {
                "anchor": "上午",
                "content": "参加项目中期评审会,架构方案基本通过。",
                "session_count": 1,
                "session_ids": [
                    "01KW0X...SESS1"
                ]
            }
        ],
        "source_event_ids": [],
        "source_session_ids": [
            "01KW0X...SESS1"
        ],
        "personality": null,
        "relationship_phase": null,
        "key_actors": [],
        "impact": null,
        "error_message": null,
        "is_manually_edited": false,
        "edit_history": [],
        "original_detail": null
    }
}
🟠400BadRequest
🟠415UnsupportedMediaType
修改于 2026-08-23 20:32:14
上一页
记忆网络页面(网页,非 JSON API)
下一页
查询记忆总结列表
Built with