Class: RCrewAI::Agent::CLI

Inherits:
Thor
  • Object
show all
Defined in:
lib/rcrewai/agent.rb

Instance Method Summary collapse

Instance Method Details

#listObject



564
565
566
567
568
569
# File 'lib/rcrewai/agent.rb', line 564

def list
  puts 'Available agents:'
  puts '  - researcher (Role: Research Specialist)'
  puts '  - writer (Role: Content Writer)'
  puts '  - analyst (Role: Data Analyst)'
end

#new(name) ⇒ Object



552
553
554
555
556
557
558
559
560
561
# File 'lib/rcrewai/agent.rb', line 552

def new(name)
  Agent.new(
    name: name,
    role: options[:role],
    goal: options[:goal],
    backstory: options[:backstory],
    verbose: options[:verbose]
  )
  puts "Agent '#{name}' created with role: #{options[:role]}"
end