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

#detailsObject

Returns the value of attribute details

Returns:

  • (Object)

    the current value of details



20
21
22
# File 'lib/agent_harness/providers/codex.rb', line 20

def details
  @details
end

#modelsObject

Returns the value of attribute models

Returns:

  • (Object)

    the current value of models



20
21
22
# File 'lib/agent_harness/providers/codex.rb', line 20

def models
  @models
end

#reasonObject

Returns the value of attribute reason

Returns:

  • (Object)

    the current value of reason



20
21
22
# File 'lib/agent_harness/providers/codex.rb', line 20

def reason
  @reason
end

Returns the value of attribute recommended_model_id

Returns:

  • (Object)

    the current value of recommended_model_id



20
21
22
# File 'lib/agent_harness/providers/codex.rb', line 20

def recommended_model_id
  @recommended_model_id
end

#sourceObject

Returns the value of attribute source

Returns:

  • (Object)

    the current value of source



20
21
22
# File 'lib/agent_harness/providers/codex.rb', line 20

def source
  @source
end

#statusObject

Returns the value of attribute status

Returns:

  • (Object)

    the current value of status



20
21
22
# File 'lib/agent_harness/providers/codex.rb', line 20

def status
  @status
end

Instance Method Details

#available?Boolean

Returns:

  • (Boolean)


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

def available? = status == :available

#to_hObject



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