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

Function _normalize_response_language

agents/reading-agent/main.py:110–112  ·  view source on GitHub ↗
(value: Any = None)

Source from the content-addressed store, hash-verified

108
109
110def _normalize_response_language(value: Any = None) -> str:
111 raw = str(value or "").strip().lower().replace("_", "-")
112 return "en" if raw.startswith("en") or raw == "english" else "zh"
113
114
115MONTH_LABELS = {

Calls

no outgoing calls

Tested by

no test coverage detected