(value: Any, *, depth: int = 0)
| 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 | |
| 3245 | def 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 |
no outgoing calls
no test coverage detected