Class: Nanobot::Providers::LLMProvider
- Inherits:
-
Object
- Object
- Nanobot::Providers::LLMProvider
- Defined in:
- lib/nanobot/providers/base.rb
Overview
Base class for LLM providers
Direct Known Subclasses
Instance Method Summary collapse
-
#chat(messages:, tools: nil, model: nil, max_tokens: 4096, temperature: 0.7) ⇒ LLMResponse
Chat with the LLM.
-
#default_model ⇒ String
Get the default model for this provider.
Instance Method Details
#chat(messages:, tools: nil, model: nil, max_tokens: 4096, temperature: 0.7) ⇒ LLMResponse
Chat with the LLM
32 33 34 |
# File 'lib/nanobot/providers/base.rb', line 32 def chat(messages:, tools: nil, model: nil, max_tokens: 4096, temperature: 0.7) raise NotImplementedError, "#{self.class} must implement #chat" end |
#default_model ⇒ String
Get the default model for this provider
38 39 40 |
# File 'lib/nanobot/providers/base.rb', line 38 def default_model raise NotImplementedError, "#{self.class} must implement #default_model" end |