Module: AgentHarness::Providers::Adapter::ClassMethods
- Defined in:
- lib/agent_harness/providers/adapter.rb
Overview
Class methods that all providers must implement
Instance Method Summary collapse
-
#available? ⇒ Boolean
Check if provider CLI is available on the system.
-
#binary_name ⇒ String
CLI binary name.
-
#discover_models ⇒ Array<Hash>
Discover available models.
-
#firewall_requirements ⇒ Hash
Required domains for firewall configuration.
-
#instruction_file_paths ⇒ Array<Hash>
Paths to instruction files (e.g., CLAUDE.md, .cursorrules).
-
#provider_name ⇒ Symbol
Human-readable provider name.
Instance Method Details
#available? ⇒ Boolean
Check if provider CLI is available on the system
35 36 37 |
# File 'lib/agent_harness/providers/adapter.rb', line 35 def available? raise NotImplementedError, "#{self} must implement .available?" end |
#binary_name ⇒ String
CLI binary name
42 43 44 |
# File 'lib/agent_harness/providers/adapter.rb', line 42 def binary_name raise NotImplementedError, "#{self} must implement .binary_name" end |
#discover_models ⇒ Array<Hash>
Discover available models
63 64 65 |
# File 'lib/agent_harness/providers/adapter.rb', line 63 def discover_models [] end |
#firewall_requirements ⇒ Hash
Required domains for firewall configuration
49 50 51 |
# File 'lib/agent_harness/providers/adapter.rb', line 49 def firewall_requirements {domains: [], ip_ranges: []} end |
#instruction_file_paths ⇒ Array<Hash>
Paths to instruction files (e.g., CLAUDE.md, .cursorrules)
56 57 58 |
# File 'lib/agent_harness/providers/adapter.rb', line 56 def instruction_file_paths [] end |
#provider_name ⇒ Symbol
Human-readable provider name
28 29 30 |
# File 'lib/agent_harness/providers/adapter.rb', line 28 def provider_name raise NotImplementedError, "#{self} must implement .provider_name" end |