MCPcopy Create free account
hub / github.com/garrytan/gstack / getClassifierStatus

Function getClassifierStatus

browse/src/security-classifier.ts:119–134  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

117}
118
119export function getClassifierStatus(): ClassifierStatus {
120 const testsavant =
121 testsavantState === 'loaded' ? 'ok' :
122 testsavantState === 'failed' ? 'degraded' :
123 'off';
124 const transcript = haikuAvailableCache === null ? 'off' :
125 haikuAvailableCache ? 'ok' : 'degraded';
126 const status: ClassifierStatus = { testsavant, transcript };
127 if (isDebertaEnabled()) {
128 status.deberta =
129 debertaState === 'loaded' ? 'ok' :
130 debertaState === 'failed' ? 'degraded' :
131 'off';
132 }
133 return status;
134}
135
136// ─── Model download + staging ────────────────────────────────
137

Callers 2

handleFunction · 0.90

Calls 1

isDebertaEnabledFunction · 0.85

Tested by

no test coverage detected