Class: RcrewAI::Rails::Configuration
- Inherits:
-
Object
- Object
- RcrewAI::Rails::Configuration
- Defined in:
- lib/rcrewai/rails/configuration.rb
Instance Attribute Summary collapse
-
#async_execution ⇒ Object
Returns the value of attribute async_execution.
-
#default_llm_model ⇒ Object
Returns the value of attribute default_llm_model.
-
#default_llm_provider ⇒ Object
Returns the value of attribute default_llm_provider.
-
#enable_logging ⇒ Object
Returns the value of attribute enable_logging.
-
#enable_web_ui ⇒ Object
Returns the value of attribute enable_web_ui.
-
#job_queue_name ⇒ Object
Returns the value of attribute job_queue_name.
-
#log_level ⇒ Object
Returns the value of attribute log_level.
-
#max_retries ⇒ Object
Returns the value of attribute max_retries.
-
#persistence_backend ⇒ Object
Returns the value of attribute persistence_backend.
-
#timeout ⇒ Object
Returns the value of attribute timeout.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/rcrewai/rails/configuration.rb', line 8 def initialize @job_queue_name = "default" @enable_web_ui = true @persistence_backend = :active_record @default_llm_provider = "openai" @default_llm_model = "gpt-4" @max_retries = 3 @timeout = 300 # 5 minutes @enable_logging = true @log_level = :info @async_execution = true # Use ActiveJob for async by default end |
Instance Attribute Details
#async_execution ⇒ Object
Returns the value of attribute async_execution.
4 5 6 |
# File 'lib/rcrewai/rails/configuration.rb', line 4 def async_execution @async_execution end |
#default_llm_model ⇒ Object
Returns the value of attribute default_llm_model.
4 5 6 |
# File 'lib/rcrewai/rails/configuration.rb', line 4 def default_llm_model @default_llm_model end |
#default_llm_provider ⇒ Object
Returns the value of attribute default_llm_provider.
4 5 6 |
# File 'lib/rcrewai/rails/configuration.rb', line 4 def default_llm_provider @default_llm_provider end |
#enable_logging ⇒ Object
Returns the value of attribute enable_logging.
4 5 6 |
# File 'lib/rcrewai/rails/configuration.rb', line 4 def enable_logging @enable_logging end |
#enable_web_ui ⇒ Object
Returns the value of attribute enable_web_ui.
4 5 6 |
# File 'lib/rcrewai/rails/configuration.rb', line 4 def enable_web_ui @enable_web_ui end |
#job_queue_name ⇒ Object
Returns the value of attribute job_queue_name.
4 5 6 |
# File 'lib/rcrewai/rails/configuration.rb', line 4 def job_queue_name @job_queue_name end |
#log_level ⇒ Object
Returns the value of attribute log_level.
4 5 6 |
# File 'lib/rcrewai/rails/configuration.rb', line 4 def log_level @log_level end |
#max_retries ⇒ Object
Returns the value of attribute max_retries.
4 5 6 |
# File 'lib/rcrewai/rails/configuration.rb', line 4 def max_retries @max_retries end |
#persistence_backend ⇒ Object
Returns the value of attribute persistence_backend.
4 5 6 |
# File 'lib/rcrewai/rails/configuration.rb', line 4 def persistence_backend @persistence_backend end |
#timeout ⇒ Object
Returns the value of attribute timeout.
4 5 6 |
# File 'lib/rcrewai/rails/configuration.rb', line 4 def timeout @timeout end |