fix(fam-edge): validate_schema 透传 person_appearances - events 清洗白名单原只留 timestamp/description/people/is_attention,丢弃了特征字段导致特征链路断
This commit is contained in:
@@ -89,6 +89,8 @@ def validate_schema(data: dict) -> dict:
|
||||
"timestamp": str(ev["timestamp"]),
|
||||
"description": str(ev["description"]),
|
||||
"people": [str(p) for p in people if p],
|
||||
# 人物结构化特征(uid/features/action)——保留透传,供人物合并/特征卡
|
||||
"person_appearances": ev.get("person_appearances"),
|
||||
"is_attention_event": bool(ev.get("is_attention_event", False)),
|
||||
})
|
||||
data["events"] = cleaned
|
||||
|
||||
Reference in New Issue
Block a user