Class: LLMed::LLM::Test
- Inherits:
-
Object
- Object
- LLMed::LLM::Test
- Defined in:
- lib/llm.rb
Instance Method Summary collapse
- #chat(messages: []) ⇒ Object
-
#initialize ⇒ Test
constructor
A new instance of Test.
Constructor Details
#initialize ⇒ Test
Returns a new instance of Test.
99 100 101 |
# File 'lib/llm.rb', line 99 def initialize @output = '' end |
Instance Method Details
#chat(messages: []) ⇒ Object
103 104 105 106 107 108 109 110 111 |
# File 'lib/llm.rb', line 103 def chat(messages: []) @output = .map { |m| m[:content] }.join("\n") Response.new({ provider: :test, model: 'test', duration_seconds: 0, source_code: @output, total_tokens: 0 }) end |