MCPcopy Create free account
hub / github.com/Noumena-Network/code / getClassifierThinkingConfig

Function getClassifierThinkingConfig

src/utils/permissions/yoloClassifier.ts:685–695  ·  view source on GitHub ↗

* Thinking config for classifier calls. The classifier wants short text-only * responses — API thinking blocks are ignored by extractTextContent() and waste tokens. * * For most models: send { type: 'disabled' } via sideQuery's `thinking: false`. * * Models with alwaysOnThinking (declared in nc

(
  model: string,
)

Source from the content-addressed store, hash-verified

683 * property-name strings don't survive minification into external builds.
684 */
685function getClassifierThinkingConfig(
686 model: string,
687): [false | undefined, number] {
688 if (
689 isInternalBuild() &&
690 resolveAntModel(model)?.alwaysOnThinking
691 ) {
692 return [undefined, 2048]
693 }
694 return [false, 0]
695}
696
697/**
698 * XML classifier for auto mode security decisions. Supports three modes:

Callers 2

classifyYoloActionXmlFunction · 0.85
classifyYoloActionFunction · 0.85

Calls 2

isInternalBuildFunction · 0.85
resolveAntModelFunction · 0.85

Tested by

no test coverage detected