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

Function _api_create_profile

deployments/desktop/server.py:234–248  ·  view source on GitHub ↗
(_query_params: Dict[str, Any], body: Dict[str, Any])

Source from the content-addressed store, hash-verified

232 return agents.list_must_read(_required_user(query_params))
233
234
235def _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

Callers

nothing calls this directly

Calls 1

getMethod · 0.80

Tested by

no test coverage detected