(_query_params: Dict[str, Any], body: Dict[str, Any])
| 365 | ) |
| 366 | |
| 367 | |
| 368 | def _api_wiki_ask(_query_params: Dict[str, Any], body: Dict[str, Any]) -> Dict[str, Any]: |
| 369 | return agents.wiki_ask( |
| 370 | user_id=str(body.get("user_id") or "").strip(), |
| 371 | question=str(body.get("question") or "").strip(), |
| 372 | scope=str(body.get("scope") or "all").strip(), |
| 373 | limit=int(body.get("limit") or 8), |
| 374 | mentions=body.get("mentions") or [], |
| 375 | session_id=str(body.get("session_id") or "").strip(), |
| 376 | persist_chat=True, |
| 377 | response_language=_response_language(body), |
| 378 | ) |
| 379 | |
| 380 |
nothing calls this directly
no test coverage detected