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

Function _is_trend_question

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

Source from the content-addressed store, hash-verified

4212 normalized_question = str(question or "").strip().lower()
4213 if resolved_mentions or "@" in normalized_question:
4214 return "wiki", "explicit_mention"
4215 if normalized_scope in {"recent", "profile"}:
4216 return "wiki", f"scope_{normalized_scope}"
4217 if any(term in normalized_question for term in _LOCAL_WIKI_TERMS):
4218 return "wiki", "local_research_context"
4219 if normalized_question.startswith(_DIRECT_STARTERS):
4220 return "direct", "general_question"
4221 return "direct", "no_local_context_signal"

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected