Class: LlmLogs::Configuration

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

Defined Under Namespace

Classes: BedrockBatch

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
17
18
19
20
21
22
# File 'lib/llm_logs/configuration.rb', line 8

def initialize
  @enabled             = true
  @auto_instrument     = true
  @retention_days      = 30
  @prompts_source_path = nil
  @prompt_subfolders   = %w[skills fragments templates]
  @batch_enabled       = true
  @batch_provider      = :openai_responses
  @page_size           = 50
  @bedrock_batch       = nil
  # Effort tiers offered in the prompt form. Union of what current providers
  # accept -- OpenAI takes all six, Anthropic has no "none". Narrow this in an
  # initializer if your app targets one provider.
  @reasoning_effort_options = %w[none low medium high xhigh max]
end

Instance Attribute Details

#auto_instrumentObject

Returns the value of attribute auto_instrument.



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

def auto_instrument
  @auto_instrument
end

#batch_enabledObject

Returns the value of attribute batch_enabled.



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

def batch_enabled
  @batch_enabled
end

#batch_providerObject

Returns the value of attribute batch_provider.



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

def batch_provider
  @batch_provider
end

#bedrock_batchObject

Returns the value of attribute bedrock_batch.



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

def bedrock_batch
  @bedrock_batch
end

#enabledObject

Returns the value of attribute enabled.



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

def enabled
  @enabled
end

#page_sizeObject

Returns the value of attribute page_size.



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

def page_size
  @page_size
end

#prompt_subfoldersObject

Returns the value of attribute prompt_subfolders.



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

def prompt_subfolders
  @prompt_subfolders
end

#prompts_source_pathObject

Returns the value of attribute prompts_source_path.



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

def prompts_source_path
  @prompts_source_path
end

#reasoning_effort_optionsObject

Returns the value of attribute reasoning_effort_options.



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

def reasoning_effort_options
  @reasoning_effort_options
end

#retention_daysObject

Returns the value of attribute retention_days.



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

def retention_days
  @retention_days
end