Module: SkillBench::Config::FacadeReaders

Included in:
SkillBench::Config
Defined in:
lib/skill_bench/config/facade_readers.rb

Overview

Reader methods exposed by the Config facade.

Instance Method Summary collapse

Instance Method Details

#allowed_commandsArray<String>?

Returns allowed command list.

Returns:

  • (Array<String>, nil)

    allowed commands



24
25
26
# File 'lib/skill_bench/config/facade_readers.rb', line 24

def allowed_commands
  store.allowed_commands
end

#api_keyString?

Returns the API key for the current LLM provider.

Returns:

  • (String, nil)

    API key for the current provider



38
39
40
# File 'lib/skill_bench/config/facade_readers.rb', line 38

def api_key
  store.api_key
end

#base_urlString?

Returns the base URL for the current LLM provider.

Returns:

  • (String, nil)

    base URL for the current provider



52
53
54
# File 'lib/skill_bench/config/facade_readers.rb', line 52

def base_url
  store.base_url
end

#current_llm_providerSymbol?

Returns the current LLM provider.

Returns:

  • (Symbol, nil)

    current provider



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

def current_llm_provider
  store.current_llm_provider
end

#for_provider(provider) ⇒ Hash

Returns configuration for a specific provider.

Parameters:

  • provider (Symbol)

    provider name

Returns:

  • (Hash)

    configuration for the provider



60
61
62
# File 'lib/skill_bench/config/facade_readers.rb', line 60

def for_provider(provider)
  store.for_provider(provider)
end

#llm_providers_configHash

Returns provider configuration.

Returns:

  • (Hash)

    provider configuration by provider name



31
32
33
# File 'lib/skill_bench/config/facade_readers.rb', line 31

def llm_providers_config
  store.llm_providers_config
end

#max_execution_timeInteger?

Returns maximum command execution time.

Returns:

  • (Integer, nil)

    maximum execution time in seconds



17
18
19
# File 'lib/skill_bench/config/facade_readers.rb', line 17

def max_execution_time
  store.max_execution_time
end

#modelString?

Returns the model for the current LLM provider.

Returns:

  • (String, nil)

    model name for the current provider



45
46
47
# File 'lib/skill_bench/config/facade_readers.rb', line 45

def model
  store.model
end