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

Function resolve_baseline_pdf_path

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

Return the configured baseline PDF for the given user.

(user_id: str)

Source from the content-addressed store, hash-verified

369 _save_roles_meta(roles_meta)
370 return True
371
372
373def resolve_baseline_pdf_path(user_id: str) -> Optional[str]:
374 """Return the configured baseline PDF for the given user."""
375 candidate_paths: List[Path] = []
376
377 configured = os.environ.get(BASELINE_PDF_ENV_VAR)
378 if configured:
379 candidate_paths.append(Path(configured).expanduser())
380
381 if user_id == "user_rolea":
382 candidate_paths.append(Path.home() / "Desktop" / "Research Infra.pdf")
383
384 for candidate in candidate_paths:
385 if candidate.exists():
386 return str(candidate)
387
388 return None
389

Callers 2

main.pyFile · 0.85

Calls 1

getMethod · 0.80

Tested by

no test coverage detected