(result: Optional[Dict[str, Any]], provider: str, model: str)
| 1316 | ) -> Optional[Dict[str, Any]]: |
| 1317 | """Generate a JSON response using the configured parser backend.""" |
| 1318 | def annotate(result: Optional[Dict[str, Any]], provider: str, model: str) -> Optional[Dict[str, Any]]: |
| 1319 | if not isinstance(result, dict): |
| 1320 | return result |
| 1321 | annotated = dict(result) |
| 1322 | annotated.setdefault("generation_provider", provider) |
| 1323 | annotated.setdefault("generation_model", model) |
| 1324 | return annotated |
| 1325 | |
| 1326 | provider = _get_llm_parser_provider() |
| 1327 | if provider == "disabled": |
no outgoing calls
no test coverage detected