Class: OllamaAgent::Agent::AgentConfig
- Inherits:
-
Object
- Object
- OllamaAgent::Agent::AgentConfig
- Defined in:
- lib/ollama_agent/agent/agent_config.rb
Overview
Value object grouping Agent construction options (Runner and tests build this explicitly).
Instance Attribute Summary collapse
-
#approval_gate ⇒ Object
readonly
Returns the value of attribute approval_gate.
-
#audit ⇒ Object
readonly
Returns the value of attribute audit.
-
#budget ⇒ Object
readonly
Returns the value of attribute budget.
-
#confirm_delegation ⇒ Object
readonly
Returns the value of attribute confirm_delegation.
-
#confirm_patches ⇒ Object
readonly
Returns the value of attribute confirm_patches.
-
#context_summarize ⇒ Object
readonly
Returns the value of attribute context_summarize.
-
#external_skills_enabled ⇒ Object
readonly
Returns the value of attribute external_skills_enabled.
-
#http_timeout ⇒ Object
readonly
Returns the value of attribute http_timeout.
-
#logger ⇒ Object
readonly
Returns the value of attribute logger.
-
#max_retries ⇒ Object
readonly
Returns the value of attribute max_retries.
-
#max_tokens ⇒ Object
readonly
Returns the value of attribute max_tokens.
-
#memory_manager ⇒ Object
readonly
Returns the value of attribute memory_manager.
-
#model ⇒ Object
readonly
Returns the value of attribute model.
-
#orchestrator ⇒ Object
readonly
Returns the value of attribute orchestrator.
-
#patch_policy ⇒ Object
readonly
Returns the value of attribute patch_policy.
-
#permissions ⇒ Object
readonly
Returns the value of attribute permissions.
-
#policies ⇒ Object
readonly
Returns the value of attribute policies.
-
#provider ⇒ Object
readonly
Returns the value of attribute provider.
-
#provider_name ⇒ Object
readonly
Returns the value of attribute provider_name.
-
#read_only ⇒ Object
readonly
Returns the value of attribute read_only.
-
#resume ⇒ Object
readonly
Returns the value of attribute resume.
-
#root ⇒ Object
readonly
Returns the value of attribute root.
-
#session_id ⇒ Object
readonly
Returns the value of attribute session_id.
-
#skill_paths ⇒ Object
readonly
Returns the value of attribute skill_paths.
-
#skills_enabled ⇒ Object
readonly
Returns the value of attribute skills_enabled.
-
#skills_exclude ⇒ Object
readonly
Returns the value of attribute skills_exclude.
-
#skills_include ⇒ Object
readonly
Returns the value of attribute skills_include.
-
#stdin ⇒ Object
readonly
Returns the value of attribute stdin.
-
#stdout ⇒ Object
readonly
Returns the value of attribute stdout.
-
#system_prompt ⇒ Object
readonly
Returns the value of attribute system_prompt.
-
#think ⇒ Object
readonly
Returns the value of attribute think.
-
#trace_logger ⇒ Object
readonly
Returns the value of attribute trace_logger.
-
#user_prompt ⇒ Object
readonly
Returns the value of attribute user_prompt.
Instance Method Summary collapse
-
#initialize(model: nil, root: nil, confirm_patches: true, http_timeout: nil, think: nil, read_only: false, patch_policy: nil, system_prompt: nil, skill_paths: nil, skills_enabled: nil, skills_include: nil, skills_exclude: nil, external_skills_enabled: nil, orchestrator: false, confirm_delegation: nil, max_retries: nil, audit: nil, session_id: nil, resume: false, max_tokens: nil, context_summarize: nil, stdin: $stdin, stdout: $stdout, user_prompt: nil, logger: nil, provider: nil, provider_name: nil, budget: nil, permissions: nil, policies: nil, memory_manager: nil, trace_logger: nil, approval_gate: nil) ⇒ AgentConfig
constructor
rubocop:disable Metrics/MethodLength, Metrics/ParameterLists, Metrics/AbcSize – value object mirrors Agent keywords.
-
#resolved_confirm_delegation ⇒ Object
rubocop:enable Metrics/MethodLength, Metrics/ParameterLists, Metrics/AbcSize.
Constructor Details
#initialize(model: nil, root: nil, confirm_patches: true, http_timeout: nil, think: nil, read_only: false, patch_policy: nil, system_prompt: nil, skill_paths: nil, skills_enabled: nil, skills_include: nil, skills_exclude: nil, external_skills_enabled: nil, orchestrator: false, confirm_delegation: nil, max_retries: nil, audit: nil, session_id: nil, resume: false, max_tokens: nil, context_summarize: nil, stdin: $stdin, stdout: $stdout, user_prompt: nil, logger: nil, provider: nil, provider_name: nil, budget: nil, permissions: nil, policies: nil, memory_manager: nil, trace_logger: nil, approval_gate: nil) ⇒ AgentConfig
rubocop:disable Metrics/MethodLength, Metrics/ParameterLists, Metrics/AbcSize – value object mirrors Agent keywords
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 |
# File 'lib/ollama_agent/agent/agent_config.rb', line 18 def initialize(model: nil, root: nil, confirm_patches: true, http_timeout: nil, think: nil, read_only: false, patch_policy: nil, system_prompt: nil, skill_paths: nil, skills_enabled: nil, skills_include: nil, skills_exclude: nil, external_skills_enabled: nil, orchestrator: false, confirm_delegation: nil, max_retries: nil, audit: nil, session_id: nil, resume: false, max_tokens: nil, context_summarize: nil, stdin: $stdin, stdout: $stdout, user_prompt: nil, logger: nil, # v2 platform options (all optional — nil keeps existing behaviour) provider: nil, provider_name: nil, budget: nil, permissions: nil, policies: nil, memory_manager: nil, trace_logger: nil, approval_gate: nil) @model = model @root = root @confirm_patches = confirm_patches @http_timeout = http_timeout @think = think @read_only = read_only @patch_policy = patch_policy @system_prompt = system_prompt @skill_paths = skill_paths @skills_enabled = skills_enabled @skills_include = skills_include @skills_exclude = skills_exclude @external_skills_enabled = external_skills_enabled @orchestrator = orchestrator @confirm_delegation = confirm_delegation @max_retries = max_retries @audit = audit @session_id = session_id @resume = resume @max_tokens = max_tokens @context_summarize = context_summarize @stdin = stdin @stdout = stdout @user_prompt = user_prompt @logger = logger # v2 platform options @provider = provider @provider_name = provider_name @budget = budget @permissions = @policies = policies @memory_manager = memory_manager @trace_logger = trace_logger @approval_gate = approval_gate end |
Instance Attribute Details
#approval_gate ⇒ Object (readonly)
Returns the value of attribute approval_gate.
7 8 9 |
# File 'lib/ollama_agent/agent/agent_config.rb', line 7 def approval_gate @approval_gate end |
#audit ⇒ Object (readonly)
Returns the value of attribute audit.
7 8 9 |
# File 'lib/ollama_agent/agent/agent_config.rb', line 7 def audit @audit end |
#budget ⇒ Object (readonly)
Returns the value of attribute budget.
7 8 9 |
# File 'lib/ollama_agent/agent/agent_config.rb', line 7 def budget @budget end |
#confirm_delegation ⇒ Object (readonly)
Returns the value of attribute confirm_delegation.
7 8 9 |
# File 'lib/ollama_agent/agent/agent_config.rb', line 7 def confirm_delegation @confirm_delegation end |
#confirm_patches ⇒ Object (readonly)
Returns the value of attribute confirm_patches.
7 8 9 |
# File 'lib/ollama_agent/agent/agent_config.rb', line 7 def confirm_patches @confirm_patches end |
#context_summarize ⇒ Object (readonly)
Returns the value of attribute context_summarize.
7 8 9 |
# File 'lib/ollama_agent/agent/agent_config.rb', line 7 def context_summarize @context_summarize end |
#external_skills_enabled ⇒ Object (readonly)
Returns the value of attribute external_skills_enabled.
7 8 9 |
# File 'lib/ollama_agent/agent/agent_config.rb', line 7 def external_skills_enabled @external_skills_enabled end |
#http_timeout ⇒ Object (readonly)
Returns the value of attribute http_timeout.
7 8 9 |
# File 'lib/ollama_agent/agent/agent_config.rb', line 7 def http_timeout @http_timeout end |
#logger ⇒ Object (readonly)
Returns the value of attribute logger.
7 8 9 |
# File 'lib/ollama_agent/agent/agent_config.rb', line 7 def logger @logger end |
#max_retries ⇒ Object (readonly)
Returns the value of attribute max_retries.
7 8 9 |
# File 'lib/ollama_agent/agent/agent_config.rb', line 7 def max_retries @max_retries end |
#max_tokens ⇒ Object (readonly)
Returns the value of attribute max_tokens.
7 8 9 |
# File 'lib/ollama_agent/agent/agent_config.rb', line 7 def max_tokens @max_tokens end |
#memory_manager ⇒ Object (readonly)
Returns the value of attribute memory_manager.
7 8 9 |
# File 'lib/ollama_agent/agent/agent_config.rb', line 7 def memory_manager @memory_manager end |
#model ⇒ Object (readonly)
Returns the value of attribute model.
7 8 9 |
# File 'lib/ollama_agent/agent/agent_config.rb', line 7 def model @model end |
#orchestrator ⇒ Object (readonly)
Returns the value of attribute orchestrator.
7 8 9 |
# File 'lib/ollama_agent/agent/agent_config.rb', line 7 def orchestrator @orchestrator end |
#patch_policy ⇒ Object (readonly)
Returns the value of attribute patch_policy.
7 8 9 |
# File 'lib/ollama_agent/agent/agent_config.rb', line 7 def patch_policy @patch_policy end |
#permissions ⇒ Object (readonly)
Returns the value of attribute permissions.
7 8 9 |
# File 'lib/ollama_agent/agent/agent_config.rb', line 7 def @permissions end |
#policies ⇒ Object (readonly)
Returns the value of attribute policies.
7 8 9 |
# File 'lib/ollama_agent/agent/agent_config.rb', line 7 def policies @policies end |
#provider ⇒ Object (readonly)
Returns the value of attribute provider.
7 8 9 |
# File 'lib/ollama_agent/agent/agent_config.rb', line 7 def provider @provider end |
#provider_name ⇒ Object (readonly)
Returns the value of attribute provider_name.
7 8 9 |
# File 'lib/ollama_agent/agent/agent_config.rb', line 7 def provider_name @provider_name end |
#read_only ⇒ Object (readonly)
Returns the value of attribute read_only.
7 8 9 |
# File 'lib/ollama_agent/agent/agent_config.rb', line 7 def read_only @read_only end |
#resume ⇒ Object (readonly)
Returns the value of attribute resume.
7 8 9 |
# File 'lib/ollama_agent/agent/agent_config.rb', line 7 def resume @resume end |
#root ⇒ Object (readonly)
Returns the value of attribute root.
7 8 9 |
# File 'lib/ollama_agent/agent/agent_config.rb', line 7 def root @root end |
#session_id ⇒ Object (readonly)
Returns the value of attribute session_id.
7 8 9 |
# File 'lib/ollama_agent/agent/agent_config.rb', line 7 def session_id @session_id end |
#skill_paths ⇒ Object (readonly)
Returns the value of attribute skill_paths.
7 8 9 |
# File 'lib/ollama_agent/agent/agent_config.rb', line 7 def skill_paths @skill_paths end |
#skills_enabled ⇒ Object (readonly)
Returns the value of attribute skills_enabled.
7 8 9 |
# File 'lib/ollama_agent/agent/agent_config.rb', line 7 def skills_enabled @skills_enabled end |
#skills_exclude ⇒ Object (readonly)
Returns the value of attribute skills_exclude.
7 8 9 |
# File 'lib/ollama_agent/agent/agent_config.rb', line 7 def skills_exclude @skills_exclude end |
#skills_include ⇒ Object (readonly)
Returns the value of attribute skills_include.
7 8 9 |
# File 'lib/ollama_agent/agent/agent_config.rb', line 7 def skills_include @skills_include end |
#stdin ⇒ Object (readonly)
Returns the value of attribute stdin.
7 8 9 |
# File 'lib/ollama_agent/agent/agent_config.rb', line 7 def stdin @stdin end |
#stdout ⇒ Object (readonly)
Returns the value of attribute stdout.
7 8 9 |
# File 'lib/ollama_agent/agent/agent_config.rb', line 7 def stdout @stdout end |
#system_prompt ⇒ Object (readonly)
Returns the value of attribute system_prompt.
7 8 9 |
# File 'lib/ollama_agent/agent/agent_config.rb', line 7 def system_prompt @system_prompt end |
#think ⇒ Object (readonly)
Returns the value of attribute think.
7 8 9 |
# File 'lib/ollama_agent/agent/agent_config.rb', line 7 def think @think end |
#trace_logger ⇒ Object (readonly)
Returns the value of attribute trace_logger.
7 8 9 |
# File 'lib/ollama_agent/agent/agent_config.rb', line 7 def trace_logger @trace_logger end |
#user_prompt ⇒ Object (readonly)
Returns the value of attribute user_prompt.
7 8 9 |
# File 'lib/ollama_agent/agent/agent_config.rb', line 7 def user_prompt @user_prompt end |
Instance Method Details
#resolved_confirm_delegation ⇒ Object
rubocop:enable Metrics/MethodLength, Metrics/ParameterLists, Metrics/AbcSize
69 70 71 |
# File 'lib/ollama_agent/agent/agent_config.rb', line 69 def resolved_confirm_delegation @confirm_delegation.nil? || @confirm_delegation end |