Langfuse JS/TS SDKs
    Preparing search index...

    Function createStableExperimentId

    • Internal

      Derive the experiment ID of a run on a Langfuse dataset: the first 16 hex characters of SHA-256 over JSON.stringify(["langfuse-experiment-v1", projectId, datasetId, runName]).

      Runs with the same project, dataset and run name share one experiment, and the ID matches the one the Langfuse platform and the Python SDK derive for the same run. Do not change the input layout: it is a cross-SDK contract.

      Parameters

      • params: { datasetId: string; projectId: string; runName: string }

      Returns Promise<string>