Class: AgentHarness::ModelCompatibility::Result

Inherits:
Struct
  • Object
show all
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

Instance Method Summary collapse

Instance Attribute Details

#auth_modeObject

Returns the value of attribute auth_mode

Returns:

  • (Object)

    the current value of auth_mode



53
54
55
# File 'lib/agent_harness/model_compatibility.rb', line 53

def auth_mode
  @auth_mode
end

#cli_versionObject

Returns the value of attribute cli_version

Returns:

  • (Object)

    the current value of cli_version



53
54
55
# File 'lib/agent_harness/model_compatibility.rb', line 53

def cli_version
  @cli_version
end

#cli_version_requirementObject

Returns the value of attribute cli_version_requirement

Returns:

  • (Object)

    the current value of cli_version_requirement



53
54
55
# File 'lib/agent_harness/model_compatibility.rb', line 53

def cli_version_requirement
  @cli_version_requirement
end

#detailsObject

Returns the value of attribute details

Returns:

  • (Object)

    the current value of details



53
54
55
# File 'lib/agent_harness/model_compatibility.rb', line 53

def details
  @details
end

#fallback_model_idObject

Returns the value of attribute fallback_model_id

Returns:

  • (Object)

    the current value of 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_versionObject

Returns the value of attribute minimum_cli_version

Returns:

  • (Object)

    the current value of minimum_cli_version



53
54
55
# File 'lib/agent_harness/model_compatibility.rb', line 53

def minimum_cli_version
  @minimum_cli_version
end

#model_idObject

Returns the value of attribute model_id

Returns:

  • (Object)

    the current value of model_id



53
54
55
# File 'lib/agent_harness/model_compatibility.rb', line 53

def model_id
  @model_id
end

#reasonObject

Returns the value of attribute reason

Returns:

  • (Object)

    the current value of reason



53
54
55
# File 'lib/agent_harness/model_compatibility.rb', line 53

def reason
  @reason
end

#runnerObject

Returns the value of attribute runner

Returns:

  • (Object)

    the current value of runner



53
54
55
# File 'lib/agent_harness/model_compatibility.rb', line 53

def runner
  @runner
end

#sourceObject

Returns the value of attribute source

Returns:

  • (Object)

    the current value of source



53
54
55
# File 'lib/agent_harness/model_compatibility.rb', line 53

def source
  @source
end

#supportedObject

Returns the value of attribute supported

Returns:

  • (Object)

    the current value of 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.

Returns:

  • (Boolean)

    true when compatibility is known to be supported



68
# File 'lib/agent_harness/model_compatibility.rb', line 68

def supported? = supported == true

#to_hObject



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.

Returns:

  • (Boolean)

    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.

Returns:

  • (Boolean)

    true when compatibility is known to be unsupported



71
# File 'lib/agent_harness/model_compatibility.rb', line 71

def unsupported? = supported == false