(_query_params: Dict[str, Any], body: Dict[str, Any])
| 279 | ) |
| 280 | |
| 281 | |
| 282 | def _api_daily_start(_query_params: Dict[str, Any], body: Dict[str, Any]) -> Dict[str, Any]: |
| 283 | user_id = str(body.get("user_id") or "").strip() |
| 284 | if not user_id: |
| 285 | raise ValueError("user_id is required") |
| 286 | return agents.start_daily_push_task( |
| 287 | user_id=user_id, |
| 288 | days=_daily_days_from_body(body), |
| 289 | limit_per_source=_optional_positive_int(body.get("limit_per_source")), |
| 290 | arxiv_categories=body.get("arxiv_categories"), |
| 291 | conferences=body.get("conferences"), |
| 292 | journals=body.get("journals"), |
| 293 | target_date=_target_date_from_body(body), |
| 294 | force_refresh=bool(body.get("force_refresh")), |
| 295 | ) |
| 296 | |
| 297 |
nothing calls this directly
no test coverage detected