(_query_params: Dict[str, Any], body: Dict[str, Any])
| 348 | ) |
| 349 | |
| 350 | |
| 351 | def _api_submit(_query_params: Dict[str, Any], body: Dict[str, Any]) -> Dict[str, Any]: |
| 352 | user_id = str(body.get("user_id") or "").strip() |
| 353 | push_id = str(body.get("push_id") or "").strip() |
| 354 | if not user_id or not push_id: |
| 355 | raise ValueError("user_id and push_id are required") |
| 356 | return agents.submit_and_read( |
| 357 | user_id=user_id, |
| 358 | push_id=push_id, |
| 359 | selected_numbers=body.get("selected_numbers") or [], |
| 360 | skipped_numbers=body.get("skipped_numbers") or [], |
| 361 | later_numbers=body.get("later_numbers") or [], |
| 362 | generate_reports=bool(body.get("generate_reports", True)), |
| 363 | write_feishu=body.get("write_feishu"), |
| 364 | response_language=_response_language(body), |
| 365 | ) |
| 366 | |
| 367 |
nothing calls this directly
no test coverage detected