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
53 54 55 |
# File 'lib/agent_harness/model_compatibility.rb', line 53 def auth_mode @auth_mode end |
#cli_version ⇒ Object
Returns the value of attribute cli_version
53 54 55 |
# File 'lib/agent_harness/model_compatibility.rb', line 53 def cli_version @cli_version end |
#cli_version_requirement ⇒ Object
Returns the value of attribute cli_version_requirement
53 54 55 |
# File 'lib/agent_harness/model_compatibility.rb', line 53 def cli_version_requirement @cli_version_requirement end |
#details ⇒ Object
Returns the value of attribute details
53 54 55 |
# File 'lib/agent_harness/model_compatibility.rb', line 53 def details @details end |
#fallback_model_id ⇒ Object
Returns the value of attribute fallback_model_id
53 54 55 |
# File 'lib/agent_harness/model_compatibility.rb', line 53 def fallback_model_id @fallback_model_id end |
#minimum_cli_version ⇒ Object
Returns the value of attribute minimum_cli_version
53 54 55 |
# File 'lib/agent_harness/model_compatibility.rb', line 53 def minimum_cli_version @minimum_cli_version end |
#model_id ⇒ Object
Returns the value of attribute model_id
53 54 55 |
# File 'lib/agent_harness/model_compatibility.rb', line 53 def model_id @model_id end |
#reason ⇒ Object
Returns the value of attribute reason
53 54 55 |
# File 'lib/agent_harness/model_compatibility.rb', line 53 def reason @reason end |
#runner ⇒ Object
Returns the value of attribute runner
53 54 55 |
# File 'lib/agent_harness/model_compatibility.rb', line 53 def runner @runner end |
#source ⇒ Object
Returns the value of attribute source
53 54 55 |
# File 'lib/agent_harness/model_compatibility.rb', line 53 def source @source end |
#supported ⇒ Object
Returns the value of attribute supported
53 54 55 |
# File 'lib/agent_harness/model_compatibility.rb', line 53 def supported @supported end |
Instance Method Details
#supported? ⇒ Boolean
Returns true when compatibility is known to be supported.
68 |
# File 'lib/agent_harness/model_compatibility.rb', line 68 def supported? = supported == true |
#to_h ⇒ Object
76 77 78 |
# File 'lib/agent_harness/model_compatibility.rb', line 76 def to_h super.compact end |
#unknown? ⇒ Boolean
Returns true when the runner did not return a definite answer.
74 |
# File 'lib/agent_harness/model_compatibility.rb', line 74 def unknown? = supported.nil? |
#unsupported? ⇒ Boolean
Returns true when compatibility is known to be unsupported.
71 |
# File 'lib/agent_harness/model_compatibility.rb', line 71 def unsupported? = supported == false |