Class: Botiasloop::Commands::SystemPrompt

Inherits:
Base
  • Object
show all
Defined in:
lib/botiasloop/commands/system_prompt.rb

Overview

System prompt command - displays the current system prompt

Instance Method Summary collapse

Methods inherited from Base

command, description, inherited

Instance Method Details

#execute(context, _args = nil) ⇒ String

Execute the systemprompt command

Parameters:

  • context (Context)

    Execution context

  • _args (String, nil) (defaults to: nil)

    Unused - command takes no arguments

Returns:

  • (String)

    The system prompt



15
16
17
# File 'lib/botiasloop/commands/system_prompt.rb', line 15

def execute(context, _args = nil)
  context.conversation.system_prompt
end