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

Function translate_direction

agents/profile-report-agent/main.py:56–61  ·  view source on GitHub ↗

翻译研究方向为中文

(direction: str)

Source from the content-addressed store, hash-verified

54
55def translate_direction(direction: str) -> str:
56 """翻译研究方向为中文"""
57 formatter = getattr(direction_lexicon, "format_direction_label", None)
58 if callable(formatter):
59 return str(formatter(direction, prefer_chinese=True) or direction)
60 return direction
61
62
63OPENALEX_TIMEOUT = float(os.environ.get("PAPERFLOW_WEEKLY_OPENALEX_TIMEOUT", "12"))
64OPENALEX_HEADERS = {"User-Agent": "PaperFlow/0.1 WeeklyReport"}

Callers 3

_generate_suggestionsFunction · 0.70
format_report_cardFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected