(_query_params: Dict[str, Any], body: Dict[str, Any])
| 335 | ) |
| 336 | |
| 337 | |
| 338 | def _api_read_pdf(_query_params: Dict[str, Any], body: Dict[str, Any]) -> Dict[str, Any]: |
| 339 | user_id = str(body.get("user_id") or "").strip() |
| 340 | if not user_id: |
| 341 | raise ValueError("user_id is required") |
| 342 | return agents.read_local_pdf( |
| 343 | user_id=user_id, |
| 344 | pdf_path=str(body.get("pdf_path") or "").strip(), |
| 345 | title=str(body.get("title") or "").strip(), |
| 346 | write_feishu=body.get("write_feishu"), |
| 347 | response_language=_response_language(body), |
| 348 | ) |
| 349 | |
| 350 |
nothing calls this directly
no test coverage detected