Class: RubyLLM::Providers::Base
- Inherits:
-
Object
- Object
- RubyLLM::Providers::Base
- Defined in:
- lib/ruby_llm/providers/base.rb
Overview
Base provider class for LLM interactions
Instance Attribute Summary collapse
-
#connection ⇒ Object
readonly
Returns the value of attribute connection.
Instance Method Summary collapse
- #chat(messages, **options, &block) ⇒ Object
-
#initialize ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize ⇒ Base
Returns a new instance of Base.
9 10 11 |
# File 'lib/ruby_llm/providers/base.rb', line 9 def initialize @connection = build_connection end |
Instance Attribute Details
#connection ⇒ Object (readonly)
Returns the value of attribute connection.
7 8 9 |
# File 'lib/ruby_llm/providers/base.rb', line 7 def connection @connection end |
Instance Method Details
#chat(messages, **options, &block) ⇒ Object
13 14 15 |
# File 'lib/ruby_llm/providers/base.rb', line 13 def chat(, **, &block) raise NotImplementedError end |