Module: OllamaAgent::Runtime::KernelFeature

Defined in:
lib/ollama_agent/runtime/kernel_feature.rb

Overview

Feature toggle for routing tool execution through the kernel bridge.

Class Method Summary collapse

Class Method Details

.enabled?Boolean

Returns:

  • (Boolean)


9
10
11
12
# File 'lib/ollama_agent/runtime/kernel_feature.rb', line 9

def enabled?
  v = ENV.fetch("OLLAMA_AGENT_KERNEL", "").strip.downcase
  %w[true shadow].include?(v)
end

.shadow?Boolean

Returns:

  • (Boolean)


14
15
16
# File 'lib/ollama_agent/runtime/kernel_feature.rb', line 14

def shadow?
  ENV.fetch("OLLAMA_AGENT_KERNEL", "").strip.casecmp("shadow").zero?
end