Class: SmartPrompt::LLMAdapter
- Inherits:
-
Object
- Object
- SmartPrompt::LLMAdapter
- Defined in:
- lib/smart_prompt/llm_adapter.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#last_response ⇒ Object
Returns the value of attribute last_response.
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.
8 9 10 11 |
# File 'lib/smart_prompt/llm_adapter.rb', line 8 def initialize(config) SmartPrompt.logger.info "Start create the SmartPrompt LLMAdapter." @config = config end |
Instance Attribute Details
#last_response ⇒ Object
Returns the value of attribute last_response.
7 8 9 |
# File 'lib/smart_prompt/llm_adapter.rb', line 7 def last_response @last_response end |
Instance Method Details
#send_request(messages) ⇒ Object
13 14 15 16 |
# File 'lib/smart_prompt/llm_adapter.rb', line 13 def send_request() SmartPrompt.logger.error "LLMAdapter: Subclasses must implement send_request" raise NotImplementedError, "Subclasses must implement send_request" end |