Module: RcrewAI::Rails::AgentBuilder

Extended by:
ActiveSupport::Concern
Defined in:
lib/rcrewai/rails/agent_builder.rb

Instance Method Summary collapse

Instance Method Details

#initialize(attributes = {}) ⇒ Object



62
63
64
65
66
# File 'lib/rcrewai/rails/agent_builder.rb', line 62

def initialize(attributes = {})
  @attributes = attributes
  @agent = build_agent
  configure_agent
end

#to_agentObject



68
69
70
# File 'lib/rcrewai/rails/agent_builder.rb', line 68

def to_agent
  @agent
end

#to_rcrew_agentObject



72
73
74
# File 'lib/rcrewai/rails/agent_builder.rb', line 72

def to_rcrew_agent
  @agent
end