Class: RCrewAI::Task::CLI

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

Instance Method Summary collapse

Instance Method Details

#listObject



444
445
446
447
448
449
# File 'lib/rcrewai/task.rb', line 444

def list
  puts 'Available tasks:'
  puts '  - research_topic (Agent: researcher)'
  puts '  - write_article (Agent: writer)'
  puts '  - analyze_data (Agent: analyst)'
end

#new(name) ⇒ Object



428
429
430
431
432
433
434
435
436
437
438
439
440
441
# File 'lib/rcrewai/task.rb', line 428

def new(name)
  Task.new(
    name: name,
    description: options[:description],
    agent: options[:agent],
    expected_output: options[:expected_output],
    async: options[:async]
  )
  puts "Task '#{name}' created"
  puts "Description: #{options[:description]}"
  puts "Expected Output: #{options[:expected_output] || 'Not specified'}"
  puts "Assigned to: #{options[:agent] || 'No agent assigned'}"
  puts "Async: #{options[:async]}"
end