Langfuse JS/TS SDKs
    Preparing search index...

    Type Alias ExperimentItemResult<Input, ExpectedOutput, Metadata>

    ExperimentItemResult: Pick<
        ExperimentItem<Input, ExpectedOutput, Metadata>,
        "input" | "expectedOutput",
    > & {
        datasetRunId?: string;
        evaluations: Evaluation[];
        item: ExperimentItem<Input, ExpectedOutput, Metadata>;
        output: any;
        traceId?: string;
    }

    Type Parameters

    • Input = any
    • ExpectedOutput = any
    • Metadata extends Record<string, any> = Record<string, any>

    Type declaration

    • OptionaldatasetRunId?: string

      Dataset run ID if this item was part of a Langfuse dataset.

      Present only when running experiments on Langfuse datasets. Links this item result to a specific dataset run for tracking and comparison.

    • evaluations: Evaluation[]

      Results from all evaluators that ran on this item.

      Contains evaluation scores, comments, and metadata from each evaluator that successfully processed this item. Failed evaluators are excluded.

    • item: ExperimentItem<Input, ExpectedOutput, Metadata>

      The original experiment or dataset item that was processed.

      Contains the complete original item data including input, expected output, metadata, and any additional fields. Useful for accessing item-specific context or metadata in result analysis.

    • output: any

      The actual output produced by the task.

      This is the result returned by your task function for this specific input. It will be passed to evaluators for assessment against expected outputs.

    • OptionaltraceId?: string

      Langfuse trace ID for this item's execution (for debugging and analysis).

      Use this ID to view detailed execution traces in the Langfuse UI, including timing, inputs, outputs, and any nested observations.