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

Function _compact_wiki_metadata

deployments/desktop/shared/agents.py:3227–3246  ·  view source on GitHub ↗
(value: Any, *, depth: int = 0)

Source from the content-addressed store, hash-verified

3225 }
3226 summary = str(report.get("snippet") or "").strip()
3227 return {
3228 "paper": paper,
3229 "title": report.get("title"),
3230 "url": metadata.get("doc_url") or report.get("doc_url"),
3231 "doc_token": metadata.get("doc_token") or report.get("doc_token"),
3232 "report_path": report.get("report_path"),
3233 "pdf_path": metadata.get("pdf_path"),
3234 "report_payload": {
3235 "paper_summary": summary,
3236 "one_sentence_summary": summary,
3237 "recommendation_label": metadata.get("recommendation_label"),
3238 "generation_provider": metadata.get("generation_provider"),
3239 "generation_model": metadata.get("generation_model"),
3240 "report_style": metadata.get("report_style"),
3241 },
3242 }
3243
3244
3245def refresh_wiki(user_id: str) -> Dict[str, Any]:
3246 normalized_user = str(user_id or "").strip()
3247 if not normalized_user:
3248 raise ValueError("user_id is required")
3249

Callers 3

wiki_searchFunction · 0.85
_wiki_node_payloadFunction · 0.85
wiki_graphFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected