Module: Agentic::FactoryMethods::ClassMethods

Defined in:
lib/agentic/factory_methods.rb

Instance Method Summary collapse

Instance Method Details

#build {|agent| ... } ⇒ Object

Yields:

  • (agent)


12
13
14
15
16
17
18
# File 'lib/agentic/factory_methods.rb', line 12

def build
  agent = new
  yield(agent) if block_given?
  configure(agent)
  run_assembly_instructions(agent)
  agent
end