Class: RubyLLM::Contract::Eval::PipelineResultAdapter
- Inherits:
-
Struct
- Object
- Struct
- RubyLLM::Contract::Eval::PipelineResultAdapter
- Defined in:
- lib/ruby_llm/contract/eval/pipeline_result_adapter.rb
Overview
Lightweight adapter that wraps a Pipeline::Result to look like a Step::Result. Replaces OpenStruct usage in Runner#normalize_pipeline_result.
Instance Attribute Summary collapse
-
#ok_flag ⇒ Object
Returns the value of attribute ok_flag.
-
#parsed_output ⇒ Object
Returns the value of attribute parsed_output.
-
#status ⇒ Object
Returns the value of attribute status.
-
#trace ⇒ Object
Returns the value of attribute trace.
-
#validation_errors ⇒ Object
Returns the value of attribute validation_errors.
Instance Method Summary collapse
Instance Attribute Details
#ok_flag ⇒ Object
Returns the value of attribute ok_flag
8 9 10 |
# File 'lib/ruby_llm/contract/eval/pipeline_result_adapter.rb', line 8 def ok_flag @ok_flag end |
#parsed_output ⇒ Object
Returns the value of attribute parsed_output
8 9 10 |
# File 'lib/ruby_llm/contract/eval/pipeline_result_adapter.rb', line 8 def parsed_output @parsed_output end |
#status ⇒ Object
Returns the value of attribute status
8 9 10 |
# File 'lib/ruby_llm/contract/eval/pipeline_result_adapter.rb', line 8 def status @status end |
#trace ⇒ Object
Returns the value of attribute trace
8 9 10 |
# File 'lib/ruby_llm/contract/eval/pipeline_result_adapter.rb', line 8 def trace @trace end |
#validation_errors ⇒ Object
Returns the value of attribute validation_errors
8 9 10 |
# File 'lib/ruby_llm/contract/eval/pipeline_result_adapter.rb', line 8 def validation_errors @validation_errors end |
Instance Method Details
#ok? ⇒ Boolean
9 10 11 |
# File 'lib/ruby_llm/contract/eval/pipeline_result_adapter.rb', line 9 def ok? ok_flag end |