Class: Ask::Rails::Configuration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



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

def initialize
  @default_model = "gpt-4o"
  @max_turns = 25
  @system_prompt = nil
  @tool_concurrency = 5
  @persistence_adapter = nil
  @tools = []
end

Instance Attribute Details

#default_modelObject

Returns the value of attribute default_model.



6
7
8
# File 'lib/ask/rails/configuration.rb', line 6

def default_model
  @default_model
end

#max_turnsObject

Returns the value of attribute max_turns.



6
7
8
# File 'lib/ask/rails/configuration.rb', line 6

def max_turns
  @max_turns
end

#persistence_adapterObject

Returns the value of attribute persistence_adapter.



6
7
8
# File 'lib/ask/rails/configuration.rb', line 6

def persistence_adapter
  @persistence_adapter
end

#system_promptObject

Returns the value of attribute system_prompt.



6
7
8
# File 'lib/ask/rails/configuration.rb', line 6

def system_prompt
  @system_prompt
end

#tool_concurrencyObject

Returns the value of attribute tool_concurrency.



6
7
8
# File 'lib/ask/rails/configuration.rb', line 6

def tool_concurrency
  @tool_concurrency
end

#toolsObject

Returns the value of attribute tools.



6
7
8
# File 'lib/ask/rails/configuration.rb', line 6

def tools
  @tools
end