Exception: GitFit::LLM::Template::UnknownSlotError

Inherits:
Error
  • Object
show all
Defined in:
lib/git_fit/llm/template.rb

Overview

Raised when a template references a slot that is not provided.

Instance Method Summary collapse

Constructor Details

#initialize(name, allowed) ⇒ UnknownSlotError

Returns a new instance of UnknownSlotError.



12
13
14
15
16
17
# File 'lib/git_fit/llm/template.rb', line 12

def initialize(name, allowed)
  super(
    "LLM: template references unknown slot {{#{name}}}\n" \
    "  Fix: use one of the allowed slots: #{allowed.join(', ')}"
  )
end