Class: Botiasloop::Commands::Verbose
- Defined in:
- lib/botiasloop/commands/verbose.rb
Overview
Verbose command - controls verbose mode for tool call output
Instance Method Summary collapse
Methods inherited from Base
command, description, inherited
Instance Method Details
#execute(context, args = nil) ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/botiasloop/commands/verbose.rb', line 10 def execute(context, args = nil) conversation = context.conversation case args&.downcase&.strip when "on" conversation.update(verbose: true) "Verbose mode enabled. Tool calls will be shown." when "off" conversation.update(verbose: false) "Verbose mode disabled. Tool calls will be hidden." when nil, "" status = conversation.verbose ? "on" : "off" "Verbose mode is currently #{status}. Usage: /verbose [on|off]" else "Unknown argument: #{args}. Usage: /verbose [on|off]" end end |