Module: Legion::Extensions::Agentic::Integration::Mosaic::Helpers::Constants

Defined in:
lib/legion/extensions/agentic/integration/mosaic/helpers/constants.rb

Constant Summary collapse

MATERIAL_TYPES =

Tessera material types

%i[
  glass stone ceramic metal wood
  shell bone crystal clay enamel
].freeze
PATTERN_CATEGORIES =

Mosaic pattern categories

%i[
  geometric organic abstract narrative
  symbolic decorative functional
].freeze
MAX_TESSERAE =
500
MAX_MOSAICS =
50
GROUT_DECAY =
0.01
MIN_GROUT =
0.05
COMPLETENESS_LABELS =

Completeness labels

[
  [(0.9..),      :masterwork],
  [(0.7...0.9),  :substantial],
  [(0.5...0.7),  :emerging],
  [(0.3...0.5),  :fragmentary],
  [..0.3,        :nascent]
].freeze
COHERENCE_LABELS =

Coherence labels

[
  [(0.8..),      :harmonious],
  [(0.6...0.8),  :coherent],
  [(0.4...0.6),  :developing],
  [(0.2...0.4),  :disjointed],
  [..0.2,        :chaotic]
].freeze

Class Method Summary collapse

Class Method Details

.label_for(table, value) ⇒ Object



45
46
47
48
# File 'lib/legion/extensions/agentic/integration/mosaic/helpers/constants.rb', line 45

def self.label_for(table, value)
  table.each { |range, label| return label if range.cover?(value) }
  table.last.last
end