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

Function _extract_question_mentions

deployments/desktop/shared/agents.py:4092–4102  ·  view source on GitHub ↗
(question: str)

Source from the content-addressed store, hash-verified

4090
4091DIRECT_ANSWER_PROMPT = DIRECT_ANSWER_PROMPT_ZH
4092
4093
4094def _direct_answer_prompt(response_language: str) -> str:
4095 return DIRECT_ANSWER_PROMPT_EN if _normalize_response_language(response_language) == "en" else DIRECT_ANSWER_PROMPT_ZH
4096
4097
4098def _direct_answer_max_tokens() -> int:
4099 return _env_int("PAPERFLOW_DIRECT_ANSWER_MAX_TOKENS", 1400, min_value=512, max_value=4096)
4100
4101
4102def _extract_question_mentions(question: str) -> List[Dict[str, str]]:
4103 text = str(question or "")
4104 mentions: List[Dict[str, str]] = []
4105 for match in _MENTION_LINK_RE.finditer(text):

Callers 1

_resolve_wiki_mentionsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected