Module: Legion::Extensions::Agentic::Attention::Lighthouse::Helpers::Constants
- Defined in:
- lib/legion/extensions/agentic/attention/lighthouse/helpers/constants.rb
Constant Summary collapse
- BEACON_TYPES =
%i[truth clarity warning guidance hope].freeze
- FOG_TYPES =
%i[confusion uncertainty ambiguity doubt overwhelm].freeze
- MAX_BEACONS =
100- MAX_FOG_BANKS =
50- LUMINOSITY_RATE =
0.1- FOG_DENSITY_RATE =
0.05- VISIBILITY_LABELS =
Visibility labels (fog density: high density = low visibility)
[ [(0.0...0.1), :crystal_clear], [(0.1...0.3), :clear], [(0.3...0.5), :hazy], [(0.5...0.7), :foggy], [(0.7...0.9), :dense_fog], [(0.9..), :blind] ].freeze
- LUMINOSITY_LABELS =
Luminosity labels (beacon luminosity: high = bright)
[ [(0.9..), :blazing], [(0.7...0.9), :bright], [(0.5...0.7), :steady], [(0.3...0.5), :dim], [(0.1...0.3), :faint], [..0.1, :dark] ].freeze
Class Method Summary collapse
Class Method Details
.label_for(table, value) ⇒ Object
39 40 41 42 |
# File 'lib/legion/extensions/agentic/attention/lighthouse/helpers/constants.rb', line 39 def self.label_for(table, value) table.each { |range, label| return label if range.cover?(value) } table.last.last end |