Class: Rixie::CLI::Commands::Context

Inherits:
Base
  • Object
show all
Defined in:
lib/rixie/cli/commands/context.rb

Instance Method Summary collapse

Methods inherited from Base

#complete, #initialize

Constructor Details

This class inherits a constructor from Rixie::CLI::Commands::Base

Instance Method Details

#call(_arg, cli:) ⇒ Object



11
12
13
14
# File 'lib/rixie/cli/commands/context.rb', line 11

def call(_arg, cli:)
  renderer.info("Context size", "~#{cli.current_context_size} tokens")
  renderer.info("Entries", cli.current_context_length.to_s)
end

#descriptionObject



9
# File 'lib/rixie/cli/commands/context.rb', line 9

def description = "Show current context size"

#nameObject



7
# File 'lib/rixie/cli/commands/context.rb', line 7

def name = "context"