Class: LanguageOperator::CLI::Wizards::AgentWizard

Inherits:
Object
  • Object
show all
Includes:
Helpers::UxHelper
Defined in:
lib/language_operator/cli/wizards/agent_wizard.rb

Overview

Interactive wizard for creating agents

Instance Method Summary collapse

Methods included from Helpers::UxHelper

#box, #highlight_ruby_code, #logo, #pastel, #prompt, #spinner, #table

Constructor Details

#initializeAgentWizard

Returns a new instance of AgentWizard.



13
14
15
# File 'lib/language_operator/cli/wizards/agent_wizard.rb', line 13

def initialize
  # UxHelper provides pastel and prompt methods
end

Instance Method Details

#runObject

Run the wizard and return the generated description



18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# File 'lib/language_operator/cli/wizards/agent_wizard.rb', line 18

def run
  show_welcome

  # Step 1: Get task description
  task = ask_task_description

  # Step 2: Determine schedule
  schedule_info = ask_schedule

  # Step 3: Tool detection and configuration
  tools_config = configure_tools(task)

  # Step 4: Preview and confirm
  description = build_description(task, schedule_info, tools_config)

  show_preview(description, schedule_info, tools_config)

  return nil unless confirm_creation?

  description
end