Class: OllamaAgent::Synthesis::IntegrationExtractor

Inherits:
Object
  • Object
show all
Includes:
Concerns::ArModel, Concerns::MethodReadout, Concerns::Publishers, Concerns::Routes, Concerns::Workers
Defined in:
lib/ollama_agent/synthesis/integration_extractor.rb,
lib/ollama_agent/synthesis/integration_extractor/concerns.rb

Overview

Derives integration surface from Topology::StagedGraph committed origins only (never staged).

Defined Under Namespace

Modules: Concerns

Constant Summary collapse

WORKER_MIXINS =
%w[Sidekiq::Worker Sidekiq::Job].freeze
AR_ANCESTORS =
%w[ApplicationRecord ActiveRecord::Base].freeze
REST_ACTIONS =
%w[index show create update destroy].freeze
PUBLISHER_METHODS =
%w[publish emit_event].freeze

Instance Method Summary collapse

Constructor Details

#initialize(staged_graph:) ⇒ IntegrationExtractor

Returns a new instance of IntegrationExtractor.



26
27
28
# File 'lib/ollama_agent/synthesis/integration_extractor.rb', line 26

def initialize(staged_graph:)
  @staged_graph = staged_graph
end

Instance Method Details

#extractObject



30
31
32
33
34
# File 'lib/ollama_agent/synthesis/integration_extractor.rb', line 30

def extract
  collectors = CommittedCollectors.new
  each_committed { |bundle| absorb_bundle(bundle, collectors) }
  finalize_scan(collectors)
end