Class: LLM::Shell::Command::SystemPrompt

Inherits:
Object
  • Object
show all
Includes:
Utils
Defined in:
lib/llm/shell/commands/system_prompt.rb

Instance Method Summary collapse

Constructor Details

#initialize(context) ⇒ LLM::Shell::Command::SystemPrompt

Parameters:

  • context (LLM::Shell::Context)

    The context of the command



12
13
14
# File 'lib/llm/shell/commands/system_prompt.rb', line 12

def initialize(context)
  @context = context
end

Instance Method Details

#callvoid

This method returns an undefined value.

Emits the system prompt to standard output



19
# File 'lib/llm/shell/commands/system_prompt.rb', line 19

def call = puts render(bot.messages.to_a[0])