Class: AgentHarness::Providers::Codex::ModelDiscovery

Inherits:
Struct
  • Object
show all
Defined in:
lib/agent_harness/providers/codex.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#details ⇒ Object

Returns the value of attribute details

Returns:

  • (Object) —

    the current value of details



22
23
24
# File 'lib/agent_harness/providers/codex.rb', line 22

def details
  @details
end

#models ⇒ Object

Returns the value of attribute models

Returns:

  • (Object) —

    the current value of models



22
23
24
# File 'lib/agent_harness/providers/codex.rb', line 22

def models
  @models
end

#reason ⇒ Object

Returns the value of attribute reason

Returns:

  • (Object) —

    the current value of reason



22
23
24
# File 'lib/agent_harness/providers/codex.rb', line 22

def reason
  @reason
end

Returns the value of attribute recommended_model_id

Returns:

  • (Object) —

    the current value of recommended_model_id



22
23
24
# File 'lib/agent_harness/providers/codex.rb', line 22

def recommended_model_id
  @recommended_model_id
end

#source ⇒ Object

Returns the value of attribute source

Returns:

  • (Object) —

    the current value of source



22
23
24
# File 'lib/agent_harness/providers/codex.rb', line 22

def source
  @source
end

#status ⇒ Object

Returns the value of attribute status

Returns:

  • (Object) —

    the current value of status



22
23
24
# File 'lib/agent_harness/providers/codex.rb', line 22

def status
  @status
end

Instance Method Details

#available? ⇒ Boolean

Returns:

  • (Boolean)


25
# File 'lib/agent_harness/providers/codex.rb', line 25

def available? = status == :available

#to_h ⇒ Object



27
28
29
30
31
32
33
34
35
36
# File 'lib/agent_harness/providers/codex.rb', line 27

def to_h
  {
    status: status,
    recommended_model_id: recommended_model_id,
    models: models,
    source: source,
    reason: reason,
    details: details
  }.compact
end