Langfuse JS/TS SDKs
    Preparing search index...

    Interface LegacyPromptVariableMapping

    Deprecated: Connects one prompt variable to data from a legacy trace or dataset evaluation rule.

    langfuseObject selects the object kind. objectName separately selects a named observation and is null for trace and dataset-item mappings.

    {
    * mappingType: "legacy",
    * variable: "input",
    * langfuseObject: LangfuseAPI.LegacyEvaluationObject.Trace,
    * objectName: null,
    * source: "input"
    * }
    {
    * mappingType: "legacy",
    * variable: "output",
    * langfuseObject: LangfuseAPI.LegacyEvaluationObject.Generation,
    * objectName: "answer-generation",
    * source: "output",
    * jsonPath: "$.answer"
    * }
    interface LegacyPromptVariableMapping {
        jsonPath?: string;
        langfuseObject: LegacyEvaluationObject;
        mappingType: "legacy";
        objectName: null | string;
        source: string;
        variable: string;
    }
    Index

    Properties

    jsonPath?: string

    Optional JSONPath selector applied to the selected field.

    langfuseObject: LegacyEvaluationObject

    Legacy object kind selected as the mapping source.

    mappingType: "legacy"

    Explicitly marks this as a legacy mapping.

    objectName: null | string

    Observation name to match, or null when langfuseObject is trace or dataset_item.

    source: string

    Field selected from the legacy object.

    variable: string

    Prompt variable name without braces.