Class: LangExtract::Providers::Base
- Inherits:
-
Object
- Object
- LangExtract::Providers::Base
- Defined in:
- lib/langextract/providers/base.rb
Direct Known Subclasses
Instance Method Summary collapse
- #infer(prompt:) ⇒ Object
-
#initialize(config) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(config) ⇒ Base
Returns a new instance of Base.
8 9 10 |
# File 'lib/langextract/providers/base.rb', line 8 def initialize(config) @config = config end |
Instance Method Details
#infer(prompt:) ⇒ Object
12 13 14 |
# File 'lib/langextract/providers/base.rb', line 12 def infer(prompt:) raise NotImplementedError, "#{self.class} must implement #infer" end |