MCPcopy Create free account
hub / github.com/OpenRaiser/PaperFlow / build_empty_profile

Function build_empty_profile

agents/coldstart-agent/main.py:125–148  ·  view source on GitHub ↗

Create an empty profile payload with the full schema.

(user_id: str)

Source from the content-addressed store, hash-verified

123COLD_START_MUST_READ_NOTE = "说明:普通“冷启动”会保留这份必读清单;只有“重新冷启动”才会重置。"
124CLEAR_READING_LIST_HINT = ' "清空精读列表"'
125
126
127def build_empty_profile(user_id: str) -> Dict[str, Any]:
128 """Create an empty profile payload with the full schema."""
129 now = datetime.now().isoformat()
130 return {
131 "user_id": user_id,
132 "version": "0.1",
133 "created_at": now,
134 "updated_at": now,
135 "core_directions": {},
136 "methodology_preferences": {},
137 "must_read": {
138 "authors": [],
139 "institutions": [],
140 "keywords": [],
141 },
142 "topic_weights": {},
143 "author_heat": {},
144 "institution_heat": {},
145 "interest_vector": [],
146 "taste_profile": {},
147 "reading_history": [],
148 "behavior_logs": [],
149 "drift_state": build_default_drift_state(now),
150 }
151

Callers 3

ensure_profile_shapeFunction · 0.70
cold_startFunction · 0.70

Calls 2

nowMethod · 0.80

Tested by

no test coverage detected