Class: SmartPrompt::MockAdapter

Inherits:
LLMAdapter show all
Defined in:
lib/smart_prompt/llm_adapter.rb

Instance Attribute Summary

Attributes inherited from LLMAdapter

#last_response

Instance Method Summary collapse

Methods inherited from LLMAdapter

#initialize

Constructor Details

This class inherits a constructor from SmartPrompt::LLMAdapter

Instance Method Details

#send_request(messages) ⇒ Object



20
21
22
23
# File 'lib/smart_prompt/llm_adapter.rb', line 20

def send_request(messages)
  puts "Mock adapter received #{messages.length} messages"
  "This is a mock response from the LLM adapter."
end