Class: Botiasloop::Commands::Status
- Defined in:
- lib/botiasloop/commands/status.rb
Overview
Status command - shows current conversation status
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 |
# File 'lib/botiasloop/commands/status.rb', line 10 def execute(context, _args = nil) conversation = context.conversation config = Config.instance lines = ["**Conversation Status**"] lines << "ID: #{conversation.uuid}" lines << "Label: #{format_label(conversation)}" lines << "Model: #{config.providers["openrouter"]["model"]}" lines << "Max iterations: #{config.max_iterations}" lines << "Messages: #{conversation.history.length}" lines << "Tokens: #{conversation.total_tokens} (#{conversation.input_tokens || 0} in / #{conversation.output_tokens || 0} out)" lines.join("\n") end |