Class: RubyLLM::Agents::Eval::TestCase
- Inherits:
-
Struct
- Object
- Struct
- RubyLLM::Agents::Eval::TestCase
- Defined in:
- lib/ruby_llm/agents/eval/eval_suite.rb
Overview
A single test case definition
Instance Attribute Summary collapse
-
#expected ⇒ Object
Returns the value of attribute expected.
-
#input ⇒ Object
Returns the value of attribute input.
-
#name ⇒ Object
Returns the value of attribute name.
-
#options ⇒ Object
Returns the value of attribute options.
-
#scorer ⇒ Object
Returns the value of attribute scorer.
Instance Method Summary collapse
Instance Attribute Details
#expected ⇒ Object
Returns the value of attribute expected
22 23 24 |
# File 'lib/ruby_llm/agents/eval/eval_suite.rb', line 22 def expected @expected end |
#input ⇒ Object
Returns the value of attribute input
22 23 24 |
# File 'lib/ruby_llm/agents/eval/eval_suite.rb', line 22 def input @input end |
#name ⇒ Object
Returns the value of attribute name
22 23 24 |
# File 'lib/ruby_llm/agents/eval/eval_suite.rb', line 22 def name @name end |
#options ⇒ Object
Returns the value of attribute options
22 23 24 |
# File 'lib/ruby_llm/agents/eval/eval_suite.rb', line 22 def @options end |
#scorer ⇒ Object
Returns the value of attribute scorer
22 23 24 |
# File 'lib/ruby_llm/agents/eval/eval_suite.rb', line 22 def scorer @scorer end |
Instance Method Details
#resolve_input ⇒ Object
23 24 25 |
# File 'lib/ruby_llm/agents/eval/eval_suite.rb', line 23 def resolve_input input.is_a?(Proc) ? input.call : input end |