Module: RubyLLM::Providers::Test::Echo

Included in:
RubyLLM::Providers::Test
Defined in:
lib/ruby_llm/providers/test/echo.rb

Overview

Echo model behavior for the RubyLLM Test provider.

A deterministic response builder (‘#echo_response`) returns incoming prompt content.

It is intended to be mixed into ‘RubyLLM::Providers::Test`.

Class Method Summary collapse

Class Method Details

.idObject



12
# File 'lib/ruby_llm/providers/test/echo.rb', line 12

def self.id = "echo"

.infoObject



14
15
16
17
18
19
20
21
22
23
24
# File 'lib/ruby_llm/providers/test/echo.rb', line 14

def self.info = Model::Info.new(
  id:,
  name:,
  provider:     Test.slug,
  capabilities: Test.capabilities,

  modalities: {
    input:  %w[text],
    output: %w[text],
  },
)