Exception: Aidp::Harness::NoModelAvailableError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/aidp/harness/thinking_depth_manager.rb

Overview

Custom exception for model availability issues

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(tier:, provider:) ⇒ NoModelAvailableError

Returns a new instance of NoModelAvailableError.



13
14
15
16
17
18
# File 'lib/aidp/harness/thinking_depth_manager.rb', line 13

def initialize(tier:, provider:)
  @tier = tier
  @provider = provider
  super("No model available for tier '#{tier}' with provider '#{provider}'. " \
        "Check your aidp.yml configuration or run 'aidp models discover' to find available models.")
end

Instance Attribute Details

#providerObject (readonly)

Returns the value of attribute provider.



11
12
13
# File 'lib/aidp/harness/thinking_depth_manager.rb', line 11

def provider
  @provider
end

#tierObject (readonly)

Returns the value of attribute tier.



11
12
13
# File 'lib/aidp/harness/thinking_depth_manager.rb', line 11

def tier
  @tier
end