Class: Retab::LlmNotJudgedAsCondition

Inherits:
Types::BaseModel show all
Defined in:
lib/retab/workflow_tests/llm_not_judged_as_condition.rb

Constant Summary collapse

HASH_ATTRS =
{
  kind: :kind,
  rubric: :rubric,
  expected_label: :expected_label
}.freeze

Instance Attribute Summary collapse

Attributes inherited from Types::BaseModel

#last_response

Instance Method Summary collapse

Methods inherited from Types::BaseModel

#inspect, normalize, #to_h, #to_json

Constructor Details

#initialize(json) ⇒ LlmNotJudgedAsCondition

Returns a new instance of LlmNotJudgedAsCondition.



19
20
21
22
23
24
# File 'lib/retab/workflow_tests/llm_not_judged_as_condition.rb', line 19

def initialize(json)
  hash = self.class.normalize(json)
  @kind = hash[:kind]
  @rubric = hash[:rubric]
  @expected_label = hash[:expected_label]
end

Instance Attribute Details

#expected_labelObject

Returns the value of attribute expected_label.



14
15
16
# File 'lib/retab/workflow_tests/llm_not_judged_as_condition.rb', line 14

def expected_label
  @expected_label
end

#kindObject

Returns the value of attribute kind.



14
15
16
# File 'lib/retab/workflow_tests/llm_not_judged_as_condition.rb', line 14

def kind
  @kind
end

#rubricObject

Returns the value of attribute rubric.



14
15
16
# File 'lib/retab/workflow_tests/llm_not_judged_as_condition.rb', line 14

def rubric
  @rubric
end