Class: Langfuse::ExperimentItem
- Inherits:
-
Data
- Object
- Data
- Langfuse::ExperimentItem
- Defined in:
- lib/langfuse/experiment_item.rb
Overview
Lightweight value object for local experiment data (passed via ‘data:` kwarg). Unlike DatasetItemClient, these items have no server-side ID and cannot be linked to dataset runs.
Instance Attribute Summary collapse
-
#expected_output ⇒ Object
readonly
Returns the value of attribute expected_output.
-
#input ⇒ Object
readonly
Returns the value of attribute input.
-
#metadata ⇒ Object
readonly
Returns the value of attribute metadata.
Instance Method Summary collapse
-
#initialize(input:, expected_output:, metadata: nil) ⇒ ExperimentItem
constructor
A new instance of ExperimentItem.
Constructor Details
#initialize(input:, expected_output:, metadata: nil) ⇒ ExperimentItem
Returns a new instance of ExperimentItem.
8 9 10 |
# File 'lib/langfuse/experiment_item.rb', line 8 def initialize(input:, expected_output:, metadata: nil) super end |
Instance Attribute Details
#expected_output ⇒ Object (readonly)
Returns the value of attribute expected_output
7 8 9 |
# File 'lib/langfuse/experiment_item.rb', line 7 def expected_output @expected_output end |
#input ⇒ Object (readonly)
Returns the value of attribute input
7 8 9 |
# File 'lib/langfuse/experiment_item.rb', line 7 def input @input end |
#metadata ⇒ Object (readonly)
Returns the value of attribute metadata
7 8 9 |
# File 'lib/langfuse/experiment_item.rb', line 7 def @metadata end |