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.
-
#default_memory_embedder ⇒ Object
Returns the value of attribute default_memory_embedder.
-
#default_memory_store ⇒ Object
Returns the value of attribute default_memory_store.
-
#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.
-
#observation_capture_prompts ⇒ Object
Returns the value of attribute observation_capture_prompts.
-
#observation_enabled ⇒ Object
Returns the value of attribute observation_enabled.
-
#observation_flush_every ⇒ Object
Returns the value of attribute observation_flush_every.
-
#observation_flush_mode ⇒ Object
Returns the value of attribute observation_flush_mode.
-
#observation_prompt_max_bytes ⇒ Object
Returns the value of attribute observation_prompt_max_bytes.
-
#observation_retention_days ⇒ Object
Returns the value of attribute observation_retention_days.
-
#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.
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
# File 'lib/rcrewai/rails/configuration.rb', line 12 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 @default_memory_embedder = nil @default_memory_store = nil @observation_enabled = true @observation_capture_prompts = :truncated # :none | :truncated | :full @observation_prompt_max_bytes = 4_096 @observation_flush_mode = :batched # :batched | :immediate @observation_flush_every = 25 @observation_retention_days = 30 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 |
#default_memory_embedder ⇒ Object
Returns the value of attribute default_memory_embedder.
4 5 6 |
# File 'lib/rcrewai/rails/configuration.rb', line 4 def @default_memory_embedder end |
#default_memory_store ⇒ Object
Returns the value of attribute default_memory_store.
4 5 6 |
# File 'lib/rcrewai/rails/configuration.rb', line 4 def default_memory_store @default_memory_store 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 |
#observation_capture_prompts ⇒ Object
Returns the value of attribute observation_capture_prompts.
4 5 6 |
# File 'lib/rcrewai/rails/configuration.rb', line 4 def observation_capture_prompts @observation_capture_prompts end |
#observation_enabled ⇒ Object
Returns the value of attribute observation_enabled.
4 5 6 |
# File 'lib/rcrewai/rails/configuration.rb', line 4 def observation_enabled @observation_enabled end |
#observation_flush_every ⇒ Object
Returns the value of attribute observation_flush_every.
4 5 6 |
# File 'lib/rcrewai/rails/configuration.rb', line 4 def observation_flush_every @observation_flush_every end |
#observation_flush_mode ⇒ Object
Returns the value of attribute observation_flush_mode.
4 5 6 |
# File 'lib/rcrewai/rails/configuration.rb', line 4 def observation_flush_mode @observation_flush_mode end |
#observation_prompt_max_bytes ⇒ Object
Returns the value of attribute observation_prompt_max_bytes.
4 5 6 |
# File 'lib/rcrewai/rails/configuration.rb', line 4 def observation_prompt_max_bytes @observation_prompt_max_bytes end |
#observation_retention_days ⇒ Object
Returns the value of attribute observation_retention_days.
4 5 6 |
# File 'lib/rcrewai/rails/configuration.rb', line 4 def observation_retention_days @observation_retention_days 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 |