Class: LLM::Console::Command::Exit

Inherits:
LLM::Console::Command show all
Defined in:
lib/llm/console/commands/exit.rb

Overview

The 'exit' command exits the interactive console by throwing. The LLM::Console class covers the loop with a catch that gracefully recovers and exits the loop.

Direct Known Subclasses

Quit

Instance Attribute Summary

Attributes inherited from LLM::Console::Command

#agent, #repl

Instance Method Summary collapse

Methods inherited from LLM::Console::Command

complete, #complete, description, find_by, help, inherited, #initialize, name, parameter, #parameters, parameters, registry, required, #write, #write_message

Constructor Details

This class inherits a constructor from LLM::Console::Command

Instance Method Details

#call

This method returns an undefined value.



15
16
17
# File 'lib/llm/console/commands/exit.rb', line 15

def call
  throw(:exit)
end