Class: AgentHarness::Providers::Codex::ModelDiscovery
- Inherits:
-
Struct
- Object
- Struct
- AgentHarness::Providers::Codex::ModelDiscovery
- Defined in:
- lib/agent_harness/providers/codex.rb
Instance Attribute Summary collapse
-
#details ⇒ Object
Returns the value of attribute details.
-
#models ⇒ Object
Returns the value of attribute models.
-
#reason ⇒ Object
Returns the value of attribute reason.
-
#recommended_model_id ⇒ Object
Returns the value of attribute recommended_model_id.
-
#source ⇒ Object
Returns the value of attribute source.
-
#status ⇒ Object
Returns the value of attribute status.
Instance Method Summary collapse
Instance Attribute Details
#details ⇒ Object
Returns the value of attribute details
20 21 22 |
# File 'lib/agent_harness/providers/codex.rb', line 20 def details @details end |
#models ⇒ Object
Returns the value of attribute models
20 21 22 |
# File 'lib/agent_harness/providers/codex.rb', line 20 def models @models end |
#reason ⇒ Object
Returns the value of attribute reason
20 21 22 |
# File 'lib/agent_harness/providers/codex.rb', line 20 def reason @reason end |
#recommended_model_id ⇒ Object
Returns the value of attribute recommended_model_id
20 21 22 |
# File 'lib/agent_harness/providers/codex.rb', line 20 def recommended_model_id @recommended_model_id end |
#source ⇒ Object
Returns the value of attribute source
20 21 22 |
# File 'lib/agent_harness/providers/codex.rb', line 20 def source @source end |
#status ⇒ Object
Returns the value of attribute status
20 21 22 |
# File 'lib/agent_harness/providers/codex.rb', line 20 def status @status end |
Instance Method Details
#available? ⇒ Boolean
23 |
# File 'lib/agent_harness/providers/codex.rb', line 23 def available? = status == :available |
#to_h ⇒ Object
25 26 27 28 29 30 31 32 33 34 |
# File 'lib/agent_harness/providers/codex.rb', line 25 def to_h { status: status, recommended_model_id: recommended_model_id, models: models, source: source, reason: reason, details: details }.compact end |