(_query_params: Dict[str, Any], body: Dict[str, Any])
| 264 | raise ValueError("action must be create, switch, or delete") |
| 265 | |
| 266 | |
| 267 | def _api_daily(_query_params: Dict[str, Any], body: Dict[str, Any]) -> Dict[str, Any]: |
| 268 | user_id = str(body.get("user_id") or "").strip() |
| 269 | if not user_id: |
| 270 | raise ValueError("user_id is required") |
| 271 | return agents.run_daily_push( |
| 272 | user_id=user_id, |
| 273 | days=_daily_days_from_body(body), |
| 274 | limit_per_source=_optional_positive_int(body.get("limit_per_source")), |
| 275 | arxiv_categories=body.get("arxiv_categories"), |
| 276 | conferences=body.get("conferences"), |
| 277 | journals=body.get("journals"), |
| 278 | target_date=_target_date_from_body(body), |
| 279 | ) |
| 280 | |
| 281 |
nothing calls this directly
no test coverage detected