MCPcopy Create free account
hub / github.com/EvoMap/evolver / getSearchBudgetMs

Function getSearchBudgetMs

src/adapters/scripts/evolver-task-recall.js:59–64  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

57const MIN_SEARCH_MS = 300; // below this, skip the search (finish {})
58
59function getSearchBudgetMs() {
60 const n = parseInt(process.env.EVOLVER_RECALL_TIMEOUT_MS, 10);
61 // Hard cap at 2800 so even a max-budget search starts and ends before the
62 // 3300ms watchdog under any realistic startup cost.
63 return Number.isFinite(n) && n >= 500 && n <= 2800 ? n : 2000;
64}
65
66function getMode() {
67 const v = String(process.env.EVOLVER_RECALL_MODE || '').toLowerCase().trim();

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected