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

Function _answer_max_tokens

agents/wiki-agent/retrieve/answer.py:48–53  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

46
47
48def _answer_max_tokens() -> int:
49 try:
50 value = int(str(os.environ.get("PAPERFLOW_WIKI_ANSWER_MAX_TOKENS", "1800")).strip())
51 except (TypeError, ValueError):
52 value = 1800
53 return max(512, min(4096, value))
54
55
56def _looks_incomplete_answer(text: str) -> bool:

Callers 2

answer_questionFunction · 0.85
answer_question_streamFunction · 0.85

Calls 1

getMethod · 0.80

Tested by

no test coverage detected