OptionaldatasetID of the dataset run in Langfuse (only for experiments on Langfuse datasets).
Equal to experimentId. Use it with the experiments API
(langfuse.api.experiments) to read the run back.
OptionaldatasetURL to the experiment in the Langfuse UI (only for experiments on Langfuse datasets).
Identifier of the experiment in Langfuse, shared by all items of the run.
Equal to the experimentId parameter when one was passed. Otherwise,
for Langfuse datasets, it is derived from the project, dataset and run
name, so running again with the same runName continues the same
experiment. For local data, it is a random ID.
OptionalexperimentURL to the experiment results in the Langfuse UI.
Undefined if the project ID could not be fetched.
Function to format experiment results in a human-readable format.
Generates a comprehensive, nicely formatted summary including individual results, aggregate statistics, evaluation scores, and links to traces and dataset runs.
Optionaloptions: { includeItemResults?: boolean }Formatting options
OptionalincludeItemResults?: booleanWhether to include individual item details (default: false)
Promise resolving to formatted string representation
Results from processing each individual data item.
Contains the complete results for every item in your experiment data, including inputs, outputs, evaluations, and trace information. Use this for detailed analysis of individual item performance.
Results from run-level evaluators that assessed the entire experiment.
Contains aggregate evaluations that analyze the complete experiment, such as average scores, statistical measures, or overall quality assessments.
The experiment run name.
This is equal to the dataset run name if experiment was on Langfuse dataset. Either the provided runName parameter or generated name (experiment name + timestamp).
Complete result of an experiment execution.
Contains all results from processing the experiment data, including individual item results, run-level evaluations, and utilities for result visualization.
Example: Using experiment results