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

Function _normalize_response_language

agents/wiki-agent/retrieve/answer.py:39–41  ·  view source on GitHub ↗
(value: Any = None)

Source from the content-addressed store, hash-verified

37
38
39def _normalize_response_language(value: Any = None) -> str:
40 raw = str(value or "").strip().lower().replace("_", "-")
41 return "en" if raw.startswith("en") or raw == "english" else "zh"
42
43
44def _system_prompt(response_language: str) -> str:

Callers 5

_system_promptFunction · 0.70
_extractive_fallbackFunction · 0.70
_empty_answerFunction · 0.70
answer_questionFunction · 0.70
answer_question_streamFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected