| 232 | return agents.list_must_read(_required_user(query_params)) |
| 233 | |
| 234 | |
| 235 | def _api_create_profile(_query_params: Dict[str, Any], body: Dict[str, Any]) -> Dict[str, Any]: |
| 236 | return agents.create_or_update_profile( |
| 237 | user_id=str(body.get("user_id") or "").strip(), |
| 238 | natural_language=str(body.get("natural_language") or ""), |
| 239 | scholar_url=str(body.get("scholar_url") or ""), |
| 240 | homepage_url=str(body.get("homepage_url") or ""), |
| 241 | pdf_paths=list(body.get("pdf_paths") or []), |
| 242 | affiliation=str(body.get("affiliation") or ""), |
| 243 | core_directions_text=str(body.get("core_directions_text") or ""), |
| 244 | topic_weights_text=str(body.get("topic_weights_text") or ""), |
| 245 | must_read_keywords=list(body.get("must_read_keywords") or []), |
| 246 | must_read_authors=list(body.get("must_read_authors") or []), |
| 247 | must_read_institutions=list(body.get("must_read_institutions") or []), |
| 248 | reset_existing=bool(body.get("reset_existing")), |
| 249 | ) |
| 250 | |
| 251 | |