Class: AgentHarness::ModelCompatibility::Result
- Inherits:
-
Struct
- Object
- Struct
- AgentHarness::ModelCompatibility::Result
- Defined in:
- lib/agent_harness/model_compatibility.rb
Overview
Structured compatibility outcome.
The struct intentionally exposes whatever facts the runner contract knows. Callers should treat unknown fields as nil rather than fail.
Instance Attribute Summary collapse
-
#auth_mode ⇒ Object
Returns the value of attribute auth_mode.
-
#cli_version ⇒ Object
Returns the value of attribute cli_version.
-
#cli_version_requirement ⇒ Object
Returns the value of attribute cli_version_requirement.
-
#details ⇒ Object
Returns the value of attribute details.
-
#fallback_model_id ⇒ Object
Returns the value of attribute fallback_model_id.
-
#minimum_cli_version ⇒ Object
Returns the value of attribute minimum_cli_version.
-
#model_id ⇒ Object
Returns the value of attribute model_id.
-
#reason ⇒ Object
Returns the value of attribute reason.
-
#runner ⇒ Object
Returns the value of attribute runner.
-
#source ⇒ Object
Returns the value of attribute source.
-
#supported ⇒ Object
Returns the value of attribute supported.
Instance Method Summary collapse
-
#supported? ⇒ Boolean
True when compatibility is known to be supported.
- #to_h ⇒ Object
-
#unknown? ⇒ Boolean
True when the runner did not return a definite answer.
-
#unsupported? ⇒ Boolean
True when compatibility is known to be unsupported.
Instance Attribute Details
#auth_mode ⇒ Object
Returns the value of attribute auth_mode
62 63 64 |
# File 'lib/agent_harness/model_compatibility.rb', line 62 def auth_mode @auth_mode end |
#cli_version ⇒ Object
Returns the value of attribute cli_version
62 63 64 |
# File 'lib/agent_harness/model_compatibility.rb', line 62 def cli_version @cli_version end |
#cli_version_requirement ⇒ Object
Returns the value of attribute cli_version_requirement
62 63 64 |
# File 'lib/agent_harness/model_compatibility.rb', line 62 def cli_version_requirement @cli_version_requirement end |
#details ⇒ Object
Returns the value of attribute details
62 63 64 |
# File 'lib/agent_harness/model_compatibility.rb', line 62 def details @details end |
#fallback_model_id ⇒ Object
Returns the value of attribute fallback_model_id
62 63 64 |
# File 'lib/agent_harness/model_compatibility.rb', line 62 def fallback_model_id @fallback_model_id end |
#minimum_cli_version ⇒ Object
Returns the value of attribute minimum_cli_version
62 63 64 |
# File 'lib/agent_harness/model_compatibility.rb', line 62 def minimum_cli_version @minimum_cli_version end |
#model_id ⇒ Object
Returns the value of attribute model_id
62 63 64 |
# File 'lib/agent_harness/model_compatibility.rb', line 62 def model_id @model_id end |
#reason ⇒ Object
Returns the value of attribute reason
62 63 64 |
# File 'lib/agent_harness/model_compatibility.rb', line 62 def reason @reason end |
#runner ⇒ Object
Returns the value of attribute runner
62 63 64 |
# File 'lib/agent_harness/model_compatibility.rb', line 62 def runner @runner end |
#source ⇒ Object
Returns the value of attribute source
62 63 64 |
# File 'lib/agent_harness/model_compatibility.rb', line 62 def source @source end |
#supported ⇒ Object
Returns the value of attribute supported
62 63 64 |
# File 'lib/agent_harness/model_compatibility.rb', line 62 def supported @supported end |
Instance Method Details
#supported? ⇒ Boolean
Returns true when compatibility is known to be supported.
76 |
# File 'lib/agent_harness/model_compatibility.rb', line 76 def supported? = supported == true |
#to_h ⇒ Object
84 85 86 |
# File 'lib/agent_harness/model_compatibility.rb', line 84 def to_h super.compact end |
#unknown? ⇒ Boolean
Returns true when the runner did not return a definite answer.
82 |
# File 'lib/agent_harness/model_compatibility.rb', line 82 def unknown? = supported.nil? |
#unsupported? ⇒ Boolean
Returns true when compatibility is known to be unsupported.
79 |
# File 'lib/agent_harness/model_compatibility.rb', line 79 def unsupported? = supported == false |