MCPcopy Create free account
hub / github.com/OpenRaiser/PaperFlow / annotate

Function annotate

agents/master-coordinator/scripts/llm_parser.py:1318–1324  ·  view source on GitHub ↗
(result: Optional[Dict[str, Any]], provider: str, model: str)

Source from the content-addressed store, hash-verified

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":

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected