Add User Model Service and Temporal Recall for MeMind V0.1.
Introduce UMS ingest/snapshot pipeline, Context Planner with multi-source recall, runtime context injection, canonical user mapping, and session snapshot loading on auth/me. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -0,0 +1,105 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"$id": "https://memind.local/schemas/timeline-item.v1.schema.json",
|
||||
"title": "TimelineItem",
|
||||
"description": "Temporal Recall 统一时间线条目 — 跨 Source 归一化模型",
|
||||
"type": "object",
|
||||
"required": [
|
||||
"timeline_item_id",
|
||||
"user_id",
|
||||
"source",
|
||||
"type",
|
||||
"observed_time",
|
||||
"title",
|
||||
"content",
|
||||
"importance",
|
||||
"confidence",
|
||||
"source_ref",
|
||||
"status"
|
||||
],
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"timeline_item_id": {
|
||||
"type": "string",
|
||||
"format": "uuid",
|
||||
"description": "归一化后的 timeline 条目 ID"
|
||||
},
|
||||
"user_id": {
|
||||
"type": "string",
|
||||
"format": "uuid"
|
||||
},
|
||||
"source": {
|
||||
"type": "string",
|
||||
"enum": ["calendar", "chat", "meinput", "memory_v2", "email", "browser", "tasks", "git", "location", "notes"]
|
||||
},
|
||||
"type": {
|
||||
"type": "string",
|
||||
"enum": ["event", "todo", "decision", "mention", "commitment"]
|
||||
},
|
||||
"event_time": {
|
||||
"type": ["string", "null"],
|
||||
"format": "date-time",
|
||||
"description": "事件计划/实际发生时间;未知时为 null"
|
||||
},
|
||||
"observed_time": {
|
||||
"type": "string",
|
||||
"format": "date-time",
|
||||
"description": "首次被记录/输入/提到的时间"
|
||||
},
|
||||
"title": {
|
||||
"type": "string",
|
||||
"maxLength": 512
|
||||
},
|
||||
"content": {
|
||||
"type": "string",
|
||||
"maxLength": 8192
|
||||
},
|
||||
"importance": {
|
||||
"type": "number",
|
||||
"minimum": 0,
|
||||
"maximum": 1
|
||||
},
|
||||
"confidence": {
|
||||
"type": "number",
|
||||
"minimum": 0,
|
||||
"maximum": 1,
|
||||
"description": "抽取/归一化置信度"
|
||||
},
|
||||
"recall_score": {
|
||||
"type": "number",
|
||||
"minimum": 0,
|
||||
"maximum": 1,
|
||||
"description": "最终召回排序分"
|
||||
},
|
||||
"source_ref": {
|
||||
"type": "string",
|
||||
"maxLength": 512,
|
||||
"description": "源系统引用,如 meinput:segment:<id>"
|
||||
},
|
||||
"participants": {
|
||||
"type": "array",
|
||||
"items": { "type": "string", "maxLength": 128 },
|
||||
"default": []
|
||||
},
|
||||
"status": {
|
||||
"type": "string",
|
||||
"enum": ["planned", "completed", "mentioned", "unknown"]
|
||||
},
|
||||
"merged_from": {
|
||||
"type": "array",
|
||||
"items": { "type": "string", "maxLength": 512 },
|
||||
"description": "Dedupe 合并前的 source_ref 列表"
|
||||
},
|
||||
"app_bundle_id": {
|
||||
"type": ["string", "null"],
|
||||
"description": "MeInput 来源 App"
|
||||
},
|
||||
"app_name": {
|
||||
"type": ["string", "null"]
|
||||
},
|
||||
"metadata": {
|
||||
"type": "object",
|
||||
"additionalProperties": true
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user