Class: Langfuse::ExperimentItem

Inherits:
Data
  • Object
show all
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

Instance Method Summary collapse

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_outputObject (readonly)

Returns the value of attribute expected_output

Returns:

  • (Object)

    the current value of expected_output



7
8
9
# File 'lib/langfuse/experiment_item.rb', line 7

def expected_output
  @expected_output
end

#inputObject (readonly)

Returns the value of attribute input

Returns:

  • (Object)

    the current value of input



7
8
9
# File 'lib/langfuse/experiment_item.rb', line 7

def input
  @input
end

#metadataObject (readonly)

Returns the value of attribute metadata

Returns:

  • (Object)

    the current value of metadata



7
8
9
# File 'lib/langfuse/experiment_item.rb', line 7

def 
  @metadata
end