Class: Llm::Provider
- Inherits:
-
Object
show all
- Defined in:
- lib/llm/provider.rb
Overview
Abstract base class for LLM providers
Instance Method Summary
collapse
Instance Method Details
#available? ⇒ Boolean
10
11
12
|
# File 'lib/llm/provider.rb', line 10
def available?
raise NotImplementedError, "#{self.class}#available? must be implemented"
end
|
#complete(prompt, system_prompt: nil) ⇒ Object
6
7
8
|
# File 'lib/llm/provider.rb', line 6
def complete(prompt, system_prompt: nil)
raise NotImplementedError, "#{self.class}#complete must be implemented"
end
|
#name ⇒ Object
14
15
16
|
# File 'lib/llm/provider.rb', line 14
def name
self.class.name.split('::').last.sub('Provider', '').downcase
end
|