Class: RubyLlmMesh::Providers::Base
- Inherits:
-
Object
- Object
- RubyLlmMesh::Providers::Base
- Defined in:
- lib/ruby_llm_mesh/providers/base.rb
Instance Attribute Summary collapse
-
#config ⇒ Object
readonly
Returns the value of attribute config.
Instance Method Summary collapse
- #complete(prompt:, system: nil, model: nil, **options) ⇒ Object
-
#initialize(config = RubyLlmMesh.configuration) ⇒ Base
constructor
A new instance of Base.
- #name ⇒ Object
Constructor Details
#initialize(config = RubyLlmMesh.configuration) ⇒ Base
Returns a new instance of Base.
13 14 15 |
# File 'lib/ruby_llm_mesh/providers/base.rb', line 13 def initialize(config = RubyLlmMesh.configuration) @config = config end |
Instance Attribute Details
#config ⇒ Object (readonly)
Returns the value of attribute config.
11 12 13 |
# File 'lib/ruby_llm_mesh/providers/base.rb', line 11 def config @config end |
Instance Method Details
#complete(prompt:, system: nil, model: nil, **options) ⇒ Object
21 22 23 |
# File 'lib/ruby_llm_mesh/providers/base.rb', line 21 def complete(prompt:, system: nil, model: nil, **) raise NotImplementedError end |
#name ⇒ Object
17 18 19 |
# File 'lib/ruby_llm_mesh/providers/base.rb', line 17 def name raise NotImplementedError end |