Class: LlmConductor::Eval::Result
- Inherits:
-
Struct
- Object
- Struct
- LlmConductor::Eval::Result
- Defined in:
- lib/llm_conductor/eval/result.rb
Overview
Outcome of running ONE (input, model) pair through the engine.
Ported from the Rails prototype’s ModelRunner::Result struct, with the record_* fields renamed to input_* and the on-disk *_path fields generalized to *_ref (a Store handle — a filesystem path for FileStore, an opaque key for InMemory).
status is one of: ‘ok’, ‘parse_error’, ‘llm_error’, ‘exception’.
Instance Attribute Summary collapse
-
#error ⇒ Object
Returns the value of attribute error.
-
#estimated_cost_usd ⇒ Object
Returns the value of attribute estimated_cost_usd.
-
#extra_columns ⇒ Object
Returns the value of attribute extra_columns.
-
#input_id ⇒ Object
Returns the value of attribute input_id.
-
#input_label ⇒ Object
Returns the value of attribute input_label.
-
#input_tokens ⇒ Object
Returns the value of attribute input_tokens.
-
#latency_ms ⇒ Object
Returns the value of attribute latency_ms.
-
#model ⇒ Object
Returns the value of attribute model.
-
#output_tokens ⇒ Object
Returns the value of attribute output_tokens.
-
#parsed_bucket ⇒ Object
Returns the value of attribute parsed_bucket.
-
#parsed_output_ref ⇒ Object
Returns the value of attribute parsed_output_ref.
-
#parsed_score ⇒ Object
Returns the value of attribute parsed_score.
-
#raw_output_ref ⇒ Object
Returns the value of attribute raw_output_ref.
-
#status ⇒ Object
Returns the value of attribute status.
-
#total_tokens ⇒ Object
Returns the value of attribute total_tokens.
-
#vendor ⇒ Object
Returns the value of attribute vendor.
Instance Method Summary collapse
- #ok? ⇒ Boolean
-
#to_h ⇒ Object
String-keyed hash for JSON manifest persistence.
Instance Attribute Details
#error ⇒ Object
Returns the value of attribute error
13 14 15 |
# File 'lib/llm_conductor/eval/result.rb', line 13 def error @error end |
#estimated_cost_usd ⇒ Object
Returns the value of attribute estimated_cost_usd
13 14 15 |
# File 'lib/llm_conductor/eval/result.rb', line 13 def estimated_cost_usd @estimated_cost_usd end |
#extra_columns ⇒ Object
Returns the value of attribute extra_columns
13 14 15 |
# File 'lib/llm_conductor/eval/result.rb', line 13 def extra_columns @extra_columns end |
#input_id ⇒ Object
Returns the value of attribute input_id
13 14 15 |
# File 'lib/llm_conductor/eval/result.rb', line 13 def input_id @input_id end |
#input_label ⇒ Object
Returns the value of attribute input_label
13 14 15 |
# File 'lib/llm_conductor/eval/result.rb', line 13 def input_label @input_label end |
#input_tokens ⇒ Object
Returns the value of attribute input_tokens
13 14 15 |
# File 'lib/llm_conductor/eval/result.rb', line 13 def input_tokens @input_tokens end |
#latency_ms ⇒ Object
Returns the value of attribute latency_ms
13 14 15 |
# File 'lib/llm_conductor/eval/result.rb', line 13 def latency_ms @latency_ms end |
#model ⇒ Object
Returns the value of attribute model
13 14 15 |
# File 'lib/llm_conductor/eval/result.rb', line 13 def model @model end |
#output_tokens ⇒ Object
Returns the value of attribute output_tokens
13 14 15 |
# File 'lib/llm_conductor/eval/result.rb', line 13 def output_tokens @output_tokens end |
#parsed_bucket ⇒ Object
Returns the value of attribute parsed_bucket
13 14 15 |
# File 'lib/llm_conductor/eval/result.rb', line 13 def parsed_bucket @parsed_bucket end |
#parsed_output_ref ⇒ Object
Returns the value of attribute parsed_output_ref
13 14 15 |
# File 'lib/llm_conductor/eval/result.rb', line 13 def parsed_output_ref @parsed_output_ref end |
#parsed_score ⇒ Object
Returns the value of attribute parsed_score
13 14 15 |
# File 'lib/llm_conductor/eval/result.rb', line 13 def parsed_score @parsed_score end |
#raw_output_ref ⇒ Object
Returns the value of attribute raw_output_ref
13 14 15 |
# File 'lib/llm_conductor/eval/result.rb', line 13 def raw_output_ref @raw_output_ref end |
#status ⇒ Object
Returns the value of attribute status
13 14 15 |
# File 'lib/llm_conductor/eval/result.rb', line 13 def status @status end |
#total_tokens ⇒ Object
Returns the value of attribute total_tokens
13 14 15 |
# File 'lib/llm_conductor/eval/result.rb', line 13 def total_tokens @total_tokens end |
#vendor ⇒ Object
Returns the value of attribute vendor
13 14 15 |
# File 'lib/llm_conductor/eval/result.rb', line 13 def vendor @vendor end |
Instance Method Details
#ok? ⇒ Boolean
25 26 27 |
# File 'lib/llm_conductor/eval/result.rb', line 25 def ok? status == 'ok' end |
#to_h ⇒ Object
String-keyed hash for JSON manifest persistence.
21 22 23 |
# File 'lib/llm_conductor/eval/result.rb', line 21 def to_h super.transform_keys(&:to_s) end |