Class: Axn::RubyLLM::Configuration

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

Constant Summary collapse

DEFAULT_MODEL =
"gpt-4o-mini"

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



10
11
12
13
# File 'lib/axn/ruby_llm/configuration.rb', line 10

def initialize
  @default_model = DEFAULT_MODEL
  @enabled = true
end

Instance Attribute Details

#default_modelObject

Returns the value of attribute default_model.



8
9
10
# File 'lib/axn/ruby_llm/configuration.rb', line 8

def default_model
  @default_model
end

#enabledObject

Returns the value of attribute enabled.



8
9
10
# File 'lib/axn/ruby_llm/configuration.rb', line 8

def enabled
  @enabled
end

Instance Method Details

#enabled?Boolean

Returns:

  • (Boolean)


15
16
17
# File 'lib/axn/ruby_llm/configuration.rb', line 15

def enabled?
  enabled.respond_to?(:call) ? !!enabled.call : !!enabled
end