Interface ApiCreateScoreConfigRequest

CreateScoreConfigRequest

interface ApiCreateScoreConfigRequest {
    categories?: null | ApiConfigCategory[];
    dataType: ApiScoreDataType;
    description?: null | string;
    maxValue?: null | number;
    minValue?: null | number;
    name: string;
}

Properties

categories?: null | ApiConfigCategory[]

Configure custom categories for categorical scores. Pass a list of objects with label and value properties. Categories are autogenerated for boolean configs and cannot be passed

description?: null | string

Description is shown across the Langfuse UI and can be used to e.g. explain the config categories in detail, why a numeric range was set, or provide additional context on config name or usage

maxValue?: null | number

Configure a maximum value for numerical scores. If not set, the maximum value defaults to +∞

double

minValue?: null | number

Configure a minimum value for numerical scores. If not set, the minimum value defaults to -∞

double

name: string