(_query_params: Dict[str, Any], body: Dict[str, Any])
| 309 | ) |
| 310 | |
| 311 | |
| 312 | def _api_read(_query_params: Dict[str, Any], body: Dict[str, Any]) -> Dict[str, Any]: |
| 313 | user_id = str(body.get("user_id") or "").strip() |
| 314 | push_id = str(body.get("push_id") or "").strip() |
| 315 | if not user_id or not push_id: |
| 316 | raise ValueError("user_id and push_id are required") |
| 317 | return agents.create_reading_reports( |
| 318 | user_id=user_id, |
| 319 | push_id=push_id, |
| 320 | paper_numbers=body.get("paper_numbers") or body.get("selected_numbers") or [], |
| 321 | write_feishu=body.get("write_feishu"), |
| 322 | response_language=_response_language(body), |
| 323 | ) |
| 324 | |
| 325 |
nothing calls this directly
no test coverage detected