Class: CodeToQuery::Providers::Base
- Inherits:
-
Object
- Object
- CodeToQuery::Providers::Base
- Defined in:
- lib/code_to_query/providers/base.rb
Instance Attribute Summary collapse
-
#metrics ⇒ Object
readonly
Returns the value of attribute metrics.
Instance Method Summary collapse
- #extract_intent(prompt:, schema:, allow_tables:) ⇒ Object
-
#initialize(config) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(config) ⇒ Base
Returns a new instance of Base.
8 9 10 11 |
# File 'lib/code_to_query/providers/base.rb', line 8 def initialize(config) @config = config @metrics = {} end |
Instance Attribute Details
#metrics ⇒ Object (readonly)
Returns the value of attribute metrics.
6 7 8 |
# File 'lib/code_to_query/providers/base.rb', line 6 def metrics @metrics end |
Instance Method Details
#extract_intent(prompt:, schema:, allow_tables:) ⇒ Object
13 14 15 |
# File 'lib/code_to_query/providers/base.rb', line 13 def extract_intent(prompt:, schema:, allow_tables:) raise NotImplementedError, 'Subclasses must implement #extract_intent' end |