Module: ActiveAgent::Queueing

Extended by:
ActiveSupport::Concern
Included in:
Base
Defined in:
lib/active_agent/concerns/queueing.rb

Overview

Configures asynchronous generation via Active Job.

Provides class attributes to customize which job class processes queued generations and which queue they run on. Enables agents to defer prompt generation and embedding operations for background processing.

Examples:

Custom job class

class MyAgent < ActiveAgent::Base
  self.generation_job = CustomGenerationJob
end

Custom queue name

class PriorityAgent < ActiveAgent::Base
  self.generate_later_queue_name = :high_priority
end

See Also: