Class: SmartPrompt::LLMAdapter
- Inherits:
-
Object
- Object
- SmartPrompt::LLMAdapter
- Defined in:
- lib/smart_prompt/llm_adapter.rb
Direct Known Subclasses
Instance Method Summary collapse
-
#initialize(config) ⇒ LLMAdapter
constructor
A new instance of LLMAdapter.
- #send_request(messages) ⇒ Object
Constructor Details
#initialize(config) ⇒ LLMAdapter
Returns a new instance of LLMAdapter.
9 10 11 12 |
# File 'lib/smart_prompt/llm_adapter.rb', line 9 def initialize(config) SmartPrompt.logger.info "Start create the SmartPrompt LLMAdapter." @config = config end |
Instance Method Details
#send_request(messages) ⇒ Object
14 15 16 17 |
# File 'lib/smart_prompt/llm_adapter.rb', line 14 def send_request() SmartPrompt.logger.error "LLMAdapter: Subclasses must implement send_request" raise NotImplementedError, "Subclasses must implement send_request" end |