Class: AISpec::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/aispec/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



8
9
10
11
12
13
14
15
16
# File 'lib/aispec/configuration.rb', line 8

def initialize
  @default_provider = "mock"
  @default_model = "default"
  @judge_provider = "openai"
  @judge_model = "gpt-4o"
  @timeout = 30
  @cache_enabled = false
  @reporters = [:console]
end

Instance Attribute Details

#cache_enabledObject

Returns the value of attribute cache_enabled.



5
6
7
# File 'lib/aispec/configuration.rb', line 5

def cache_enabled
  @cache_enabled
end

#default_modelObject

Returns the value of attribute default_model.



5
6
7
# File 'lib/aispec/configuration.rb', line 5

def default_model
  @default_model
end

#default_providerObject

Returns the value of attribute default_provider.



5
6
7
# File 'lib/aispec/configuration.rb', line 5

def default_provider
  @default_provider
end

#judge_modelObject

Returns the value of attribute judge_model.



5
6
7
# File 'lib/aispec/configuration.rb', line 5

def judge_model
  @judge_model
end

#judge_providerObject

Returns the value of attribute judge_provider.



5
6
7
# File 'lib/aispec/configuration.rb', line 5

def judge_provider
  @judge_provider
end

#reportersObject

Returns the value of attribute reporters.



5
6
7
# File 'lib/aispec/configuration.rb', line 5

def reporters
  @reporters
end

#timeoutObject

Returns the value of attribute timeout.



5
6
7
# File 'lib/aispec/configuration.rb', line 5

def timeout
  @timeout
end