Class: SkillBench::Config::Defaults

Inherits:
Object
  • Object
show all
Defined in:
lib/skill_bench/config/defaults.rb

Overview

Builds the default evaluator configuration state.

Class Method Summary collapse

Class Method Details

.callHash

Returns the default configuration values.

Returns:

  • (Hash)

    result envelope with default provider, timeout, command, and provider settings



10
11
12
# File 'lib/skill_bench/config/defaults.rb', line 10

def self.call
  { success: true, response: { config: config } }
end

.configHash

Builds the raw default configuration hash.

Returns:

  • (Hash)

    default provider, timeout, command, and provider settings



17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# File 'lib/skill_bench/config/defaults.rb', line 17

def self.config
  {
    current_llm_provider: :openai,
    max_execution_time: 30,
    allowed_commands: nil,
    llm_providers_config: {
      openai: { api_key: nil, model: 'gpt-4o' },
      anthropic: { api_key: nil, model: 'claude-sonnet-4-20250514' },
      gemini: {
        api_key: nil,
        model: 'gemini-1.5-flash-latest',
        location: 'us-central1',
        project_id: nil
      },
      ollama: { api_key: nil, model: 'qwen:7b', base_url: nil },
      azure: { api_key: nil, model: 'gpt-4', endpoint: nil, api_version: nil },
      groq: { api_key: nil, model: 'llama-3.3-70b-versatile' },
      deepseek: { api_key: nil, model: 'deepseek-chat' },
      opencode: { api_key: nil, model: 'opencode-model', base_url: nil },
      openrouter: { api_key: nil, model: 'anthropic/claude-3.5-sonnet' }
    }
  }
end